[PATCH] app/testpmd: fix unpassed RSS algorithm

Jie Hai haijie1 at huawei.com
Fri Mar 15 04:00:53 CET 2024


The RSS algorithm from user is parased but not passed to the
rte_eth_dev_rss_hash_update() API as we wanted, this patch
fixes it.

Fixes: 3da59f30a23f ("app/testpmd: set RSS hash algorithm")
Cc: stable at dpdk.org

Signed-off-by: Jie Hai <haijie1 at huawei.com>
---
 app/test-pmd/cmdline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index f521a1fe9e8a..b7759e38a871 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2319,6 +2319,7 @@ cmd_config_rss_hash_algo_parsed(void *parsed_result,
 		return;
 	}
 
+	rss_conf.algorithm = algorithm;
 	ret = rte_eth_dev_rss_hash_update(res->port_id, &rss_conf);
 	if (ret != 0) {
 		fprintf(stderr, "failed to set port %u RSS hash algorithm\n",
-- 
2.30.0



More information about the dev mailing list