diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-05 17:22:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-07 02:38:15 +0100 |
commit | e0cbbc613175e1c67bd82721230692047923d845 (patch) | |
tree | be559da6786e45c5d1f9c1a2bae60007774e43f7 /drivers/net/ethernet/via/via-velocity.c | |
parent | net: tehuti: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles (diff) | |
download | linux-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.c | 2 |
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; } |