net: myri10ge: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Wed, 13 Feb 2019 15:15:43 +0000 (23:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 16:56:36 +0000 (11:56 -0500)
dev_consume_skb_irq() should be called in myri10ge_tx_done() when
skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.

Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c

index 19ce0e605096211d106cce5df9757db73b646c98..e0340f778d8fbf671d16a68c031cb03aa50963f6 100644 (file)
@@ -1408,7 +1408,7 @@ myri10ge_tx_done(struct myri10ge_slice_state *ss, int mcp_index)
                if (skb) {
                        ss->stats.tx_bytes += skb->len;
                        ss->stats.tx_packets++;
-                       dev_kfree_skb_irq(skb);
+                       dev_consume_skb_irq(skb);
                        if (len)
                                pci_unmap_single(pdev,
                                                 dma_unmap_addr(&tx->info[idx],