]> 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)
commitda1285d47de4bbb47a91a3a13a5a865069ee7d2a
tree917e1f0ea60e089aee8b0f3d9011a6e668953a05
parenta06aeb9a46876d92b667a487ed8c37e07a5cc0e5
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