[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231119085353.757792c1@hermes.local>
Date: Sun, 19 Nov 2023 08:53:53 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Haiyang Zhang <haiyangz@...rosoft.com>
Cc: linux-hyperv@...r.kernel.org, netdev@...r.kernel.org, kys@...rosoft.com,
wei.liu@...nel.org, decui@...rosoft.com, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, davem@...emloft.net,
linux-kernel@...r.kernel.org, Long Li <longli@...rosoft.com>,
stable@...r.kernel.org
Subject: Re: [PATCH net,v5, 3/3] hv_netvsc: Mark VF as slave before exposing
it to user-mode
On Sun, 19 Nov 2023 08:23:43 -0800
Haiyang Zhang <haiyangz@...rosoft.com> wrote:
> From: Long Li <longli@...rosoft.com>
>
> 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@...r.kernel.org
> Fixes: 0c195567a8f6 ("netvsc: transparent VF management")
> Signed-off-by: Long Li <longli@...rosoft.com>
> Signed-off-by: Haiyang Zhang <haiyangz@...rosoft.com>
Acked-by: Stephen Hemminger <stephen@...workplumber.org>
Powered by blists - more mailing lists