From owner-freebsd-net@FreeBSD.ORG Mon Nov 18 16:42:00 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 61AA4D13; Mon, 18 Nov 2013 16:42:00 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C51C12606; Mon, 18 Nov 2013 16:41:58 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id rAIGfo8G062837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 18 Nov 2013 20:41:50 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id rAIGfnsB062836; Mon, 18 Nov 2013 20:41:49 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 18 Nov 2013 20:41:49 +0400 From: Gleb Smirnoff To: Marcel Moolenaar Subject: Re: [JNPR] Network stack as a module (RFC) Message-ID: <20131118164149.GV7577@glebius.int.ru> References: <50F868FF.5060506@networx.ch> <20131115165210.23f82578@stevek-ubuntu> <20131116084919.GF7577@glebius.int.ru> <1DAF9090-08DA-404B-B86B-57E5D124D70D@xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1DAF9090-08DA-404B-B86B-57E5D124D70D@xcllnt.net> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: luigi@freebsd.org, Marcel Moolenaar , Steve Kiernan , freebsd-net@freebsd.org, zec@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Nov 2013 16:42:00 -0000 Marcel, On Sun, Nov 17, 2013 at 10:10:15AM -0800, Marcel Moolenaar wrote: M> > S> Add a NETSTACK option to facilitate separating network stack pieces from the M> > S> rest of the OS core. This is the first step towards having the network stack M> > S> as a module. M> > M> > You probably mean "having the network stack optional", since under module we M> > usually mean loadable kernel module. M> M> Actually, we do mean module. At Juniper we have the FreeBSD stack M> as a loadable module now. We also have the Juniper stack as a M> loadable module. Depending on context, we can use the most M> appropriate one. Yes, this implies that we also have a stable M> interface between the NIC driver and the network stack itself. M> We'll be contributing that as well... M> M> Note that assumptions in the finalization of setting up networking M> limits the network stack from being loaded manually, not to mention M> that unloading is an entirely different challenge. Nonetheless it's M> very useful without all that and I think it will make it easier for M> people to change the network stack or experiment with beta versions M> this way. Have you measured the performance impact on the loadable stack? I suppose many functions, that are now called directly, with loadable stack will be called via functon pointers. M> It all really comes in handy for the opaque ifnet work... Actually I wanted to start it for a long time. But since at EuroBSDCon 2011 you said that you plan to import Junipers' transform of ifnet, I held off my intentions. Until now I was almost sure that plan on brining junipers ifnet was abandoned. -- Totus tuus, Glebius.