From: Daniel Kan Date: Thu, 16 Jan 2014 00:31:39 +0000 (-0800) Subject: app/testpmd: fix RSS by setting mq_mode X-Git-Tag: spdx-start~11002 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=35105f1288a0d81135945ef167fa7ba20c883c04;p=dpdk.git 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 Acked-by: Maxime Leroy --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 28440e5a43..e94e642249 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1571,6 +1571,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;