diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-05 19:25:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-07 04:38:15 +0300 |
commit | d2901b0739a42a5669ae33356206591a6bd3a64c (patch) | |
tree | 3d14b8626ab371183eb11a4d5ccf9b0598f039e4 /drivers/net/ethernet/broadcom | |
parent | e0cbbc613175e1c67bd82721230692047923d845 (diff) | |
download | linux-d2901b0739a42a5669ae33356206591a6bd3a64c.tar.xz |
net: broadcom: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in sbdma_tx_process() 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/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/sb1250-mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c index 5db9f4158e62..134ae2862efa 100644 --- a/drivers/net/ethernet/broadcom/sb1250-mac.c +++ b/drivers/net/ethernet/broadcom/sb1250-mac.c @@ -1288,7 +1288,7 @@ static void sbdma_tx_process(struct sbmac_softc *sc, struct sbmacdma *d, * for transmits, we just free buffers. */ - dev_kfree_skb_irq(sb); + dev_consume_skb_irq(sb); /* * .. and advance to the next buffer. |