Browse Source

hv_netvsc: Eliminate send_completion_ctx from struct hv_netvsc_packet

Eliminate send_completion_ctx from struct hv_netvsc_packet.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
KY Srinivasan 9 years ago
parent
commit
074c2fe5ef
3 changed files with 1 additions and 4 deletions
  1. 0 1
      drivers/net/hyperv/hyperv_net.h
  2. 1 2
      drivers/net/hyperv/netvsc.c
  3. 0 1
      drivers/net/hyperv/netvsc_drv.c

+ 0 - 1
drivers/net/hyperv/hyperv_net.h

@@ -146,7 +146,6 @@ struct hv_netvsc_packet {
 
 
 	u64 send_completion_tid;
-	void *send_completion_ctx;
 	struct hv_page_buffer *page_buf;
 };
 

+ 1 - 2
drivers/net/hyperv/netvsc.c

@@ -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 =

+ 0 - 1
drivers/net/hyperv/netvsc_drv.c

@@ -490,7 +490,6 @@ check_size:
 
 	/* 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;