netvsc: save pointer to parent netvsc_device in channel table
authorstephen hemminger <stephen@networkplumber.org>
Wed, 19 Jul 2017 18:53:18 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jul 2017 05:20:05 +0000 (22:20 -0700)
commit35fbbccfb417385c1c8cc6f799154ea1ebdc22ef
treedf956c396785926a4d78f4075fdfbd004e93f3a0
parent2a926f791211b40ba114f45e0e7bfefd2fac5d30
netvsc: save pointer to parent netvsc_device in channel table

Keep back pointer in the per-channel data structure to
avoid any possible RCU related issues when napi poll is
called but netvsc_device is in RCU limbo.

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