app/testpmd: fix missing GENEVE item in raw encap
authorWisam Jaddo <wisamm@mellanox.com>
Thu, 17 Oct 2019 08:13:52 +0000 (08:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:00:22 +0000 (19:00 +0200)
Fixes: 0f4203fe9d18 ("app/testpmd: support GENEVE pattern item in flow rules")
Cc: stable@dpdk.org
Signed-off-by: Wisam Jaddo <wisamm@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
app/test-pmd/cmdline_flow.c

index 5abe66f..b2c16e6 100644 (file)
@@ -6022,6 +6022,9 @@ cmd_set_raw_parsed(const struct buffer *in)
                        size = sizeof(struct rte_flow_item_nvgre);
                        proto = 0x2F;
                        break;
+               case RTE_FLOW_ITEM_TYPE_GENEVE:
+                       size = sizeof(struct rte_flow_item_geneve);
+                       break;
                default:
                        printf("Error - Not supported item\n");
                        *total_size = 0;