From: Adham Masarwah Date: Sun, 13 Mar 2022 12:57:02 +0000 (+0200) Subject: app/testpmd: fix show RSS RETA on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5aae2723cddba81b179162b5e7e4f6bd429eaac5;p=dpdk.git app/testpmd: fix show RSS RETA on Windows Replaced using strtoul with strtoull when converting to 64-bit mask field. In Windows strtoul returns 32-bit values which cause an issue with show RSS RETA. Fixes: 66c594904ac ("ethdev: support multiple sizes of redirection table") Cc: stable@dpdk.org Signed-off-by: Adham Masarwah Acked-by: Aman Singh --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 7ab0575e64..6ffea8e21a 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -3127,7 +3127,7 @@ showport_parse_reta_config(struct rte_eth_rss_reta_entry64 *conf, return -1; } for (i = 0; i < ret; i++) - conf[i].mask = (uint64_t)strtoul(str_fld[i], &end, 0); + conf[i].mask = (uint64_t)strtoull(str_fld[i], &end, 0); return 0; }