On Thu, 2006-31-08 at 14:29 -0700, Stephen Hemminger wrote: > On Wed, 30 Aug 2006 16:39:14 -0700 > Roland Dreier <[EMAIL PROTECTED]> wrote: > > > Roland> makes sense -- especially since the caller probably also > > Roland> deducted N from *budget, and netif_rx_reschedule() doesn't > > Roland> touch that. > > > > Actually, why does undoing the change to quota make sense? Presumably > > I passed N packets to netif_receive_skb() -- why shouldn't I deduct N > > from quota and *budget? > > > > - R. > > This was probably a preventive thing to avoid scheduling when quota remaining > was zero?
I am reading backwards, so i may be incoherent ;-> I suppose if you dont trust the driver to tell you the truth it could be done in the core code such as netif_receive_skb(). Should be noted however, your quota does get refilled by the NAPI core governed by DRR scheduling rules. cheers, jamal - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html