]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ad0428d460139785e70e3cb3357ae8c58e4f5a3
tree0fefbcb2583dded9ccb667c4b09894607aa5f103
parent4b78df5b6bbe2105a8b12826aa858d62a33d410b
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