From owner-freebsd-net@FreeBSD.ORG Thu Mar 22 03:53:36 2007 Return-Path: X-Original-To: net@freebsd.org 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 A861416A46D for ; Thu, 22 Mar 2007 03:53:36 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout2.yahoo.com (mrout2.yahoo.com [216.145.54.172]) by mx1.freebsd.org (Postfix) with ESMTP id 9682D13C43E for ; Thu, 22 Mar 2007 03:53:36 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id l2M3r2Mw049094; Wed, 21 Mar 2007 20:53:03 -0700 (PDT) Date: Thu, 22 Mar 2007 11:41:21 +0900 Message-ID: From: gnn@freebsd.org To: Yar Tikhiy In-Reply-To: <20070321201936.GN41715@comp.chem.msu.su> References: <20070321201936.GN41715@comp.chem.msu.su> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.95 (i386-apple-darwin8.8.2) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: net@freebsd.org Subject: Re: A dummy Ethernet driver 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: Thu, 22 Mar 2007 03:53:36 -0000 At Wed, 21 Mar 2007 23:19:36 +0300, Yar Tikhiy wrote: > > Hi folks, > > We have disc(4) for testing and benchmarking. However, it's a > loopback driver, so such things as vlan or bridge cannot attach to > it. I needed a similar dummy interface mimicing Ethernet and failed > to find a ready solution. I tried ng_eiface+ng_hole, but it just > couldn't keep up with gigabit rates. So I knocked up a new dummy > driver, edsc(4): Ethernet discard interface. I'd like to commit it > if there are no objections. Then it could also serve as the bones > of an Ethernet driver for those who study kernel internals or want > to write a new driver. > Works for me and it ought to be able to be the "documentation" interface as well. As in we try to document the (pick expletive) out of it. Best, George