diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-06 00:22:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-06 17:38:15 -0800 |
commit | e0cbbc613175e1c67bd82721230692047923d845 (patch) | |
tree | be559da6786e45c5d1f9c1a2bae60007774e43f7 /drivers/net/ethernet/via | |
parent | f4ad1a6154e305dbcde20395a6961658d1ce032b (diff) | |
download | linux-e0cbbc613175e1c67bd82721230692047923d845.tar.gz linux-e0cbbc613175e1c67bd82721230692047923d845.tar.bz2 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')
-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; } |