]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hv_netvsc: avoid retry on send during shutdown
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Mar 2018 21:49:01 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 03:18:20 +0000 (22:18 -0500)
commit12f69661a49446840d742d8feb593ace022d9f66
tree917e1f0ea60e089aee8b0f3d9011a6e668953a05
parent3cc81a9aac43829d86ebf775c388b42d770bc0ac
hv_netvsc: avoid retry on send during shutdown

Change the initialization order so that the device is ready to transmit
(ie connect vsp is completed) before setting the internal reference
to the device with RCU.

This avoids any races on initialization and prevents retry issues
on shutdown.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c