]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hv_netvsc: Eliminate send_completion_ctx from struct hv_netvsc_packet
authorKY Srinivasan <kys@microsoft.com>
Wed, 2 Dec 2015 00:43:09 +0000 (16:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 04:43:24 +0000 (23:43 -0500)
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c

index f096f2fd713db7e1d7b802ccf48e2fd37fdbf545..fc6d0c6de741e00d7c31533df8998c2f53cda717 100644 (file)
@@ -146,7 +146,6 @@ struct hv_netvsc_packet {
 
 
        u64 send_completion_tid;
-       void *send_completion_ctx;
        struct hv_page_buffer *page_buf;
 };
 
index 34c16d19f05d7e085aaf68ef369aa1873eb3afd3..0e0b723df1acadd66b1e188058bd61b423be05b7 100644 (file)
@@ -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 =
index 8f29d805bd77c11870e741fa168d27f28f24e39c..7e356a11c1d74aba8c06b7dd2fb62f2464cd1afe 100644 (file)
@@ -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;