]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: gadget: u_ether: add a flag to avoid skb_reserve() calling
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 22 Aug 2016 08:48:26 +0000 (17:48 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 31 Aug 2016 07:06:03 +0000 (10:06 +0300)
commit05f6b0ff68429bb7c6b84b35e71b522c3bae76ae
tree3d59d92dd7c41eb935be159835e2b09e84210dfc
parent60e7396f820fa67a007f2a2eb5d97d3e77a74881
usb: gadget: u_ether: add a flag to avoid skb_reserve() calling

This patch adds a flag "no_skb_reserve" in struct eth_dev.
So, if a peripheral driver sets the quirk_avoids_skb_reserve flag,
upper network gadget drivers (e.g. f_ncm.c) can avoid skb_reserve()
calling using the flag as well.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/u_ether.c
drivers/usb/gadget/function/u_ether.h