net: fealnx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Tue, 12 Feb 2019 15:56:53 +0000 (23:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 04:50:42 +0000 (20:50 -0800)
dev_consume_skb_irq() should be called in intr_handler() 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/fealnx.c

index ae55da60ed0ed1ece830bd515d26a932fca8150e..c24fd56a2c71d1ed08813e25a8b96bb144c00ca6 100644 (file)
@@ -1531,7 +1531,7 @@ static irqreturn_t intr_handler(int irq, void *dev_instance)
                        /* Free the original skb. */
                        pci_unmap_single(np->pci_dev, np->cur_tx->buffer,
                                np->cur_tx->skbuff->len, PCI_DMA_TODEVICE);
-                       dev_kfree_skb_irq(np->cur_tx->skbuff);
+                       dev_consume_skb_irq(np->cur_tx->skbuff);
                        np->cur_tx->skbuff = NULL;
                        --np->really_tx_count;
                        if (np->cur_tx->control & TXLD) {