]> git.baikalelectronics.ru Git - kernel.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)
commit63469a42522f51e523239d92132294684bcdf619
tree0c76a28771bda885ec02ce67a607c2de794d08f7
parentb2f638bc0faa3a9d9cd3f255bcb161d12fe344c4
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: 57fbf94d53f0 ("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