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 243db2ddee
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>
This commit is contained in:
parent
57e852429d
commit
35105f1288
@ -1571,6 +1571,9 @@ init_port_config(void)
|
|||||||
if (nb_rxq > 0) {
|
if (nb_rxq > 0) {
|
||||||
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
|
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
|
||||||
port->dev_conf.rx_adv_conf.rss_conf.rss_hf = rss_hf;
|
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 {
|
} else {
|
||||||
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
|
port->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;
|
||||||
port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;
|
port->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user