hv_netvsc: Cleanup the test for freeing skb when we use sendbuf mechanism
[deliverable/linux.git] / drivers / net / hyperv / netvsc_drv.c
index a06bd6614007f7460f546951c70fd8cacbe7e6f9..75beb89aac9c68310f215ffea3faf1a7d41f9cac 100644 (file)
@@ -234,11 +234,10 @@ static void netvsc_xmit_completion(void *context)
        struct hv_netvsc_packet *packet = (struct hv_netvsc_packet *)context;
        struct sk_buff *skb = (struct sk_buff *)
                (unsigned long)packet->send_completion_tid;
-       u32 index = packet->send_buf_index;
 
        kfree(packet);
 
-       if (skb && (index == NETVSC_INVALID_INDEX))
+       if (skb)
                dev_kfree_skb_any(skb);
 }
 
@@ -413,6 +412,8 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
                return NETDEV_TX_OK;
        }
 
+       packet->xmit_more = skb->xmit_more;
+
        packet->vlan_tci = skb->vlan_tci;
 
        packet->q_idx = skb_get_queue_mapping(skb);
This page took 0.031052 seconds and 5 git commands to generate.