From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Kan Subject: [PATCH v2] app/testpmd: fix RSS by setting mq_mode Date: Mon, 13 Jan 2014 11:17:10 -0800 Message-ID: <1389640630-21003-1-git-send-email-dan@nyansa.com> References: <201401131131.06203.thomas.monjalon@6wind.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <201401131131.06203.thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" The mq_mode was not set when rxq is > 1; 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 rxq is > 1 and 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 --- Updated commit log in accordance with dpdk guidelines app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b11eb2e..355db0f 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 (nb_rxq > 1 && 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; -- 1.7.9.5