]> git.baikalelectronics.ru Git - kernel.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)
commit0f93c42f4a0397281e78413cebebadb31f3ce9d4
tree917e1f0ea60e089aee8b0f3d9011a6e668953a05
parent658a4f446d4394d4b5d1b3117d061426730a97be
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