提交 2656c9e2 编写于 作者: M Macpaul Lin 提交者: Felipe Balbi

usb: gadget: f_rndis: reduce NETTX irq caused by free skb header

This patch reduce unecessary NETTX softirq call caused by
free skb header. You will see this softirq comes twice while
there is only one TX packet to be transmitted.

So using dev_kfree_skb() instead of dev_kfree_skb_any() to
avoid this problem.

Cc: David S. Miller <davem@davemloft.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NMacpaul Lin <macpaul@gmail.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 9189a330
......@@ -377,7 +377,7 @@ static struct sk_buff *rndis_add_header(struct gether *port,
if (skb2)
rndis_add_hdr(skb2);
dev_kfree_skb_any(skb);
dev_kfree_skb(skb);
return skb2;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册