From owner-freebsd-net@FreeBSD.ORG Mon Nov 18 20:23:42 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 6D8BDF31; Mon, 18 Nov 2013 20:23:42 +0000 (UTC) Received: from mail-qe0-x229.google.com (mail-qe0-x229.google.com [IPv6:2607:f8b0:400d:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EFE692528; Mon, 18 Nov 2013 20:23:41 +0000 (UTC) Received: by mail-qe0-f41.google.com with SMTP id x7so4504521qeu.28 for ; Mon, 18 Nov 2013 12:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=rYXuYHGQNDat6kksVGlEOj5NPU/llx7gSkBb5ZyCTA0=; b=Rk/WVOtgIB8pjngAAI+tkjQSvIQOIDTR0f1gE28BfUuKKgC/8StNQEvZj0SsjUAAvN ZeKtRgv+jDLIk0RpbYO6hzkCdMQyhHwfM57+gs9qiWCmxHnIHpapZR8+sv8HP9VdpBUV nM8Xpr3tK52AQokJGuPP0/8AY7ZsBCAdHwzPN/AYF3Pl5Q9qL0Bsh64HlfH2oUC1uR0j +JfFvXlahMIyfnXJgVNR+olPbDi01xjoj9/1kyLc5hOhkfUeY5wBMYDXHKamTvoAK1Go ZKGRjgLWWtLHuoFarkvstp+oL3ynHqHf9IU4C4osycyVt1s7isHk36aOgB+w+pwZn0Jr hJfA== MIME-Version: 1.0 X-Received: by 10.49.71.207 with SMTP id x15mr37253280qeu.49.1384806221182; Mon, 18 Nov 2013 12:23:41 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Mon, 18 Nov 2013 12:23:41 -0800 (PST) In-Reply-To: <20131118142026.500fcba5@stevek-ubuntu> References: <50F868FF.5060506@networx.ch> <20131115165210.23f82578@stevek-ubuntu> <20131118142026.500fcba5@stevek-ubuntu> Date: Mon, 18 Nov 2013 12:23:41 -0800 X-Google-Sender-Auth: WIh9gecfJwTJMRdNrjtlSCcnFAM Message-ID: Subject: Re: [JNPR] Network stack as a module (RFC) From: Adrian Chadd To: Steve Kiernan Content-Type: text/plain; charset=ISO-8859-1 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 20:23:42 -0000 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? -adrian