Skip to content

Commit 73634c0

Browse files
Yang Weidavem330
authored andcommitted
net: wan: wanxl: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in wanxl_tx_intr() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b84caee commit 73634c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wan/wanxl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static inline void wanxl_tx_intr(struct port *port)
185185
desc->stat = PACKET_EMPTY; /* Free descriptor */
186186
pci_unmap_single(port->card->pdev, desc->address, skb->len,
187187
PCI_DMA_TODEVICE);
188-
dev_kfree_skb_irq(skb);
188+
dev_consume_skb_irq(skb);
189189
port->tx_in = (port->tx_in + 1) % TX_BUFFERS;
190190
}
191191
}

0 commit comments

Comments
 (0)