summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek/8139cp.c
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-01-29 15:40:51 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-29 19:03:50 +0100
commit896cebc0e261a29a6f0b20ab21d1bfc06959e91d (patch)
tree20d3815c651b818cac8a20e08ef927e419b93f63 /drivers/net/ethernet/realtek/8139cp.c
parentnet: macb: Apply RXUBR workaround only to versions with errata (diff)
downloadlinux-896cebc0e261a29a6f0b20ab21d1bfc06959e91d.tar.xz
linux-896cebc0e261a29a6f0b20ab21d1bfc06959e91d.zip
net: 8139cp: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in cp_tx() 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>
Diffstat (limited to 'drivers/net/ethernet/realtek/8139cp.c')
-rw-r--r--drivers/net/ethernet/realtek/8139cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c
index 44f6e4873aad..4f910c4f67b0 100644
--- a/drivers/net/ethernet/realtek/8139cp.c
+++ b/drivers/net/ethernet/realtek/8139cp.c
@@ -691,7 +691,7 @@ static void cp_tx (struct cp_private *cp)
}
bytes_compl += skb->len;
pkts_compl++;
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
}
cp->tx_skb[tx_tail] = NULL;