net/mlx5: fix RSS pattern expansion
authorGregory Etelson <getelson@nvidia.com>
Thu, 27 May 2021 15:20:24 +0000 (18:20 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 23 Jun 2021 15:02:41 +0000 (17:02 +0200)
commitd91093b9a2af5378734b301bd2fc75d44e18d269
tree67c6308d3010f0a2ce7ce9218ef720aa3772d6ba
parent5c1a533e86fc451f2669fef3450a138410e0f221
net/mlx5: fix RSS pattern expansion

Flow rule pattern may be implicitly expanded by the PMD if the rule
has RSS flow action. The expansion adds network headers to the
original pattern. The new pattern lists all network levels that
participate in the rule RSS action.

The patch fixes expanded pattern for cases when original pattern
included meta items like MARK, TAG, META.

Fixes: c7870bfe09dc ("ethdev: move RSS expansion code to mlx5 driver")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow.c