[PATCH] net/mlx5: fix the default RSS flows creation order
Raslan Darawsheh
rasland at nvidia.com
Wed Nov 13 14:40:04 CET 2024
Hi,
From: Bing Zhao <bingz at nvidia.com>
Sent: Wednesday, November 13, 2024 9:19 AM
To: Dariusz Sosnowski; Slava Ovsiienko; dev at dpdk.org; Raslan Darawsheh
Cc: Ori Kam; Suanming Mou; Matan Azrad; stable at dpdk.org
Subject: [PATCH] net/mlx5: fix the default RSS flows creation order
In both SWS and HWS mode, default ingress RSS flows are always
created via the driver on the root table. In the current driver,
the first created flow rules will be matched firstly when:
1. >= 2 rules can be matched on the root table.
2. the rules have the same priority.
All MC / BC flow rules would have the same priority and discard
the input priority from the user space in the driver. All rules have
a fixed priority 32 when the Ethernet destination MAC is a MC or BC
address.
In SWS non-template API, all the device rules are added into the list
and applied in a reverse order.
This patch syncs default flow rule creation order between SWS and HWS.
The order should be:
1. IPv4(6) + TCP/UDP, if required.
2. IPv4(6) only, if required.
3. None IP traffic.
Fixes: 9fa7c1cddb85 ("net/mlx5: create control flow rules with HWS")
Cc: dsosnowski at nvidia.com
Cc: stable at dpdk.org
Signed-off-by: Bing Zhao <bingz at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the stable
mailing list