usb: gadget: u_ether: move hardware transmit to RX NAPI
authorWeinn Jheng <clanlab.proj@gmail.com>
Thu, 27 Feb 2014 09:49:00 +0000 (17:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Fri, 7 Mar 2014 16:03:24 +0000 (10:03 -0600)
commit716fb91dfe1777bd6d5e598f3d3572214b3ed296
tree75232c404790fbeb8816f244daeb4acf78d5cafa
parent3f89204bae896e1d44468886a646b84acadc3c8f
usb: gadget: u_ether: move hardware transmit to RX NAPI

In order to reduce the interrupt times in the embedded system,
a receiving workqueue is introduced.
This modification also enhanced the overall throughput as the
benefits of reducing interrupt occurrence.

This work was derived from previous work:
u_ether: move hardware transmit to RX workqueue.
Which should be base on codeaurora's work.

However, the benchmark on my platform shows the throughput
with workqueue is slightly better than NAPI.

Signed-off-by: Weinn Jheng <clanlab.proj@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/u_ether.c