linux/drivers/net/hyperv
Haiyang Zhang 4c262801ea hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
The existing code moves VF to the same namespace as the synthetic NIC
during netvsc_register_vf(). But, if the synthetic device is moved to a
new namespace after the VF registration, the VF won't be moved together.

To make the behavior more consistent, add a namespace check for synthetic
NIC's NETDEV_REGISTER event (generated during its move), and move the VF
if it is not in the same namespace.

Cc: stable@vger.kernel.org
Fixes: c0a41b887c ("hv_netvsc: move VF to same namespace as netvsc device")
Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1729275922-17595-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-24 12:43:20 +02:00
..
hyperv_net.h net: netvsc: Update default VMBus channels 2024-08-28 17:18:32 -07:00
Kconfig hv_netvsc: rndis_filter needs to select NLS 2023-12-01 20:12:24 -08:00
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc_bpf.c net: refactor ->ndo_bpf calls into dev_xdp_propagate 2024-08-24 15:27:22 +01:00
netvsc_drv.c hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event 2024-10-24 12:43:20 +02:00
netvsc_trace.c
netvsc_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
netvsc.c hv_netvsc: Don't free decrypted memory 2024-04-10 21:33:32 +00:00
rndis_filter.c hv_netvsc: remove duplicated including of slab.h 2023-12-15 12:19:00 +00:00