diff options
| author | 2023-11-19 08:23:43 -0800 | |
|---|---|---|
| committer | 2023-11-21 13:15:02 +0100 | |
| commit | c807d6cd089d2f4951baa838081ec5ae3e2360f8 (patch) | |
| tree | ef1f991dac34eba153dc1a69a19b64eb0ad735c1 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | hv_netvsc: Fix race of register_netdevice_notifier and VF register (diff) | |
hv_netvsc: Mark VF as slave before exposing it to user-mode
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: 0c195567a8f6 ("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>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
