net/mlx5: fix VXLAN-GPE item translation
authorRaslan Darawsheh <rasland@mellanox.com>
Mon, 27 Jan 2020 15:34:12 +0000 (17:34 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit90456726eb801df50b98803678427ec8881ff0af
treece0bf05c9d6dc2a881fe8f15145896b7ae107156
parentb47e7a11f5a8735c4c7784c46d78957efa705ecd
net/mlx5: fix VXLAN-GPE item translation

Currently, when using VXLAN-GPE or VXLAN item in the flow
both are being treated the same with flags 0x8 in VXLAN
header. Which mean the matching of the item VXLAN-GPE
will match any VXLAN packet.

This fixes the translation of VXLAN GPE item into PMD flow
item. Which will by default set the flags to VXLAN-GPE
to be 0xc.

Fixes: 3d69434113d1 ("net/mlx5: add Direct Verbs validation function")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c