diff options
author | Long Li <longli@microsoft.com> | 2023-11-19 08:23:43 -0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-11-21 13:15:02 +0100 |
commit | c807d6cd089d2f4951baa838081ec5ae3e2360f8 (patch) | |
tree | ef1f991dac34eba153dc1a69a19b64eb0ad735c1 /scripts/gdb/linux/timerlist.py | |
parent | 85520856466ed6bc3b1ccb013cddac70ceb437db (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 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions