Skip to contentSkip to conversation

app/test-pmd: Use the new rss_hf size changed in 1.7

PATCH In review Jia Yu 2 participants 2 messages Nov 7, 2014 – Nov 27, 2014 1 message not in the archive

lore
Share & tools
lore

Jia Yu

author
#0 lore raw

PATCH 1/1 app/test-pmd: Use the new rss_hf size changed in 1.7

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.

---
 app/test-pmd/config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/config.c +1 -1
index 9bc08f4..b34b0b2 100644
@@ -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;
 
Signature · 1 line
1.9.1

A message that is not in the archive (sent off-list or not yet received): 1415374981-34047-1-git-send-email-jyu-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org

#2 lore raw
Quoted 5 lines

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.

Acked and applied.

Signature · 1 line
Thomas