diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-13 18:14:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 19:56:36 +0300 |
commit | fc67ade130382e21a43eca81c5ed098d8a82eedd (patch) | |
tree | 6cf07537035a20c3309d6baebfac2c2d3be75a8f /drivers/net/ethernet/amd/ni65.c | |
parent | 76cba8fd9c7d8dd2d18c8bee581c4176383441c6 (diff) | |
download | linux-fc67ade130382e21a43eca81c5ed098d8a82eedd.tar.xz |
net: amd: 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/amd/ni65.c')
-rw-r--r-- | drivers/net/ethernet/amd/ni65.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/ni65.c b/drivers/net/ethernet/amd/ni65.c index 8931ce6bab7b..87ff5d6d1b22 100644 --- a/drivers/net/ethernet/amd/ni65.c +++ b/drivers/net/ethernet/amd/ni65.c @@ -1028,7 +1028,7 @@ static void ni65_xmit_intr(struct net_device *dev,int csr0) #ifdef XMT_VIA_SKB if(p->tmd_skb[p->tmdlast]) { - dev_kfree_skb_irq(p->tmd_skb[p->tmdlast]); + dev_consume_skb_irq(p->tmd_skb[p->tmdlast]); p->tmd_skb[p->tmdlast] = NULL; } #endif |