summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-06-11 12:44:55 -0700
committerDavid S. Miller <davem@davemloft.net>2018-06-12 15:22:28 -0700
commit7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6 (patch)
tree0c76a28771bda885ec02ce67a607c2de794d08f7 /drivers/net/hyperv/hyperv_net.h
parent8cde8f0c0c03f9f7440f3d71a74d7cc35083f281 (diff)
downloadlinux-7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6.tar.bz2
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 */