patch 'net/mlx5: fix skipping PF representors' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Thu Jul 23 19:15:29 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/27/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/b7ccb5a14b3cd7bc6b09bb63f4533d944ae4bf7e
Thanks.
Kevin
---
>From b7ccb5a14b3cd7bc6b09bb63f4533d944ae4bf7e Mon Sep 17 00:00:00 2001
From: Dariusz Sosnowski <dsosnowski at nvidia.com>
Date: Tue, 7 Apr 2026 12:31:30 +0200
Subject: [PATCH] net/mlx5: fix skipping PF representors
[ upstream commit 47e696635fa9ffc526c179946698d5cfd15113b7 ]
Offending patch changed logic of matching IB ports to requested
representors in mlx5 driver.
Each found IB port was matched against all requested representors.
Whenever:
- requested representor was VF or SF
- PF was not ignored
- IB port was physical port
- physical port index matched requested PF index
the physical port representor was probed.
If any of the above is false, mlx5 driver should have continue testing
other requested PF representors.
In the offending patch, the representor matching loop was stopped.
As a result, if mlx5 device with MPESW enabled was probed with the
following devargs:
-a 08:00.0,dv_flow_en=2,representor=pf[0-1]vf[0,1]
Only 5 ports were probed (physical port 0 and all VF representors),
instead of 6 ports (physical port 1 is missing).
This patch fixes that by continuing representor matching loop
on physical port to PF index mismatch as described above.
Fixes: 2f7cdd821b1b ("net/mlx5: fix probing to allow BlueField Socket Direct")
Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
---
drivers/net/mlx5/linux/mlx5_os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c
index 2f1e7b10b9..e11c3321e9 100644
--- a/drivers/net/mlx5/linux/mlx5_os.c
+++ b/drivers/net/mlx5/linux/mlx5_os.c
@@ -1172,5 +1172,5 @@ representor_match_port(const struct mlx5_dev_spawn_data *spawn,
/* Uplink ports should not be matched against representor_ports. */
if (spawn->info.name_type == MLX5_PHYS_PORT_NAME_TYPE_UPLINK)
- return false;
+ continue;
for (uint16_t f = 0; f < eth_da->nb_representor_ports; ++f) {
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-23 17:58:00.562045984 +0100
+++ 0066-net-mlx5-fix-skipping-PF-representors.patch 2026-07-23 17:57:58.683918553 +0100
@@ -1 +1 @@
-From 47e696635fa9ffc526c179946698d5cfd15113b7 Mon Sep 17 00:00:00 2001
+From b7ccb5a14b3cd7bc6b09bb63f4533d944ae4bf7e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 47e696635fa9ffc526c179946698d5cfd15113b7 ]
+
@@ -32 +33,0 @@
-Cc: stable at dpdk.org
@@ -41 +42 @@
-index a717191002..10b947116c 100644
+index 2f1e7b10b9..e11c3321e9 100644
@@ -44 +45 @@
-@@ -1187,5 +1187,5 @@ representor_match_port(const struct mlx5_dev_spawn_data *spawn,
+@@ -1172,5 +1172,5 @@ representor_match_port(const struct mlx5_dev_spawn_data *spawn,
More information about the stable
mailing list