All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usbnet: consider device busy at each recieved packet
@ 2012-03-22 20:35 Oliver Neukum
       [not found] ` <201203222135.07331.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Neukum @ 2012-03-22 20:35 UTC (permalink / raw)
  To: netdev-u79uwXL29TY76Z2rM5mHXA, davem-fT/PcQaiUtIeIZ0/mPfg9Q, Tony Hill
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA

>From dd427382b6d3326acd6886041e8bbb432dfd4263 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
Date: Sat, 3 Mar 2012 18:45:07 +0100
Subject: [PATCH] usbnet: consider device busy at each recieved packet

usbnet should centrally handle busy reporting in the rx path
so subdrivers need not worry. This hurts use cases which do
rx only or predominantly.

Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>
---
 drivers/net/usb/usbnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index fae0fbd..a51ab46 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -493,6 +493,7 @@ block:
 		if (netif_running (dev->net) &&
 		    !test_bit (EVENT_RX_HALT, &dev->flags)) {
 			rx_submit (dev, urb, GFP_ATOMIC);
+			usb_mark_last_busy(dev->udev);
 			return;
 		}
 		usb_free_urb (urb);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] usbnet: consider device busy at each recieved packet
       [not found] ` <201203222135.07331.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
@ 2012-03-23  3:05   ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-03-23  3:05 UTC (permalink / raw)
  To: oliver-GvhC2dPhHPQdnm+yROfE0A
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA, tony.hill-3WKxDLwmzFNWk0Htik3J/w,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

From: Oliver Neukum <oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
Date: Thu, 22 Mar 2012 21:35:07 +0100

> usbnet should centrally handle busy reporting in the rx path
> so subdrivers need not worry. This hurts use cases which do
> rx only or predominantly.
> 
> Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-03-23  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22 20:35 [PATCH] usbnet: consider device busy at each recieved packet Oliver Neukum
     [not found] ` <201203222135.07331.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2012-03-23  3:05   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.