]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: move VF to same namespace as netvsc device
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Jun 2018 19:44:56 +0000 (12:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jun 2018 22:22:28 +0000 (15:22 -0700)
commit3ff8250c1889022e59959e583f1bb9286b45ee32
treef1add7b334da374645fc4415554b214d322eb110
parent3c581561ac2331afe99c6dc596d0235560639d3c
hv_netvsc: move VF to same namespace as netvsc device

When VF is added, the paravirtual device is already present
and may have been moved to another network namespace. For example,
sometimes the management interface is put in another net namespace
in some environments.

The VF should get moved to where the netvsc device is when the
VF is discovered. The user can move it later (if desired).

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c