Re: future developments of usbnet
From: Michał Mirosław <hidden>
Date: 2011-05-14 10:46:09
2011/5/14 Oliver Neukum [off-list ref]:
Am Donnerstag, 12. Mai 2011, 16:37:28 schrieb Alan Stern:quoted
Therefore usbnet's poll routine should take the "weight" argument as an indication of how many outstanding rx URBs are allowed. Each time the poll routine is called, it should check to see if any rx URBs have completed since the previous poll. If not then there is no network traffic, so usbnet can take itself out of the poll loop. Otherwise, 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ł Mirosław -- 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