From 280a37ad83ef1af5f4f0cf7c486dbb5f87562ca2 Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Fri, 15 Mar 2024 11:00:53 +0800 Subject: [PATCH 419/431] app/testpmd: fix RSS algorithm choice [ upstream commit 74345424a92f14acc608b36b09cb27b84e3a35aa ] The RSS algorithm from user is parsed 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@dpdk.org Signed-off-by: Jie Hai Reviewed-by: Ferruh Yigit Signed-off-by: chenyi --- 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 ae0b47de72..5e77cb2e79 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -2449,6 +2449,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.33.0