hv_netvsc: introduce {net, hv}_device_to_netvsc_device() helpers
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 3 Jun 2016 15:50:59 +0000 (17:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jun 2016 03:16:35 +0000 (23:16 -0400)
commit2625466d6d92f056da970bee990c862c54188819
treed250c8b295c13dd09bc290344faf00ec2ba6897b
parent4baa994dc93287321c1b712d98cb6f721652891b
hv_netvsc: introduce {net, hv}_device_to_netvsc_device() helpers

Make it easier to get 'struct netvsc_device' from 'struct net_device' and
'struct hv_device' by introducing inline helpers.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c