]> git.droids-corp.org - dpdk.git/commitdiff
app/testpmd: fix RSS flags size
authorJia Yu <jyu@vmware.com>
Fri, 7 Nov 2014 15:43:01 +0000 (07:43 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 27 Nov 2014 17:24:57 +0000 (18:24 +0100)
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 <jyu@vmware.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/config.c

index a4c16fc6043f6eb3e0cad6f3b40b820e17e1941e..f0b770eb34e75abcfd5e5b60b09491a7301bd53c 100644 (file)
@@ -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;