diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2016-06-03 15:51:01 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-06 03:16:36 (GMT) |
commit | e834da9a40edd3117ef0a9b2a73d845fe6b622a8 (patch) | |
tree | 0d29c4d78f8b0324df4ae5e0584b76efdcdd5160 /drivers/net/hyperv/hyperv_net.h | |
parent | 2f5fa6c869e8f8c340dd05a2817eecbcea382c35 (diff) | |
download | linux-e834da9a40edd3117ef0a9b2a73d845fe6b622a8.tar.xz |
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>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index f650ec1..467fb8b 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -201,7 +201,7 @@ int rndis_filter_receive(struct hv_device *dev, struct vmbus_channel *channel); int rndis_filter_set_packet_filter(struct rndis_device *dev, u32 new_filter); -int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac); +int rndis_filter_set_device_mac(struct net_device *ndev, char *mac); void netvsc_switch_datapath(struct net_device *nv_dev, bool vf); |