mirror-linux/drivers/net/hyperv
Long Li c4d3957510 hv_netvsc: Mark VF as slave before exposing it to user-mode
commit c807d6cd08 upstream.

When a VF is being exposed form the kernel, it should be marked as "slave"
before exposing to the user-mode. The VF is not usable without netvsc
running as master. The user-mode should never see a VF without the "slave"
flag.

This commit moves the code of setting the slave flag to the time before
VF is exposed to user-mode.

Cc: stable@vger.kernel.org
Fixes: 0c195567a8 ("netvsc: transparent VF management")
Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-03 07:32:11 +01:00
..
Kconfig
Makefile
hyperv_net.h hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-07 08:43:58 +01:00
netvsc.c hv_netvsc: Check status in SEND_RNDIS_PKT completion message 2023-03-10 09:33:53 +01:00
netvsc_bpf.c
netvsc_drv.c hv_netvsc: Mark VF as slave before exposing it to user-mode 2023-12-03 07:32:11 +01:00
netvsc_trace.c
netvsc_trace.h
rndis_filter.c net: hv_netvsc: Fix a warning triggered by memcpy in rndis_filter 2022-10-15 11:09:53 +01:00