summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/hyperv_net.h
diff options
context:
space:
mode:
authorStephen Hemminger2017-12-13 01:48:37 +0100
committerDavid S. Miller2017-12-13 21:57:38 +0100
commit79cf1bae384cfc51b0b0773b3591794302af6ebd (patch)
treedad3ccb989e1a023cdc69aefe6acb366ba13dbaa /drivers/net/hyperv/hyperv_net.h
parenthv_netvsc: track memory allocation failures in ethtool stats (diff)
downloadkernel-qcow2-linux-79cf1bae384cfc51b0b0773b3591794302af6ebd.tar.gz
kernel-qcow2-linux-79cf1bae384cfc51b0b0773b3591794302af6ebd.tar.xz
kernel-qcow2-linux-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 <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.h3
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);