summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/via/via-velocity.c
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-05 17:22:54 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-07 02:38:15 +0100
commite0cbbc613175e1c67bd82721230692047923d845 (patch)
treebe559da6786e45c5d1f9c1a2bae60007774e43f7 /drivers/net/ethernet/via/via-velocity.c
parentnet: tehuti: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles (diff)
downloadlinux-e0cbbc613175e1c67bd82721230692047923d845.tar.xz
linux-e0cbbc613175e1c67bd82721230692047923d845.zip
net: via-velocity: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in velocity_free_tx_buf() 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/via/via-velocity.c')
-rw-r--r--drivers/net/ethernet/via/via-velocity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c
index 82412691ee66..27f6cf140845 100644
--- a/drivers/net/ethernet/via/via-velocity.c
+++ b/drivers/net/ethernet/via/via-velocity.c
@@ -1740,7 +1740,7 @@ static void velocity_free_tx_buf(struct velocity_info *vptr,
dma_unmap_single(vptr->dev, tdinfo->skb_dma[i],
le16_to_cpu(pktlen), DMA_TO_DEVICE);
}
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
tdinfo->skb = NULL;
}