net: neterion: 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>
This commit is contained in:
parent
d4b242a788
commit
46befd3249
|
@ -3055,7 +3055,7 @@ static void tx_intr_handler(struct fifo_info *fifo_data)
|
|||
|
||||
/* Updating the statistics block */
|
||||
swstats->mem_freed += skb->truesize;
|
||||
dev_kfree_skb_irq(skb);
|
||||
dev_consume_skb_irq(skb);
|
||||
|
||||
get_info.offset++;
|
||||
if (get_info.offset == get_info.fifo_len + 1)
|
||||
|
|
|
@ -114,7 +114,7 @@ static inline void VXGE_COMPLETE_VPATH_TX(struct vxge_fifo *fifo)
|
|||
|
||||
/* free SKBs */
|
||||
for (temp = completed; temp != skb_ptr; temp++)
|
||||
dev_kfree_skb_irq(*temp);
|
||||
dev_consume_skb_irq(*temp);
|
||||
} while (more);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue