Re: [PATCH] netpoll: Drop budget parameter from NAPI polling call hierarchy

2015-09-29 Thread David Miller
From: Alexander Duyck Date: Sun, 27 Sep 2015 15:58:56 -0700 > On 09/26/2015 10:36 PM, David Miller wrote: >> From: Alexander Duyck >> Date: Tue, 22 Sep 2015 14:56:08 -0700 >> >>> Rather than carry around a value of budget that is 0 or less we can >>> instead >>> just loop through and pass 0 to e

Re: [PATCH] netpoll: Drop budget parameter from NAPI polling call hierarchy

2015-09-27 Thread Alexander Duyck
On 09/26/2015 10:36 PM, David Miller wrote: From: Alexander Duyck Date: Tue, 22 Sep 2015 14:56:08 -0700 Rather than carry around a value of budget that is 0 or less we can instead just loop through and pass 0 to each napi->poll call. If any driver returns a value for work done that is non-zer

Re: [PATCH] netpoll: Drop budget parameter from NAPI polling call hierarchy

2015-09-26 Thread David Miller
From: Alexander Duyck Date: Tue, 22 Sep 2015 14:56:08 -0700 > Rather than carry around a value of budget that is 0 or less we can instead > just loop through and pass 0 to each napi->poll call. If any driver > returns a value for work done that is non-zero then we can report that > driver and co

[PATCH] netpoll: Drop budget parameter from NAPI polling call hierarchy

2015-09-22 Thread Alexander Duyck
For some reason we were carrying the budget value around between the various calls to napi->poll. If for example one of the drivers called had a bug in which it returned a non-zero value for work this could result in the budget value becoming negative. Rather than carry around a value of budget t