diff options
| author | Stephen Hemminger <[email protected]> | 2017-12-13 00:48:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-12-13 20:57:38 +0000 |
| commit | 79cf1bae384cfc51b0b0773b3591794302af6ebd (patch) | |
| tree | dad3ccb989e1a023cdc69aefe6acb366ba13dbaa /drivers/net/hyperv/hyperv_net.h | |
| parent | hv_netvsc: track memory allocation failures in ethtool stats (diff) | |
| download | kernel-79cf1bae384cfc51b0b0773b3591794302af6ebd.tar.gz kernel-79cf1bae384cfc51b0b0773b3591794302af6ebd.zip | |
hv_netvsc: simplify function args in receive status path
The caller (netvsc_receive) already has the net device pointer,
and should just pass that to functions rather than the hyperv device.
This eliminates several impossible error paths in the process.
Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
| -rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index ef8c9fb7d2ef..7e34eb53848b 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -199,7 +199,7 @@ int netvsc_send(struct net_device_context *ndc, struct rndis_message *rndis_msg, struct hv_page_buffer *page_buffer, struct sk_buff *skb); -void netvsc_linkstatus_callback(struct hv_device *device_obj, +void netvsc_linkstatus_callback(struct net_device *net, struct rndis_message *resp); int netvsc_recv_callback(struct net_device *net, struct vmbus_channel *channel, @@ -222,7 +222,6 @@ int rndis_filter_set_rss_param(struct rndis_device *rdev, const u8 *key); int rndis_filter_receive(struct net_device *ndev, struct netvsc_device *net_dev, - struct hv_device *dev, struct vmbus_channel *channel, void *data, u32 buflen); |
