hv_netvsc: pass struct net_device to rndis_filter_set_device_mac()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 3 Jun 2016 15:51:01 +0000 (17:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jun 2016 03:16:36 +0000 (23:16 -0400)
commite834da9a40edd3117ef0a9b2a73d845fe6b622a8
tree0d29c4d78f8b0324df4ae5e0584b76efdcdd5160
parent2f5fa6c869e8f8c340dd05a2817eecbcea382c35
hv_netvsc: pass struct net_device to rndis_filter_set_device_mac()

We unpack 'struct net_device' in netvsc_set_mac_addr() to get to
'struct hv_device' pointer which we use in rndis_filter_set_device_mac()
to get back to 'struct net_device'.

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