stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: u_ether: remove interrupt throttling
@ 2016-11-01 11:29 Felipe Balbi
  2016-11-01 12:21 ` Ville Syrjälä
  2016-11-02  6:02 ` Peter Chen
  0 siblings, 2 replies; 23+ messages in thread
From: Felipe Balbi @ 2016-11-01 11:29 UTC (permalink / raw)
  To: Linux USB; +Cc: David Miller, Ville Syrjälä, Felipe Balbi, stable

According to Dave Miller "the networking stack has a
hard requirement that all SKBs which are transmitted
must have their completion signalled in a fininte
amount of time. This is because, until the SKB is
freed by the driver, it holds onto socket,
netfilter, and other subsystem resources."

In summary, this means that using TX IRQ throttling
for the networking gadgets is, at least, complex and
we should avoid it for the time being.

Cc: <stable@vger.kernel.org>
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
---
 drivers/usb/gadget/function/u_ether.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c
index f4a640216913..119a2e5848e8 100644
--- a/drivers/usb/gadget/function/u_ether.c
+++ b/drivers/usb/gadget/function/u_ether.c
@@ -589,14 +589,6 @@ static netdev_tx_t eth_start_xmit(struct sk_buff *skb,
 
 	req->length = length;
 
-	/* throttle high/super speed IRQ rate back slightly */
-	if (gadget_is_dualspeed(dev->gadget))
-		req->no_interrupt = (((dev->gadget->speed == USB_SPEED_HIGH ||
-				       dev->gadget->speed == USB_SPEED_SUPER)) &&
-					!list_empty(&dev->tx_reqs))
-			? ((atomic_read(&dev->tx_qlen) % dev->qmult) != 0)
-			: 0;
-
 	retval = usb_ep_queue(in, req, GFP_ATOMIC);
 	switch (retval) {
 	default:
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-11-08  1:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 11:29 [PATCH] usb: gadget: u_ether: remove interrupt throttling Felipe Balbi
2016-11-01 12:21 ` Ville Syrjälä
2016-11-02  6:02 ` Peter Chen
2016-11-02  7:55   ` Felipe Balbi
2016-11-02  8:36     ` Peter Chen
2016-11-02 11:02       ` Felipe Balbi
2016-11-03  0:32         ` Peter Chen
2016-11-03  8:36           ` Felipe Balbi
2016-11-02 15:22   ` David Miller
2016-11-03  0:23     ` Peter Chen
2016-11-03  7:04       ` Felipe Balbi
2016-11-03  9:03         ` Peter Chen
2016-11-03  9:53           ` Peter Chen
2016-11-03 10:48             ` Felipe Balbi
2016-11-04  2:11               ` Peter Chen
2016-11-07 12:36                 ` Felipe Balbi
2016-11-08  1:42                   ` Peter Chen
2016-11-03 10:42           ` Felipe Balbi
2016-11-04  1:12             ` Peter Chen
2016-11-04  1:14             ` Peter Chen
2016-11-03 17:04         ` David Miller
2016-11-07 12:39           ` Felipe Balbi
2016-11-07 15:50             ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).