]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix RSS hash types adjustment
authorDariusz Sosnowski <dsosnowski@nvidia.com>
Thu, 21 Apr 2022 20:36:56 +0000 (20:36 +0000)
committerRaslan Darawsheh <rasland@nvidia.com>
Tue, 26 Apr 2022 09:51:56 +0000 (11:51 +0200)
commitd2fa2632a4a17b491f9a15834d9e13c6a6e5a1b9
treee5fb35ff919063c1111008b9903f373f0488131f
parent773a7de21a984bb7bdb6396a659ccc585a44a806
net/mlx5: fix RSS hash types adjustment

When an indirect action was created with an RSS action configured to
hash on both source and destination L3 addresses (or L4 ports), it caused
shared hrxq to be configured to hash only on destination address
(or port).

This patch fixes this behavior by refining RSS types specified in
configuration before calculating hash types used for hrxq. Refining RSS
types removes *_SRC_ONLY and *_DST_ONLY flags if they are both set.

Fixes: 212d17b6a650 ("net/mlx5: fix missing shared RSS hash types")
Cc: stable@dpdk.org
Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c