patch 'net/mlx5: fix query for NIC flow capability' has been queued to stable release 22.11.3

Xueming Li xuemingl at nvidia.com
Thu Aug 10 01:59:04 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.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 08/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=1fa1c1ff1a926a606f533723626496b4574694a1

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 1fa1c1ff1a926a606f533723626496b4574694a1 Mon Sep 17 00:00:00 2001
From: Ori Kam <orika at nvidia.com>
Date: Thu, 6 Jul 2023 15:36:15 +0300
Subject: [PATCH] net/mlx5: fix query for NIC flow capability
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit c83ee609708e9d2122c0d29a2ebc40a026b6f72b ]

Add query for NIC flow table support bit.

Fixes: 5f44fb1958e5 ("common/mlx5: query capability of registers")

Signed-off-by: Ori Kam <orika at nvidia.com>
Acked-by: Suanming Mou <suanmingm at nvidia.com>
---
 drivers/common/mlx5/mlx5_devx_cmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index e3a4927d0f..5742f9e831 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -1002,6 +1002,7 @@ mlx5_devx_cmd_query_hca_attr(void *ctx,
 					 general_obj_types) &
 			      MLX5_GENERAL_OBJ_TYPES_CAP_CONN_TRACK_OFFLOAD);
 	attr->rq_delay_drop = MLX5_GET(cmd_hca_cap, hcattr, rq_delay_drop);
+	attr->nic_flow_table = MLX5_GET(cmd_hca_cap, hcattr, nic_flow_table);
 	attr->max_flow_counter_15_0 = MLX5_GET(cmd_hca_cap, hcattr,
 			max_flow_counter_15_0);
 	attr->max_flow_counter_31_16 = MLX5_GET(cmd_hca_cap, hcattr,
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-08-09 21:51:20.397448000 +0800
+++ 0085-net-mlx5-fix-query-for-NIC-flow-capability.patch	2023-08-09 21:51:18.254352000 +0800
@@ -1 +1 @@
-From c83ee609708e9d2122c0d29a2ebc40a026b6f72b Mon Sep 17 00:00:00 2001
+From 1fa1c1ff1a926a606f533723626496b4574694a1 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit c83ee609708e9d2122c0d29a2ebc40a026b6f72b ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +20 @@
-index ef87862a6d..66a77159a0 100644
+index e3a4927d0f..5742f9e831 100644
@@ -21 +23 @@
-@@ -1078,6 +1078,7 @@ mlx5_devx_cmd_query_hca_attr(void *ctx,
+@@ -1002,6 +1002,7 @@ mlx5_devx_cmd_query_hca_attr(void *ctx,
@@ -26,3 +28,3 @@
- 	attr->striding_rq = MLX5_GET(cmd_hca_cap, hcattr, striding_rq);
- 	attr->ext_stride_num_range =
- 		MLX5_GET(cmd_hca_cap, hcattr, ext_stride_num_range);
+ 	attr->max_flow_counter_15_0 = MLX5_GET(cmd_hca_cap, hcattr,
+ 			max_flow_counter_15_0);
+ 	attr->max_flow_counter_31_16 = MLX5_GET(cmd_hca_cap, hcattr,


More information about the stable mailing list