]> git.baikalelectronics.ru Git - kernel.git/commit
net: b44: replace dev_kfree_skb_xxx by dev_consume_skb_xxx for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Tue, 29 Jan 2019 15:04:40 +0000 (23:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jan 2019 18:11:42 +0000 (10:11 -0800)
commitb9ccd510ff6ac1470edc43f3301f4df735255d90
treeeb7caaba610ef05ebb79c09fdbbf701cad5d103a
parente54272ef52a6a8f98d555355dc004adc325f7ed4
net: b44: replace dev_kfree_skb_xxx by dev_consume_skb_xxx for drop profiles

The skb should be freed by dev_consume_skb_any() in b44_start_xmit()
when bounce_skb is used. The skb is be replaced by bounce_skb, so the
original skb should be consumed(not drop).

dev_consume_skb_irq() should be called in b44_tx() 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>
drivers/net/ethernet/broadcom/b44.c