From owner-freebsd-net@FreeBSD.ORG Mon Nov 18 22:01:56 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BD113A8; Mon, 18 Nov 2013 22:01:56 +0000 (UTC) Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe003.messaging.microsoft.com [213.199.154.206]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CA2AB2A39; Mon, 18 Nov 2013 22:01:55 +0000 (UTC) Received: from mail6-am1-R.bigfish.com (10.3.201.240) by AM1EHSOBE025.bigfish.com (10.3.207.147) with Microsoft SMTP Server id 14.1.225.22; Mon, 18 Nov 2013 21:46:37 +0000 Received: from mail6-am1 (localhost [127.0.0.1]) by mail6-am1-R.bigfish.com (Postfix) with ESMTP id E9B313000D3; Mon, 18 Nov 2013 21:46:36 +0000 (UTC) X-Forefront-Antispam-Report: CIP:66.129.239.16; KIP:(null); UIP:(null); IPV:NLI; H:P-EMF02-SAC.jnpr.net; RD:none; EFVD:NLI X-SpamScore: -2 X-BigFish: VPS-2(zz98dI1432Izz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz8275ch1de098h8275dh1de097hz31h2a8h839h944hd24hd2bhf0ah1220h1288h12a5h12a9h12bdh137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1e23h1fe8h1ff5h2218h2216h1155h) Received-SPF: softfail (mail6-am1: transitioning domain of juniper.net does not designate 66.129.239.16 as permitted sender) client-ip=66.129.239.16; envelope-from=stevek@juniper.net; helo=P-EMF02-SAC.jnpr.net ; SAC.jnpr.net ; Received: from mail6-am1 (localhost.localdomain [127.0.0.1]) by mail6-am1 (MessageSwitch) id 1384811195528612_2200; Mon, 18 Nov 2013 21:46:35 +0000 (UTC) Received: from AM1EHSMHS001.bigfish.com (unknown [10.3.201.227]) by mail6-am1.bigfish.com (Postfix) with ESMTP id 7CC2632008E; Mon, 18 Nov 2013 21:46:35 +0000 (UTC) Received: from P-EMF02-SAC.jnpr.net (66.129.239.16) by AM1EHSMHS001.bigfish.com (10.3.207.101) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 18 Nov 2013 21:46:34 +0000 Received: from stevek-ubuntu (172.25.4.212) by P-EMF02-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server id 14.3.146.0; Mon, 18 Nov 2013 13:46:32 -0800 Date: Mon, 18 Nov 2013 16:46:28 -0500 From: Steve Kiernan To: Adrian Chadd Subject: Re: [JNPR] Network stack as a module (RFC) Message-ID: <20131118164628.49b6d807@stevek-ubuntu> In-Reply-To: References: <50F868FF.5060506@networx.ch> <20131115165210.23f82578@stevek-ubuntu> <20131118142026.500fcba5@stevek-ubuntu> Organization: Juniper Networks Inc. X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-OriginatorOrg: juniper.net X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Cc: FreeBSD Net , Luigi Rizzo , Marcel Moolenaar , 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 22:01:56 -0000 On Mon, 18 Nov 2013 12:23:41 -0800 Adrian Chadd wrote: > On 18 November 2013 11:20, Steve Kiernan wrote: > > > > > Sure, that's fine with me. I had been considering back and forth about > > whether or not to add NETSTACK to the NIC drivers and the like. > > I went with adding it in for completeness sake, but I'm good with not > > having to add it for drivers. > > ok. let's do that. > > So ideally (!), the aim is to make it so it's both selectable as > buildable _and_ loadable as a module, right? > > The drivers will ideally treat the if/ifnet stuff as opaque as > possible and use methods/macros to access things. > > (if they use methods, then we can turn some of them into macros for > source builds, but have an option to turn them into actual methods > that can be indirected easily enough for what you need.) > > How's that sound? Sounds like a good plan to me. -- Stephen J. Kiernan Juniper Networks, Inc. stevek_at_juniper.net