From owner-freebsd-net@FreeBSD.ORG Fri Sep 30 21:17:20 2005 Return-Path: X-Original-To: net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C203216A41F; Fri, 30 Sep 2005 21:17:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1087143D48; Fri, 30 Sep 2005 21:17:19 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id j8ULHHFs049824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Oct 2005 01:17:17 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id j8ULHG74049823; Sat, 1 Oct 2005 01:17:16 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sat, 1 Oct 2005 01:17:16 +0400 From: Gleb Smirnoff To: Andre Oppermann Message-ID: <20050930211716.GP45345@cell.sick.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <433D8417.D4666378@freebsd.org> User-Agent: Mutt/1.5.6i Cc: arch@FreeBSD.org, Pawel Jakub Dawidek , net@FreeBSD.org Subject: Re: [REVIEW/TEST] polling(4) changes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 21:17:20 -0000 On Fri, Sep 30, 2005 at 08:29:43PM +0200, Andre Oppermann wrote: A> > It adds a stub function call every tick. The function returns almost A> > immediately if no interfaces do polling. A> A> If it does a FOREACH(interface) then it should stay as a kernel option. It isn't. Just 'if (poll_handlers == 0) return;'. Anyway, deoptionalizing polling would be a separate commit and discussion. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE