patch 'common/mlx5: remove useless constants' has been queued to stable release 22.11.11
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Wed Nov 12 17:52:24 CET 2025
Hi,
FYI, your patch has been queued to stable release 22.11.11
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/14/25. 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/5b625cccee6408f9c998eb367bd7fc1935c05c98
Thanks.
Luca Boccassi
---
>From 5b625cccee6408f9c998eb367bd7fc1935c05c98 Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas at monjalon.net>
Date: Fri, 31 Oct 2025 21:38:10 +0100
Subject: [PATCH] common/mlx5: remove useless constants
[ upstream commit 5f961fec22ff6903f2a11ffdc5ffef9c8c50cb5b ]
All these constants were unused since their introduction:
- MLX5_DRV_PROBE_AGAIN
- MLX5_NL_BUF_SIZE
- MLX5DV_FLOW_TABLE_TYPE_RDMA_RX
- IB_QPT_RAW_PACKET
Fixes: ad435d320473 ("common/mlx5: add bus-agnostic layer")
Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses")
Fixes: 03e1f7f760d8 ("net/mlx5: create flow matcher object on Windows")
Fixes: 358fbb018310 ("net/mlx5: support multi-packet Rx queue on Windows")
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
drivers/common/mlx5/linux/mlx5_nl.c | 2 --
drivers/common/mlx5/mlx5_common.h | 3 ---
drivers/common/mlx5/windows/mlx5_win_defs.h | 1 -
3 files changed, 6 deletions(-)
diff --git a/drivers/common/mlx5/linux/mlx5_nl.c b/drivers/common/mlx5/linux/mlx5_nl.c
index 4fa2410a81..657cc1437f 100644
--- a/drivers/common/mlx5/linux/mlx5_nl.c
+++ b/drivers/common/mlx5/linux/mlx5_nl.c
@@ -27,8 +27,6 @@
#endif
-/* Size of the buffer to receive kernel messages */
-#define MLX5_NL_BUF_SIZE (32 * 1024)
/* Send buffer size for the Netlink socket */
#define MLX5_SEND_BUF_SIZE 32768
/* Receive buffer size for the Netlink socket */
diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h
index 02b5d54363..c34385abc3 100644
--- a/drivers/common/mlx5/mlx5_common.h
+++ b/drivers/common/mlx5/mlx5_common.h
@@ -502,9 +502,6 @@ typedef int (mlx5_class_driver_probe_t)(struct mlx5_common_device *cdev,
*/
typedef int (mlx5_class_driver_remove_t)(struct mlx5_common_device *cdev);
-/** Device already probed can be probed again to check for new ports. */
-#define MLX5_DRV_PROBE_AGAIN 0x0004
-
/**
* A structure describing a mlx5 common class driver.
*/
diff --git a/drivers/common/mlx5/windows/mlx5_win_defs.h b/drivers/common/mlx5/windows/mlx5_win_defs.h
index 1ddf5c553d..91439d7468 100644
--- a/drivers/common/mlx5/windows/mlx5_win_defs.h
+++ b/drivers/common/mlx5/windows/mlx5_win_defs.h
@@ -184,7 +184,6 @@ enum mlx5dv_flow_table_type {
#define MLX5DV_FLOW_TABLE_TYPE_NIC_RX MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_RX
#define MLX5DV_FLOW_TABLE_TYPE_NIC_TX MLX5_IB_UAPI_FLOW_TABLE_TYPE_NIC_TX
#define MLX5DV_FLOW_TABLE_TYPE_FDB MLX5_IB_UAPI_FLOW_TABLE_TYPE_FDB
-#define MLX5DV_FLOW_TABLE_TYPE_RDMA_RX MLX5_IB_UAPI_FLOW_TABLE_TYPE_RDMA_RX
struct mlx5dv_flow_match_parameters {
size_t match_sz;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-12 16:20:41.356411799 +0000
+++ 0010-common-mlx5-remove-useless-constants.patch 2025-11-12 16:20:40.883715861 +0000
@@ -1 +1 @@
-From 5f961fec22ff6903f2a11ffdc5ffef9c8c50cb5b Mon Sep 17 00:00:00 2001
+From 5b625cccee6408f9c998eb367bd7fc1935c05c98 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5f961fec22ff6903f2a11ffdc5ffef9c8c50cb5b ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -23,2 +24,2 @@
- drivers/common/mlx5/windows/mlx5_win_defs.h | 2 --
- 3 files changed, 7 deletions(-)
+ drivers/common/mlx5/windows/mlx5_win_defs.h | 1 -
+ 3 files changed, 6 deletions(-)
@@ -27 +28 @@
-index 8753d3127c..d53543a113 100644
+index 4fa2410a81..657cc1437f 100644
@@ -30 +31 @@
-@@ -28,8 +28,6 @@
+@@ -27,8 +27,6 @@
@@ -40 +41 @@
-index b49f0c850e..214ddcb8b3 100644
+index 02b5d54363..c34385abc3 100644
@@ -43 +44 @@
-@@ -575,9 +575,6 @@ typedef int (mlx5_class_driver_probe_t)(struct mlx5_common_device *cdev,
+@@ -502,9 +502,6 @@ typedef int (mlx5_class_driver_probe_t)(struct mlx5_common_device *cdev,
@@ -54 +55 @@
-index d60df6fd37..d98725eea8 100644
+index 1ddf5c553d..91439d7468 100644
@@ -65,7 +65,0 @@
-@@ -263,6 +262,5 @@ enum {
- #define MLX5_MIN_SINGLE_STRIDE_LOG_NUM_BYTES 6
- #define MLX5_MAX_SINGLE_STRIDE_LOG_NUM_BYTES 13
- #define MLX5_EXT_MIN_SINGLE_WQE_LOG_NUM_STRIDES 3
--#define IB_QPT_RAW_PACKET 8
-
- #endif /* MLX5_WIN_DEFS_H */
More information about the stable
mailing list