OSDN Git Service

hv_netvsc: Process NETDEV_GOING_DOWN on VF hot remove
authorLong Li <longli@microsoft.com>
Sat, 9 Jan 2021 00:53:43 +0000 (16:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 03:58:36 +0000 (19:58 -0800)
commit34b06a2eee44d469f2e2c013a83e6dac3aff6411
tree0fefbcb2583dded9ccb667c4b09894607aa5f103
parent8b31f8c982b738e4130539e47f03967c599d8e22
hv_netvsc: Process NETDEV_GOING_DOWN on VF hot remove

On VF hot remove, NETDEV_GOING_DOWN is sent to notify the VF is about to
go down. At this time, the VF is still sending/receiving traffic and we
request the VSP to switch datapath.

On completion, the datapath is switched to synthetic and we can proceed
with VF hot remove.

Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/hyperv/netvsc_drv.c