summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Chen <chenhao164@huawei.com>2019-11-22 20:06:19 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-25 16:41:03 +0000
commitcb76df3f55f5d0c53d64ca21fe60033739c84e37 (patch)
treed2a3304cada1d447eff7276580dd5df8f5cb3a4e
parentfcd87103fd5b3f3ea85807c0ba5afa4c027dfeb2 (diff)
downloaddpdk-next-net-intel-cb76df3f55f5d0c53d64ca21fe60033739c84e37.zip
dpdk-next-net-intel-cb76df3f55f5d0c53d64ca21fe60033739c84e37.tar.gz
dpdk-next-net-intel-cb76df3f55f5d0c53d64ca21fe60033739c84e37.tar.xz
net/hns3: fix RSS hardware configuration restore
This patch fixes the bug that hardware configuration called tc_size doesn't restore to the initial value when starting the app, configuring PFC and then restarting the app, because of the tc_mode didn't initial when rss is disabled. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Cc: stable@dpdk.org Signed-off-by: Hao Chen <chenhao164@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
-rw-r--r--drivers/net/hns3/hns3_rss.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c
index 6a5d633..b8c20e6 100644
--- a/drivers/net/hns3/hns3_rss.c
+++ b/drivers/net/hns3/hns3_rss.c
@@ -525,10 +525,8 @@ hns3_config_rss(struct hns3_adapter *hns)
enum rte_eth_rx_mq_mode mq_mode = hw->data->dev_conf.rxmode.mq_mode;
/* When there is no open RSS, redirect the packet queue 0 */
- if (((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) == 0) {
+ if (((uint32_t)mq_mode & ETH_MQ_RX_RSS_FLAG) == 0)
hns3_rss_uninit(hns);
- return 0;
- }
/* Configure RSS hash algorithm and hash key offset */
ret = hns3_set_rss_algo_key(hw, hash_algo, hash_key);