summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger2018-06-11 21:44:55 +0200
committerDavid S. Miller2018-06-13 00:22:28 +0200
commit7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6 (patch)
tree0c76a28771bda885ec02ce67a607c2de794d08f7 /drivers/net/hyperv/hyperv_net.h
parenthv_netvsc: drop common code until callback model fixed (diff)
downloadkernel-qcow2-linux-7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6.tar.gz
kernel-qcow2-linux-7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6.tar.xz
kernel-qcow2-linux-7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6.zip
hv_netvsc: fix network namespace issues with VF support
When finding the parent netvsc device, the search needs to be across all netvsc device instances (independent of network namespace). Find parent device of VF using upper_dev_get routine which searches only adjacent list. Fixes: e8ff40d4bff1 ("hv_netvsc: improve VF device matching") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> netns aware byref Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r--drivers/net/hyperv/hyperv_net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 9246e4562830..d31c0cd329a1 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -901,6 +901,8 @@ struct net_device_context {
struct hv_device *device_ctx;
/* netvsc_device */
struct netvsc_device __rcu *nvdev;
+ /* list of netvsc net_devices */
+ struct list_head list;
/* reconfigure work */
struct delayed_work dwork;
/* last reconfig time */