patch 'net/hns3: allow adding queue buffer size hash rule' has been queued to stable release 20.11.8

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Mar 15 23:46:27 CET 2023


Hi,

FYI, your patch has been queued to stable release 20.11.8

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/17/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://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/9026ba04f9b356e04f970198e399c8eae8b53c2c

Thanks.

Luca Boccassi

---
>From 9026ba04f9b356e04f970198e399c8eae8b53c2c Mon Sep 17 00:00:00 2001
From: Huisong Li <lihuisong at huawei.com>
Date: Fri, 10 Mar 2023 17:35:15 +0800
Subject: [PATCH] net/hns3: allow adding queue buffer size hash rule

[ upstream commit 8095bf3e6d8ca7349e0a15f95407acd2063e7be0 ]

The maximum queue number from RSS flow rule allowed depends on
the maximum queue number (512) under one TC instead of the one
of Rx/Tx queue so as to eliminate restrictions on user usage.

Fixes: c37ca66f2b27 ("net/hns3: support RSS")

Signed-off-by: Huisong Li <lihuisong at huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3 at huawei.com>
---
 drivers/net/hns3/hns3_rss.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/hns3/hns3_rss.h b/drivers/net/hns3/hns3_rss.h
index ffd76647c9..9300866b68 100644
--- a/drivers/net/hns3/hns3_rss.h
+++ b/drivers/net/hns3/hns3_rss.h
@@ -41,7 +41,8 @@ struct hns3_rss_tuple_cfg {
 	uint64_t rss_tuple_fields;
 };
 
-#define HNS3_RSS_QUEUES_BUFFER_NUM	64 /* Same as the Max rx/tx queue num */
+/* Same as the Max queue num under TC */
+#define HNS3_RSS_QUEUES_BUFFER_NUM	512
 struct hns3_rss_conf {
 	/* RSS parameters :algorithm, flow_types,  key, queue */
 	struct rte_flow_action_rss conf;
-- 
2.39.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-03-15 22:44:51.688093675 +0000
+++ 0036-net-hns3-allow-adding-queue-buffer-size-hash-rule.patch	2023-03-15 22:44:49.659851854 +0000
@@ -1 +1 @@
-From 8095bf3e6d8ca7349e0a15f95407acd2063e7be0 Mon Sep 17 00:00:00 2001
+From 9026ba04f9b356e04f970198e399c8eae8b53c2c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8095bf3e6d8ca7349e0a15f95407acd2063e7be0 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 21b90789d0..cc0bb8431d 100644
+index ffd76647c9..9300866b68 100644
@@ -23,3 +24,3 @@
-@@ -37,7 +37,8 @@
- #define HNS3_RSS_HASH_ALGO_SYMMETRIC_TOEP 2
- #define HNS3_RSS_HASH_ALGO_MASK		0xf
+@@ -41,7 +41,8 @@ struct hns3_rss_tuple_cfg {
+ 	uint64_t rss_tuple_fields;
+ };


More information about the stable mailing list