kernel_samsung_a53x/drivers/net/hyperv
Haiyang Zhang 7649aa77c4 hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
commit 4c262801ea60c518b5bebc22a09f5b78b3147da2 upstream.

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: c0a41b887ce6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:22:01 +01:00
..
hyperv_net.h hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening 2024-11-18 23:19:52 +01:00
Kconfig hv_netvsc: rndis_filter needs to select NLS 2024-11-18 12:11:39 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netvsc.c hv_netvsc: Wait for completion on request SWITCH_DATA_PATH 2024-11-18 23:19:52 +01:00
netvsc_bpf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netvsc_drv.c hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event 2024-11-23 23:22:01 +01:00
netvsc_trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netvsc_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rndis_filter.c hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening 2024-11-18 23:19:52 +01:00