[dpdk-dev] [PATCH v3]

Daniel Kan dan at nyansa.com
Thu Jan 16 01:27:28 CET 2014


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 at nyansa.com>
---
Enable RSS even if rxq=1 based on comment from Maxime Leroy.

 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..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;
-- 
1.7.9.5



More information about the dev mailing list