From: Paolo Abeni <pabeni@redhat.com>
To: Haiyang Zhang <haiyangz@microsoft.com>,
linux-hyperv@vger.kernel.org, netdev@vger.kernel.org
Cc: kys@microsoft.com, wei.liu@kernel.org, decui@microsoft.com,
edumazet@google.com, kuba@kernel.org, stephen@networkplumber.org,
davem@davemloft.net, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open
Date: Thu, 3 Oct 2024 11:34:49 +0200 [thread overview]
Message-ID: <a96b1e00-70e3-46d8-a918-e4eb2e7443e8@redhat.com> (raw)
In-Reply-To: <1727470464-14327-1-git-send-email-haiyangz@microsoft.com>
On 9/27/24 22:54, Haiyang Zhang wrote:
> The existing code moves VF to the same namespace as the synthetic device
> during netvsc_register_vf(). But, if the synthetic device is moved to a
> new namespace after the VF registration, the VF won't be moved together.
>
> To make the behavior more consistent, add a namespace check to netvsc_open(),
> and move the VF if it is not in the same namespace.
>
> Cc: stable@vger.kernel.org
> Fixes: c0a41b887ce6 ("hv_netvsc: move VF to same namespace as netvsc device")
> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
This looks strange to me. Skimming over the code it looks like that with
VF you really don't mean a Virtual Function...
Looking at the blamed commit, it looks like that having both the
synthetic and the "VF" device in different namespaces is an intended
use-case. This change would make such scenario more difficult and could
possibly break existing use-cases.
Why do you think it will be more consistent? If the user moved the
synthetic device in another netns, possibly/likely the user intended to
keep both devices separated.
Thanks,
Paolo
next prev parent reply other threads:[~2024-10-03 9:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-27 20:54 [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open Haiyang Zhang
2024-10-03 9:34 ` Paolo Abeni [this message]
2024-10-03 15:35 ` Haiyang Zhang
2024-10-03 15:48 ` Stephen Hemminger
2024-10-03 15:56 ` Haiyang Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a96b1e00-70e3-46d8-a918-e4eb2e7443e8@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=decui@microsoft.com \
--cc=edumazet@google.com \
--cc=haiyangz@microsoft.com \
--cc=kuba@kernel.org \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox