From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-outbound-2.vmware.com (smtp-outbound-2.vmware.com [208.91.2.13]) by dpdk.org (Postfix) with ESMTP id 82A09590B for ; Sat, 8 Nov 2014 00:41:55 +0100 (CET) Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id DF1022864C for ; Fri, 7 Nov 2014 15:51:21 -0800 (PST) Received: from prmh-edge-ivybridge-13.eng.vmware.com (prmh-edge-ivybridge-13.eng.vmware.com [10.24.235.96]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 8545141D13; Fri, 7 Nov 2014 15:51:21 -0800 (PST) From: Jia Yu To: dev@dpdk.org Date: Fri, 7 Nov 2014 07:43:01 -0800 Message-Id: <1415374981-34047-1-git-send-email-jyu@vmware.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] app/test-pmd: Use the new rss_hf size changed in 1.7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 23:41:55 -0000 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 --- app/test-pmd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 9bc08f4..b34b0b2 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -804,7 +804,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; -- 1.9.1