[Patch v2] hv_netvsc: Mark VF as slave before exposing it to user-mode

2023-10-27 Thread longli
From: Long Li 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

Re: [Patch v2] hv_netvsc: Mark VF as slave before exposing it to user-mode

2023-10-30 Thread Jakub Kicinski
On Fri, 27 Oct 2023 13:59:50 -0700 lon...@linuxonhyperv.com wrote: > 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.

RE: [Patch v2] hv_netvsc: Mark VF as slave before exposing it to user-mode

2023-10-30 Thread Long Li
> Subject: Re: [Patch v2] hv_netvsc: Mark VF as slave before exposing it to > user- > mode > > On Fri, 27 Oct 2023 13:59:50 -0700 lon...@linuxonhyperv.com wrote: > > When a VF is being exposed form the kernel, it should be marked as "slave" > > before exp