]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix RSS expansion with explicit next protocol
authorGregory Etelson <getelson@nvidia.com>
Thu, 23 Dec 2021 13:08:17 +0000 (15:08 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 6 Jan 2022 09:07:41 +0000 (10:07 +0100)
commitf3f1f576f43804b30f81deae967bc09aff7000df
tree904ecff4bb191e331e9b1683adb15e92eee79aae
parent0c7606b75be4f56a109f61f3cf2c7a819e760cd2
net/mlx5: fix RSS expansion with explicit next protocol

The PMD RSS expansion scheme by default compiles flow rules for all
flow item types that may branch out from a stub supplied
by application.
For example,
ETH can lead to VLAN, IPv4 or IPv6.
IPv4 can lead to UDP, TCP, IPv4 or IPv6.

If application explicitly specified next protocol type, expansion must
use that option only and not create flows with other protocol types.

The PMD ignored explicit next protocol values in GRE and VXLAN-GPE.

The patch updates RSS expansion for GRE and VXLAN-GPE with explicit
next protocol settings.

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