[ovs-dev] oss: Fix oss build errors because of ovs API change

Message ID 1551306060-29404-1-git-send-email-pkusunyifeng@gmail.com
State New
Headers show
Series
  • [ovs-dev] oss: Fix oss build errors because of ovs API change
Related show

Commit Message

Yifeng Sun Feb. 27, 2019, 10:21 p.m.
Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13432
Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
---
 tests/oss-fuzz/odp_target.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Ben Pfaff Feb. 28, 2019, 12:44 a.m. | #1
On Wed, Feb 27, 2019 at 02:21:00PM -0800, Yifeng Sun wrote:
> Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13432
> Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>

Thanks, applied to master.

Patch

diff --git a/tests/oss-fuzz/odp_target.c b/tests/oss-fuzz/odp_target.c
index a7a8bbffcaa7..ae61cdca322f 100644
--- a/tests/oss-fuzz/odp_target.c
+++ b/tests/oss-fuzz/odp_target.c
@@ -27,7 +27,7 @@  parse_keys(bool wc_keys, const char *in)
     ofpbuf_init(&odp_key, 0);
     ofpbuf_init(&odp_mask, 0);
     error = odp_flow_from_string(in, NULL,
-                                 &odp_key, &odp_mask);
+                                 &odp_key, &odp_mask, NULL);
     if (error) {
         printf("odp_flow_from_string: error\n");
         goto next;
@@ -47,7 +47,8 @@  parse_keys(bool wc_keys, const char *in)
         };
 
         /* Convert odp_key to flow. */
-        fitness = odp_flow_key_to_flow(odp_key.data, odp_key.size, &flow);
+        fitness = odp_flow_key_to_flow(odp_key.data, odp_key.size,
+                                       &flow, NULL);
         switch (fitness) {
             case ODP_FIT_PERFECT:
                 break;