From owner-freebsd-net@FreeBSD.ORG Fri Aug 31 12:17:17 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 08895106566B for ; Fri, 31 Aug 2012 12:17:17 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id DB5018FC2E for ; Fri, 31 Aug 2012 12:17:16 +0000 (UTC) Received: from [10.4.0.166] ([149.6.120.133]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id q7VCHD5u043014 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 31 Aug 2012 05:17:15 -0700 (PDT) (envelope-from marcel@xcllnt.net) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) From: Marcel Moolenaar In-Reply-To: Date: Fri, 31 Aug 2012 13:17:22 +0100 Content-Transfer-Encoding: 7bit Message-Id: <8B6CCAD8-AFC8-46A3-A719-DDCDF5123984@xcllnt.net> References: To: PseudoCylon X-Mailer: Apple Mail (2.1486) Cc: freebsd-net@freebsd.org, Anuranjan Shukla Subject: Re: Proposal for changes to network device drivers and network stack (RFC) 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, 31 Aug 2012 12:17:17 -0000 On Aug 28, 2012, at 10:24 AM, PseudoCylon wrote: > Wouldn't using prepossessor macro or hooking be more flexible? (Could > support multiple functionality.) Macros make it impossible to treat ifnet as an opaque type. As such, it won't be possible to havr a single pre-compiled driver that can work with different network stacks. It's definitely been on our minds to make it possible to use macros for performance reasons when ABI stability is not a concern, but wanted to focus on ABI stability first. FYI, -- Marcel Moolenaar marcel@xcllnt.net