patch 'net/mlx5: fix link interrupt capability on Windows' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:35 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/0bed7dd42c15e8208967fb5adefb18d11bbd7672
Thanks.
Luca Boccassi
---
>From 0bed7dd42c15e8208967fb5adefb18d11bbd7672 Mon Sep 17 00:00:00 2001
From: Dariusz Sosnowski <dsosnowski at nvidia.com>
Date: Mon, 26 Oct 2026 16:58:05 +0100
Subject: [PATCH] net/mlx5: fix link interrupt capability on Windows
[ upstream commit dab424219d00c04ab635925500c9b09a9056e9cd ]
mlx5 networking driver supports LSC interrupts only on Linux.
Driver falsely reported RTE_ETH_DEV_INTR_LSC in its device flags
on Windows.
This patch fixes the device flags and updates the documentation.
Fixes: 93f4ece91a1f ("net/mlx5: spawn ethdev ports on Windows")
Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
doc/guides/nics/mlx5.rst | 1 +
drivers/net/mlx5/linux/mlx5_os.h | 2 ++
drivers/net/mlx5/mlx5.c | 2 +-
drivers/net/mlx5/windows/mlx5_os.h | 2 ++
4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
index 60e6ccc354..8b04dc63d3 100644
--- a/doc/guides/nics/mlx5.rst
+++ b/doc/guides/nics/mlx5.rst
@@ -130,6 +130,7 @@ Features
- RSS hash result is supported.
- Hardware TSO for generic IP or UDP tunnel, including VXLAN and GRE.
- Hardware checksum Tx offload for generic IP or UDP tunnel, including VXLAN and GRE.
+- Link state interrupts (Linux only).
- RX interrupts.
- Statistics query including Basic, Extended and per queue.
- Rx HW timestamp.
diff --git a/drivers/net/mlx5/linux/mlx5_os.h b/drivers/net/mlx5/linux/mlx5_os.h
index 80c70d713a..2097651028 100644
--- a/drivers/net/mlx5/linux/mlx5_os.h
+++ b/drivers/net/mlx5/linux/mlx5_os.h
@@ -8,6 +8,8 @@
#include <net/if.h>
+#define MLX5_NET_INTR_LSC_SUPPORTED (1)
+
/* verb enumerations translations to local enums. */
enum {
MLX5_FS_NAME_MAX = IBV_SYSFS_NAME_MAX + 1,
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index e14284a4a5..20eb14524b 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -3576,7 +3576,7 @@ static struct mlx5_class_driver mlx5_net_driver = {
.probe = mlx5_os_net_probe,
.remove = mlx5_net_remove,
.probe_again = 1,
- .intr_lsc = 1,
+ .intr_lsc = MLX5_NET_INTR_LSC_SUPPORTED,
.intr_rmv = 1,
};
diff --git a/drivers/net/mlx5/windows/mlx5_os.h b/drivers/net/mlx5/windows/mlx5_os.h
index 7085e9b258..dfe1414d1f 100644
--- a/drivers/net/mlx5/windows/mlx5_os.h
+++ b/drivers/net/mlx5/windows/mlx5_os.h
@@ -7,6 +7,8 @@
#include "mlx5_win_ext.h"
+#define MLX5_NET_INTR_LSC_SUPPORTED (0)
+
enum {
MLX5_FS_NAME_MAX = MLX5_DEVX_DEVICE_NAME_SIZE + 1,
MLX5_FS_PATH_MAX = MLX5_DEVX_DEVICE_PNP_SIZE + 1
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:17.355460383 +0000
+++ 0021-net-mlx5-fix-link-interrupt-capability-on-Windows.patch 2026-11-16 22:52:16.440232212 +0000
@@ -1 +1 @@
-From dab424219d00c04ab635925500c9b09a9056e9cd Mon Sep 17 00:00:00 2001
+From 0bed7dd42c15e8208967fb5adefb18d11bbd7672 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit dab424219d00c04ab635925500c9b09a9056e9cd ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index c7bb6eb182..69f54ff92c 100644
+index 60e6ccc354..8b04dc63d3 100644
@@ -27,8 +28,8 @@
-@@ -1106,6 +1106,7 @@ Port/Queue Feature Linux Windows
- :ref:`hairpin <mlx5_hairpin>` X X
- :ref:`statistics <mlx5_net_stats>` X P
- link flow control (pause frame) X
-+link state interrupt X
- Rx interrupt X
- :ref:`shared Rx queue <mlx5_shared_rx>` X
- :ref:`Rx threshold <mlx5_rx_threshold>` X X
+@@ -130,6 +130,7 @@ Features
+ - RSS hash result is supported.
+ - Hardware TSO for generic IP or UDP tunnel, including VXLAN and GRE.
+ - Hardware checksum Tx offload for generic IP or UDP tunnel, including VXLAN and GRE.
++- Link state interrupts (Linux only).
+ - RX interrupts.
+ - Statistics query including Basic, Extended and per queue.
+ - Rx HW timestamp.
@@ -36 +37 @@
-index 4d073048fb..9deef72527 100644
+index 80c70d713a..2097651028 100644
@@ -45,3 +46,3 @@
- /* Maximal data of sendmsg message(in bytes). */
- #define MLX5_SENDMSG_MAX 64
-
+ /* verb enumerations translations to local enums. */
+ enum {
+ MLX5_FS_NAME_MAX = IBV_SYSFS_NAME_MAX + 1,
@@ -49 +50 @@
-index e2dbd2977b..63c713c1f0 100644
+index e14284a4a5..20eb14524b 100644
@@ -52 +53 @@
-@@ -3959,7 +3959,7 @@ static struct mlx5_class_driver mlx5_net_driver = {
+@@ -3576,7 +3576,7 @@ static struct mlx5_class_driver mlx5_net_driver = {
@@ -62 +63 @@
-index 57d147bd8c..c5b7008053 100644
+index 7085e9b258..dfe1414d1f 100644
@@ -71,3 +72,3 @@
- #define MLX5_NAMESIZE MLX5_FS_NAME_MAX
-
- enum mlx5_sw_parsing_offloads {
+ enum {
+ MLX5_FS_NAME_MAX = MLX5_DEVX_DEVICE_NAME_SIZE + 1,
+ MLX5_FS_PATH_MAX = MLX5_DEVX_DEVICE_PNP_SIZE + 1
More information about the stable
mailing list