diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2024-10-18 11:25:22 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-24 12:43:20 +0200 |
commit | 4c262801ea60c518b5bebc22a09f5b78b3147da2 (patch) | |
tree | 2001e200bf36a260b6b3083864ff60e4cad3356d /drivers/media/v4l2-core/v4l2-subdev.c | |
parent | ee76eb24343bdd5450eb87572865a4d7fffd335b (diff) |
hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
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 NETDEV_REGISTER event (generated during its move), 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")
Suggested-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1729275922-17595-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-subdev.c')
0 files changed, 0 insertions, 0 deletions