Commit 5b8b9342 authored by KY Srinivasan's avatar KY Srinivasan Committed by Kamal Mostafa

hv_netvsc: Eliminate send_completion_ctx from struct hv_netvsc_packet

BugLink: http://bugs.launchpad.net/bugs/1583357

Eliminate send_completion_ctx from struct hv_netvsc_packet.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 074c2fe5)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent ccbb97ee
......@@ -146,7 +146,6 @@ struct hv_netvsc_packet {
u64 send_completion_tid;
void *send_completion_ctx;
struct hv_page_buffer *page_buf;
};
......
......@@ -653,8 +653,7 @@ static void netvsc_send_completion(struct netvsc_device *net_device,
netvsc_free_send_slot(net_device, send_index);
q_idx = nvsc_packet->q_idx;
channel = incoming_channel;
netvsc_xmit_completion(nvsc_packet->
send_completion_ctx);
netvsc_xmit_completion(nvsc_packet);
}
num_outstanding_sends =
......
......@@ -434,7 +434,6 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
/* Set the completion routine */
packet->completion_func = 1;
packet->send_completion_ctx = packet;
packet->send_completion_tid = (unsigned long)skb;
isvlan = packet->vlan_tci & VLAN_TAG_PRESENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment