Skip to content

Commit

Permalink
net: defxx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop…
Browse files Browse the repository at this point in the history
… profiles

dev_consume_skb_irq() should be called in dfx_xmt_done() when skb
xmit done. It makes drop profiles(dropwatch, perf) more friendly.

Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yang Wei authored and David S. Miller committed Feb 7, 2019
1 parent 218d05c commit 3703a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/fddi/defxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3512,7 +3512,7 @@ static int dfx_xmt_done(DFX_board_t *bp)
bp->descr_block_virt->xmt_data[comp].long_1,
p_xmt_drv_descr->p_skb->len,
DMA_TO_DEVICE);
dev_kfree_skb_irq(p_xmt_drv_descr->p_skb);
dev_consume_skb_irq(p_xmt_drv_descr->p_skb);

/*
* Move to start of next packet by updating completion index
Expand Down

0 comments on commit 3703a39

Please sign in to comment.