]> asedeno.scripts.mit.edu Git - linux.git/commit
hv_netvsc: fix network namespace issues with VF support
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Jun 2018 19:44:55 +0000 (12:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jun 2018 22:22:28 +0000 (15:22 -0700)
commit7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6
tree0c76a28771bda885ec02ce67a607c2de794d08f7
parent8cde8f0c0c03f9f7440f3d71a74d7cc35083f281
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c