Date: Fri, 30 Sep 2005 12:33:33 -0700 From: Luigi Rizzo <rizzo@icir.org> To: Andre Oppermann <andre@freebsd.org> Cc: arch@freebsd.org, Gleb Smirnoff <glebius@freebsd.org>, Pawel Jakub Dawidek <pjd@freebsd.org>, net@freebsd.org Subject: Re: [REVIEW/TEST] polling(4) changes Message-ID: <20050930123333.A48015@xorpc.icir.org> In-Reply-To: <433D8417.D4666378@freebsd.org>; from andre@freebsd.org on Fri, Sep 30, 2005 at 08:29:43PM %2B0200 References: <20050930124000.GA45345@cell.sick.ru> <20050930160302.GJ45345@cell.sick.ru> <20050930181322.GB1768@garage.freebsd.pl> <20050930182325.GO45345@cell.sick.ru> <433D8417.D4666378@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050930123333.A48015>