Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3703a395 authored by Yang Wei's avatar Yang Wei Committed by David S. Miller
Browse files

net: defxx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop 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: default avatarYang Wei <yang.wei9@zte.com.cn>
Reviewed-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 218d05ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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