usb: gadget: u_ether: move hardware transmit to RX NAPI
authorWeinn Jheng <[email protected]>
Thu, 27 Feb 2014 09:49:00 +0000 (17:49 +0800)
committerFelipe Balbi <[email protected]>
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 <[email protected]>
Cc: David Brownell <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Manu Gautam <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
drivers/usb/gadget/u_ether.c