Skip to contentSkip to conversation

net/iavf: fix incomplete rss initiation

PATCH Applied Xuan Ding 2 participants 2 messages Apr 25, 2021 – Apr 26, 2021 Network drivers

lore
Share & tools
lore

Xuan Ding

author
#0 lore raw

PATCH 1/1 net/iavf: fix incomplete rss initiation

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")
---
 drivers/net/iavf/iavf_ethdev.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/net/iavf/iavf_ethdev.c +0 -8
index 97a2dc7d76..c06873d26f 100644
@@ -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) {
Signature · 1 line
2.17.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Ding, Xuan <[email protected]>
Sent: Sunday, April 25, 2021 4:06 PM
To: Zhang, Qi Z <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Cc: [email protected]; Ding, Xuan <[email protected]>; [email protected]
Subject: [PATCH] net/iavf: fix incomplete rss initiation

When the default RSS is disabled during initialization, the RSS should be turned on when creating RSS rule.

Quoted 7 lines

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")

Applied to dpdk-next-net-intel.

Thanks
Qi