[dpdk-stable] patch 'app/testpmd: fix RSS type display' has been queued to stable release 20.11.4

Xueming Li xuemingl at nvidia.com
Wed Nov 10 07:31:39 CET 2021


Hi,

FYI, your patch has been queued to stable release 20.11.4

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/12/21. 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/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/c2f64b86fff634ea4571f3d7fc2561293a0214f7

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From c2f64b86fff634ea4571f3d7fc2561293a0214f7 Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin at redhat.com>
Date: Wed, 27 Oct 2021 16:22:11 +0200
Subject: [PATCH] app/testpmd: fix RSS type display
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 88232b54eed87d80782aae2c0c7a3db5089e61cc ]

This patch fixes the display of the RSS hash types
configured in the port, which displayed "all" even
if only a single type was configured

Fixes: 3c90743dd3b9 ("app/testpmd: support more types for flow RSS")

Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>
---
 app/test-pmd/config.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index d4ec4cec80..29c5f37222 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -2967,7 +2967,9 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key)
 	}
 	printf("RSS functions:\n ");
 	for (i = 0; rss_type_table[i].str; i++) {
-		if (rss_hf & rss_type_table[i].rss_type)
+		if (rss_type_table[i].rss_type == 0)
+			continue;
+		if ((rss_hf & rss_type_table[i].rss_type) == rss_type_table[i].rss_type)
 			printf("%s ", rss_type_table[i].str);
 	}
 	printf("\n");
-- 
2.33.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-10 14:17:11.400449451 +0800
+++ 0215-app-testpmd-fix-RSS-type-display.patch	2021-11-10 14:17:02.027411476 +0800
@@ -1 +1 @@
-From 88232b54eed87d80782aae2c0c7a3db5089e61cc Mon Sep 17 00:00:00 2001
+From c2f64b86fff634ea4571f3d7fc2561293a0214f7 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 88232b54eed87d80782aae2c0c7a3db5089e61cc ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +23 @@
-index dde6cdcff1..5dfc8a15da 100644
+index d4ec4cec80..29c5f37222 100644
@@ -24 +26 @@
-@@ -3021,7 +3021,9 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key)
+@@ -2967,7 +2967,9 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key)


More information about the stable mailing list