]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix GRE item translation in Verbs
authorGregory Etelson <getelson@nvidia.com>
Mon, 28 Feb 2022 09:53:01 +0000 (11:53 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 2 Mar 2022 10:24:20 +0000 (11:24 +0100)
commitdf4986559f24fbf669aeaa33e5e23563f7fc90b3
tree1be00effab9ffcdce1fdf1b377f4e0eb39da78ec
parente2b1848455b9d6bbbaab874d3879386e8cda3131
net/mlx5: fix GRE item translation in Verbs

GRE item translation must set inner protocol value.
For that reason the item is not translated inplace when PMD
translation iterates over flow items, but moved after the loop, when
all inner types are discovered.

If PMD does not translate GRE flow item inside the translation loop
it must save the GRE item for access outside the loop.

Fixes: 985b479267aa ("net/mlx5: fix GRE protocol type translation for Verbs")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_verbs.c