Skip to content

Commit

Permalink
app/testpmd: fix show RSS RETA on Windows
Browse files Browse the repository at this point in the history
[ upstream commit 5aae272 ]

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: 66c5949 ("ethdev: support multiple sizes of redirection table")

Signed-off-by: Adham Masarwah <adham@nvidia.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
  • Loading branch information
Adham Masarwah authored and bluca committed Mar 15, 2022
1 parent 6fc2a8d commit 63f7788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-pmd/cmdline.c
Expand Up @@ -3021,7 +3021,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;
}
Expand Down

0 comments on commit 63f7788

Please sign in to comment.