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)
commitc0a41b887ce614279c51964509e8d715979ce1f2
treef1add7b334da374645fc4415554b214d322eb110
parent7bf7bb37f16a80465ee3bd7c6c966f96f5a075a6
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