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

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