Hi, From: Bing Zhao <bi...@nvidia.com> Sent: Wednesday, November 13, 2024 9:19 AM To: Dariusz Sosnowski; Slava Ovsiienko; dev@dpdk.org; Raslan Darawsheh Cc: Ori Kam; Suanming Mou; Matan Azrad; sta...@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: dsosnow...@nvidia.com Cc: sta...@dpdk.org Signed-off-by: Bing Zhao <bi...@nvidia.com> Acked-by: Dariusz Sosnowski <dsosnow...@nvidia.com> Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh