Thread (25 messages) 25 messages, 7 authors, 2007-07-31

Re: [PATCH RFC]: napi_struct V4

From: jamal <hidden>
Date: 2007-07-25 12:01:20

On Wed, 2007-25-07 at 01:31 -0700, David Miller wrote:
We're getting there, slowly...

1) netif_napi_init() is added, the workqueue/requeue stuff
   as discussed is not needed so you won't see that here
..
....
Another thing that's really apparent now is all the wacky
napi->weight values various drivers use.  Just grep for
netif_napi_init() in the patch or a patched tree to see what
I mean.  So much of it doesn't make any sense and I'm tempted
to just remove the argument and make everyone use 32 or 64
or something like that :-)  Or, default to some value across
the board, and let drivers override that on a case by case
basis with a BIG FAT COMMENT above the override describing
why the different value is being used and precisely what
tests were performed to validate that different value.
Sounds reasonable.
32-64 for Gige seemed to work well as i recall. 10/100 was around 16.
But that shouldnt matter i think: because the poll from the core is
based on Varghese's DRR, it probably will be fine if you just gave all
the same value and the "deficit" part will kick in when needed. Some
testing maybe required but theoretically i dont see a problem. 
 
BTW: The current kernel code has a "bug" - where if a driver
forgot to set its weight it would be indeterminate, so even for this
reason it will be a good idea to enforce a default.

Sorry, havent been following the thread - thanks for CCing me, will try
to catch up at some point.

cheers,
jamal


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help