diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2015-04-06 22:22:54 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-07 22:45:33 (GMT) |
commit | ee90b81203a91d4e5385622811ee7872b5bcfe76 (patch) | |
tree | 50d211e19cbda5786e09ddcfe287da64d6d2c91a /drivers/net/hyperv/hyperv_net.h | |
parent | 721514222db13498613706709409c21c105e0f4a (diff) | |
download | linux-ee90b81203a91d4e5385622811ee7872b5bcfe76.tar.xz |
hv_netvsc: Fix the packet free when it is in skb headroom
In the two places changed, we now use netvsc_xmit_completion() which properly
frees hv_netvsc_packet in or not in skb headroom.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 80bc52e..f0b8b3e 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -188,6 +188,7 @@ int netvsc_send(struct hv_device *device, struct hv_netvsc_packet *packet); void netvsc_linkstatus_callback(struct hv_device *device_obj, struct rndis_message *resp); +void netvsc_xmit_completion(void *context); int netvsc_recv_callback(struct hv_device *device_obj, struct hv_netvsc_packet *packet, struct ndis_tcp_ip_checksum_info *csum_info); |