OSDN Git Service

hv_netvsc: pass netvsc_device to receive callback
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 13 Dec 2017 00:48:38 +0000 (16:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 20:57:39 +0000 (15:57 -0500)
commit345ac08990b8365294f9756da806f357c239d758
tree5392199a2ee9c8a40615886e2745c802a8f1fed2
parent79cf1bae384cfc51b0b0773b3591794302af6ebd
hv_netvsc: pass netvsc_device to receive callback

The netvsc_receive_callback function was using RCU to find the
appropriate underlying netvsc_device. Since calling function already
had that pointer, this was unnecessary.

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_drv.c
drivers/net/hyperv/rndis_filter.c