RE: [PATCH net,v2] hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event

2024-10-17 Thread Haiyang Zhang
..@redhat.com; > step...@networkplumber.org; da...@davemloft.net; linux- > ker...@vger.kernel.org; sta...@vger.kernel.org > Subject: Re: [PATCH net,v2] hv_netvsc: Fix VF namespace also in synthetic > NIC NETDEV_REGISTER event > > On Wed, Oct 16, 2024 at 08:43:57AM -0700, Haiyang Zhan

Re: [PATCH net,v2] hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event

2024-10-17 Thread Simon Horman
On Wed, Oct 16, 2024 at 08:43:57AM -0700, Haiyang Zhang wrote: > The existing code moves VF to the same namespace as the synthetic NIC > 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 th

[PATCH net,v2] hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event

2024-10-16 Thread Haiyang Zhang
The existing code moves VF to the same namespace as the synthetic NIC 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 for synthetic NIC's NET