summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/packetengines/hamachi.c
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-14 22:52:28 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-14 12:43:15 -0500
commit1bba6de1a67f10270dd0f0951050d0470514c2a5 (patch)
tree28b3953138d304c4aa94d51da19898ea2bca7afb /drivers/net/ethernet/packetengines/hamachi.c
parentd1441d4782f2d3d7b9596df8076a2f213a34dcf5 (diff)
net: packetengines: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called 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/packetengines/hamachi.c')
-rw-r--r--drivers/net/ethernet/packetengines/hamachi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c
index c9529c29a0a7..eee883a2aa8d 100644
--- a/drivers/net/ethernet/packetengines/hamachi.c
+++ b/drivers/net/ethernet/packetengines/hamachi.c
@@ -1337,7 +1337,7 @@ static irqreturn_t hamachi_interrupt(int irq, void *dev_instance)
leXX_to_cpu(hmp->tx_ring[entry].addr),
skb->len,
PCI_DMA_TODEVICE);
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
hmp->tx_skbuff[entry] = NULL;
}
hmp->tx_ring[entry].status_n_length = 0;