summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2019-12-06 15:52:48 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-12-10 09:19:20 +0000
commit53d40bbaa0428239094cb3da4f82cb1bc8c0303d (patch)
treef5c15bd35f524ac3417a667a8eaaae075503c30d
parent449f2a927c89729f54deed2a96436b8e6d92a668 (diff)
downloaddpdk-next-net-brcm-master.zip
dpdk-next-net-brcm-master.tar.gz
dpdk-next-net-brcm-master.tar.xz
net/netvsc: disable before changing RSS parametersHEADmaster
In order to change RSS parameters, the host requires that RSS is disable first. Fixes: 92d23a57cafe ("net/netvsc: support configuring RSS parameters") Cc: stable@dpdk.org Signed-off-by: Donald Lee <Donald_Lee@trendmicro.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Tested-by: Dexuan Cui <decui@microsoft.com> Tested-by: Abhishek Marathe <abmarath@microsoft.com>
-rw-r--r--drivers/net/netvsc/hn_ethdev.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c
index 5ef7a45..159116f 100644
--- a/drivers/net/netvsc/hn_ethdev.c
+++ b/drivers/net/netvsc/hn_ethdev.c
@@ -292,6 +292,13 @@ static int hn_rss_reta_update(struct rte_eth_dev *dev,
hv->rss_ind[i] = reta_conf[idx].reta[shift];
}
+ err = hn_rndis_conf_rss(hv, NDIS_RSS_FLAG_DISABLE);
+ if (err) {
+ PMD_DRV_LOG(NOTICE,
+ "rss disable failed");
+ return err;
+ }
+
err = hn_rndis_conf_rss(hv, 0);
if (err) {
PMD_DRV_LOG(NOTICE,
@@ -579,6 +586,13 @@ static int hn_dev_configure(struct rte_eth_dev *dev)
return err;
}
+ err = hn_rndis_conf_rss(hv, NDIS_RSS_FLAG_DISABLE);
+ if (err) {
+ PMD_DRV_LOG(NOTICE,
+ "rss disable failed");
+ return err;
+ }
+
err = hn_rndis_conf_rss(hv, 0);
if (err) {
PMD_DRV_LOG(NOTICE,