diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-07-28 08:59:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-29 15:25:43 -0700 |
commit | 867047c4512aa65fb4cf66b253b51b830c7fa172 (patch) | |
tree | 61fe0635f7c2eaae5d6591d5df61f05c18a3ff11 /drivers/net/hyperv/hyperv_net.h | |
parent | d6aac1f218873f2266de23280bffb909b4a98fbf (diff) | |
download | linux-stable-867047c4512aa65fb4cf66b253b51b830c7fa172.tar.gz linux-stable-867047c4512aa65fb4cf66b253b51b830c7fa172.tar.bz2 linux-stable-867047c4512aa65fb4cf66b253b51b830c7fa172.zip |
netvsc: fix warnings reported by lockdep
This includes a bunch of fixups for issues reported by
lockdep.
* ethtool routines can assume RTNL
* send is done with RCU lock (and BH disable)
* avoid refetching internal device struct (netvsc)
instead pass it as a parameter.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 4e7ff348327e..fb62ea632914 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -217,7 +217,8 @@ int rndis_filter_receive(struct net_device *ndev, struct vmbus_channel *channel, void *data, u32 buflen); -int rndis_filter_set_device_mac(struct net_device *ndev, char *mac); +int rndis_filter_set_device_mac(struct netvsc_device *ndev, + const char *mac); void netvsc_switch_datapath(struct net_device *nv_dev, bool vf); |