Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Macpaul Lin <macpaul@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Macpaul Lin and committed by
Felipe Balbi
2656c9e2 9189a330

+1 -1
+1 -1
drivers/usb/gadget/f_rndis.c
··· 377 377 if (skb2) 378 378 rndis_add_hdr(skb2); 379 379 380 - dev_kfree_skb_any(skb); 380 + dev_kfree_skb(skb); 381 381 return skb2; 382 382 } 383 383