aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-microchip-core.c
diff options
context:
space:
mode:
authorHaiyang Zhang <[email protected]>2024-10-18 11:25:22 -0700
committerPaolo Abeni <[email protected]>2024-10-24 12:43:20 +0200
commit4c262801ea60c518b5bebc22a09f5b78b3147da2 (patch)
tree2001e200bf36a260b6b3083864ff60e4cad3356d /drivers/pwm/pwm-microchip-core.c
parentee76eb24343bdd5450eb87572865a4d7fffd335b (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: [email protected] Fixes: c0a41b887ce6 ("hv_netvsc: move VF to same namespace as netvsc device") Suggested-by: Stephen Hemminger <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-microchip-core.c')
0 files changed, 0 insertions, 0 deletions