Blame SOURCES/0002-net-netvsc-enable-SR-IOV.patch

8f5e58
From da9c7a3059fb4cffef8d1101a247fafabd9be7bd Mon Sep 17 00:00:00 2001
8f5e58
From: Stephen Hemminger <sthemmin@microsoft.com>
8f5e58
Date: Wed, 5 Dec 2018 14:11:57 -0800
8f5e58
Subject: [PATCH 2/3] net/netvsc: enable SR-IOV
8f5e58
8f5e58
[ upstream commit 825ab257b5ce8235ab0cdc260e5b7b757e102875 ]
8f5e58
8f5e58
Make DPDK enable SRIOV flag in same way as Linux and FreeBSD.
8f5e58
8f5e58
Fixes: dc7680e8597c ("net/netvsc: support integrated VF")
8f5e58
8f5e58
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
8f5e58
(cherry picked from commit 21dc946c2b5524c7e6ec1fe4079864f3322dd483)
8f5e58
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
8f5e58
---
8f5e58
 drivers/net/netvsc/hn_nvs.c | 6 +++---
8f5e58
 1 file changed, 3 insertions(+), 3 deletions(-)
8f5e58
8f5e58
diff --git a/drivers/net/netvsc/hn_nvs.c b/drivers/net/netvsc/hn_nvs.c
8f5e58
index 9690c5f8a..d58770e04 100644
8f5e58
--- a/drivers/net/netvsc/hn_nvs.c
8f5e58
+++ b/drivers/net/netvsc/hn_nvs.c
8f5e58
@@ -326,9 +326,9 @@ hn_nvs_conf_ndis(struct hn_data *hv, unsigned int mtu)
8f5e58
 	conf.mtu = mtu + ETHER_HDR_LEN;
8f5e58
 	conf.caps = NVS_NDIS_CONF_VLAN;
8f5e58
 
8f5e58
-	/* TODO enable SRIOV */
8f5e58
-	//if (hv->nvs_ver >= NVS_VERSION_5)
8f5e58
-	//	conf.caps |= NVS_NDIS_CONF_SRIOV;
8f5e58
+	/* enable SRIOV */
8f5e58
+	if (hv->nvs_ver >= NVS_VERSION_5)
8f5e58
+		conf.caps |= NVS_NDIS_CONF_SRIOV;
8f5e58
 
8f5e58
 	/* NOTE: No response. */
8f5e58
 	error = hn_nvs_req_send(hv, &conf, sizeof(conf));
8f5e58
-- 
8f5e58
2.20.1
8f5e58