app/testpmd: fix GENEVE flow item
authorDekel Peled <dekelp@mellanox.com>
Wed, 8 Jan 2020 15:07:02 +0000 (17:07 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000 (19:46 +0100)
commitdcd05da0aed1674263918b3b25b987c7bc99da88
tree14a44dc1e46fb524ba70ddbd5e98b3d227a0848b
parentba1e69f121b97b4c8673a48c98072accdbc5af46
app/testpmd: fix GENEVE flow item

Previous patch added support of GENEVE pattern item in flow rule.
Function flow_item_default_mask() was not updated, so using it with
GENEVE item returns null.
Using testpmd command "set raw_decap" or "set raw_encap" with
GENEVE item, without specifying any parameters, results in
segmentation fault.

This patch updates function flow_item_default_mask(),
adding case to handle GENEVE item.

Fixes: 0f4203fe9d18 ("app/testpmd: support GENEVE pattern item in flow rules")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
app/test-pmd/cmdline_flow.c