]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:33 +0000 (07:47 +0200)
commit0b13d05c52def309a5a9ba6400cb1ff7953053c4
treee144585d249fdc9cbfef7dede6f15a5c077b7f1d
parent7197915a49212aa70b524627227071fbbd4ac458
hv_netvsc: fix network namespace issues with VF support

[ Upstream commit 7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c