summaryrefslogtreecommitdiff
path: root/app/test-pmd
diff options
context:
space:
mode:
authorDaniel Kan <dan@nyansa.com>2014-01-15 16:31:39 -0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-17 12:21:15 +0100
commit8d2a095e097160a39f8a71002fd1dae63dae73dc (patch)
tree2e1967a4ca00d52b5434a437f7e03afcea64ff22 /app/test-pmd
parent9d342a48be2ffc2aa3f2a0ebb1a00d08c85dfdc6 (diff)
downloaddpdk-8d2a095e097160a39f8a71002fd1dae63dae73dc.zip
dpdk-8d2a095e097160a39f8a71002fd1dae63dae73dc.tar.gz
dpdk-8d2a095e097160a39f8a71002fd1dae63dae73dc.tar.xz
app/testpmd: fix RSS by setting mq_mode
The mq_mode was not set when rxq is > 0; it's defaulted to ETH_MQ_RX_NONE. As a result, RSS remains inactive. The fix is to set mq_mode to ETH_MQ_RX_RSS when hf is non-zero. This bug was introduced by commit 243db2ddee3094a2cb39fdd4b17e26df4e7735e1 igb/ixgbe: ETH_MQ_RX_NONE should disable RSS Signed-off-by: Daniel Kan <dan@nyansa.com> Acked-by: Maxime Leroy <maxime.leroy@6wind.com>
Diffstat (limited to 'app/test-pmd')
-rw-r--r--app/test-pmd/testpmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index b11eb2e..42e1fdb 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -1546,6 +1546,9 @@ init_port_config(void)
if (nb_rxq > 0) {
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
port->dev_conf.rx_adv_conf.rss_conf.rss_hf = rss_hf;
+ if (rss_hf != 0) {
+ port->dev_conf.rxmode.mq_mode = ETH_MQ_RX_RSS;
+ }
} else {
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;