net/mlx5: fix VXLAN-GPE next protocol translation
authorGregory Etelson <getelson@nvidia.com>
Sun, 14 Nov 2021 15:36:12 +0000 (17:36 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 16 Nov 2021 09:22:51 +0000 (10:22 +0100)
commit861fa3796f75748ccc4a6dae55e5a7e34c97dea4
treecafdaced4582701ff2eac33f8911b9b4c2d46fe5
parent46e461565cafb7094284f190f6d9c269f11a5d26
net/mlx5: fix VXLAN-GPE next protocol translation

VXLAN-GPE extends VXLAN protocol and provides the next protocol
field specifying the first inner header type.

The application can assign some explicit value to
VXLAN-GPE::next_protocol field or set it to the default one. In the
latter case, the rdma-core library cannot recognize the matcher
built by PMD correctly, and it results in hardware configuration
missing inner headers match.

The patch forces VXLAN-GPE::next_protocol assignment if the
application did not explicitly assign it to the non-default value

Fixes: 90456726eb80 ("net/mlx5: fix VXLAN-GPE item translation")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c