From: Jia Yu Date: Fri, 7 Nov 2014 15:43:01 +0000 (-0800) Subject: app/testpmd: fix RSS flags size X-Git-Tag: spdx-start~10023 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9ebefc080be2f140c4eb6387ded3b29b78bdb52c;p=dpdk.git app/testpmd: fix RSS flags size Since commit 8a387fa85f02 ("ethdev: more RSS flags") in DPDK 1.7, RSS flags have increased. According to rss_hf definition in rte_eth_rss_conf, it shall be uint64 type. Using uint16 will get truncated value, and cause incorrect output. This fix corrected this issue. Signed-off-by: Jia Yu Acked-by: Thomas Monjalon --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index a4c16fc604..f0b770eb34 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -824,7 +824,7 @@ port_rss_hash_conf_show(portid_t port_id, int show_rss_key) { struct rte_eth_rss_conf rss_conf; uint8_t rss_key[10 * 4]; - uint16_t rss_hf; + uint64_t rss_hf; uint8_t i; int diag;