Files
linux-stable-mirror/drivers
Long Li 6a2b0b689b 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:33:08 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2023-11-20 11:59:19 +01:00
…
…
…
…
…
…
…
…
…
2023-11-28 17:19:55 +00:00
…
…
…
…
…
…
…
…