From: Maxime Coquelin Date: Wed, 27 Oct 2021 14:22:11 +0000 (+0200) Subject: app/testpmd: fix RSS type display X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=88232b54eed87d80782aae2c0c7a3db5089e61cc;p=dpdk.git app/testpmd: fix RSS type display 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") Cc: stable@dpdk.org Signed-off-by: Maxime Coquelin Acked-by: Xiaoyun Li Reviewed-by: Chenbo Xia --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index dde6cdcff1..5dfc8a15da 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -3021,7 +3021,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");