net/mlx5: fix LSC interrupt device flags
PATCH 1/1 net/mlx5: fix LSC interrupt device flags
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 <[email protected]>
--- 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(-)
doc/guides/nics/mlx5.rst +1 -0
@@ -1107,6 +1107,7 @@ Port/Queue Feature Linux Windows :ref:`statistics <mlx5_net_stats>` X P link flow control (pause frame) X Rx interrupt X +Link state interrupt X :ref:`shared Rx queue <mlx5_shared_rx>` X :ref:`Rx threshold <mlx5_rx_threshold>` X X :ref:`Rx drop delay <mlx5_drop>` X X
drivers/net/mlx5/linux/mlx5_os.h +2 -0
@@ -8,6 +8,8 @@#include <net/if.h> +#define MLX5_NET_INTR_LSC_SUPPORTED (1) +/* Maximal data of sendmsg message(in bytes). */ #define MLX5_SENDMSG_MAX 64
drivers/net/mlx5/mlx5.c +1 -1
@@ -3959,7 +3959,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, };
drivers/net/mlx5/windows/mlx5_os.h +2 -0
@@ -7,6 +7,8 @@#include "mlx5_win_ext.h" +#define MLX5_NET_INTR_LSC_SUPPORTED (0) +#define MLX5_NAMESIZE MLX5_FS_NAME_MAXenum mlx5_sw_parsing_offloads {
Signature · 1 line
2.43.0
Patch applied to next-net-mlx.
Thanks,
Raslan Darawsheh