[REVIEW/TEST] polling(4) changes

Luigi Rizzo rizzo at icir.org
Fri Sep 30 12:33:34 PDT 2005


On Fri, Sep 30, 2005 at 08:29:43PM +0200, Andre Oppermann wrote:
...
> > It adds a stub function call every tick. The function returns almost
> > immediately if no interfaces do polling.
> 
> If it does a FOREACH(interface) then it should stay as a kernel option.

this wasn't the case when i first wrote it - the list of
interfaces actually using polling was stored into an array and
the count was in a variable, so the loop was something like

	for (i=0; i < actively_polling_interfaces; i++)
		foo[i]->poll()

so it's basically just an extra function call per tick if
no interfaces are doing polling.

cheers
luigi


More information about the freebsd-net mailing list