From 91fba40ea9b9c3f0ff7f583fbe5627188a49b24e Mon Sep 17 00:00:00 2001 From: Xuan Ding Date: Sun, 25 Apr 2021 08:05:50 +0000 Subject: [PATCH] net/iavf: fix RSS initialization When the default RSS is disabled during initialization, the RSS should be turned on when creating RSS rule. This patch adds support to configure RSS key and lookup table even when the default RSS is disabled. Fixes: c678299594a8 ("net/iavf: fix default RSS configuration") Cc: stable@dpdk.org Signed-off-by: Xuan Ding Acked-by: Qi Zhang --- drivers/net/iavf/iavf_ethdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 97a2dc7d76..c06873d26f 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -362,14 +362,6 @@ iavf_init_rss(struct iavf_adapter *adapter) PMD_DRV_LOG(DEBUG, "RSS is not supported"); return -ENOTSUP; } - if (adapter->eth_dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_RSS) { - PMD_DRV_LOG(WARNING, "RSS is enabled by PF by default"); - /* set all lut items to default queue */ - for (i = 0; i < vf->vf_res->rss_lut_size; i++) - vf->rss_lut[i] = 0; - ret = iavf_configure_rss_lut(adapter); - return ret; - } /* configure RSS key */ if (!rss_conf->rss_key) { -- 2.20.1