From: Yangchao Zhou Date: Mon, 4 Dec 2017 06:38:09 +0000 (+0800) Subject: net/fm10k: remove RSS restriction with num of queues X-Git-Tag: spdx-start~542 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3b7eb565e5dd2bce345ba19667f62bbd7750dd35;p=dpdk.git net/fm10k: remove RSS restriction with num of queues FM10K HW does not have such restrictions. Enabling RSS with single queue is not used to distribute flow, but it can be used to compute a RSS hash value. It can reduce CPU cycles of computing a hash value with five tuples. In addition, there is an explicit method to disable RSS instead of an obscure way. Signed-off-by: Yangchao Zhou Acked-by: Qi Zhang --- diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 80672a3dea..c82337255f 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -504,9 +504,8 @@ fm10k_dev_rss_configure(struct rte_eth_dev *dev) 0x6A, 0x42, 0xB7, 0x3B, 0xBE, 0xAC, 0x01, 0xFA, }; - if (dev->data->nb_rx_queues == 1 || - dev_conf->rxmode.mq_mode != ETH_MQ_RX_RSS || - dev_conf->rx_adv_conf.rss_conf.rss_hf == 0) { + if (dev_conf->rxmode.mq_mode != ETH_MQ_RX_RSS || + dev_conf->rx_adv_conf.rss_conf.rss_hf == 0) { FM10K_WRITE_REG(hw, FM10K_MRQC(0), 0); return; }