From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-2?Q?Micha=B3_Miros=B3aw?= Subject: Re: future developments of usbnet Date: Sat, 14 May 2011 12:46:09 +0200 Message-ID: References: <201105141201.40265.oliver@neukum.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alan Stern , David Miller , shemminger-ZtmgI6mnKB3QT0dZR+AlfA@public.gmane.org, tom.leiming-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Oliver Neukum Return-path: In-Reply-To: <201105141201.40265.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org 2011/5/14 Oliver Neukum : > Am Donnerstag, 12. Mai 2011, 16:37:28 schrieb Alan Stern: >> Therefore usbnet's poll routine should take the "weight" argument as= an >> indication of how many outstanding rx URBs are allowed. =C2=A0Each t= ime the >> poll routine is called, it should check to see if any rx URBs have >> completed since the previous poll. =C2=A0If not then there is no net= work >> traffic, so usbnet can take itself out of the poll loop. =C2=A0Other= wise, >> the number of outstanding URBs should be adjusted (by unlinking some= or >> submitting more -- subject to some fixed maximum limit) to match the >> new "weight". > What does happen if we reach the weight 0 ? Poll callback won't be called with weight 0. If there are more RX packets after processing 'weight' of them, then the callback will be called again later. Best Regards, Micha=C5=82 Miros=C5=82aw -- 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