From owner-cvs-src@FreeBSD.ORG Mon Mar 26 09:59:36 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B87FD16A400; Mon, 26 Mar 2007 09:59:36 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC8C13C4AD; Mon, 26 Mar 2007 09:59:35 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l2Q9xVFr079317; Mon, 26 Mar 2007 13:59:31 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l2Q9xVEB079316; Mon, 26 Mar 2007 13:59:31 +0400 (MSD) (envelope-from yar) Date: Mon, 26 Mar 2007 13:59:30 +0400 From: Yar Tikhiy To: Gleb Smirnoff Message-ID: <20070326095930.GE60831@comp.chem.msu.su> References: <200703260450.l2Q4o6vs047638@repoman.freebsd.org> <20070326091000.GN2713@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070326091000.GN2713@FreeBSD.org> User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_edsc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 09:59:36 -0000 On Mon, Mar 26, 2007 at 01:10:00PM +0400, Gleb Smirnoff wrote: > On Mon, Mar 26, 2007 at 04:50:06AM +0000, Yar Tikhiy wrote: > Y> yar 2007-03-26 04:50:06 UTC > Y> > Y> FreeBSD src repository > Y> > Y> Added files: > Y> sys/net if_edsc.c > Y> Log: > Y> Introduce a new toy interface, edsc(4). It's a discard interface > Y> imitating an Ethernet device, so vlan(4) and if_bridge(4) can be > Y> attached to it for testing and benchmarking purposes. Its source > Y> can be an introduction to the anatomy of a network interface driver > Y> due to its simplicity as well as to a bunch of comments in it. > Y> > Y> (The rest of needed changes were in my previous commit, which got > Y> interrupted in the middle. Alas, CVS commits are not atomic.) > > I am surprised that you didn't use ng_eiface(4) for the same purpose. No reason for surprise, I tried to. > If you attach ng_hole(4) to the ng_eiface, then you'll get the same > functionality as edsc(4). But if you attach with ngctl(8) to the > interface via ng_socket(4) you will get a hex dump of the frames > sent to the interface. > > AFAIK, the edsc(4)'s functionality is already present in the system. Functionality, but not speed. I think I explained on -net why I needed edsc(4): ng_eiface+ng_hole just couldn't consume a gigabit flow for me. Perhaps I didn't mention an important detail: I was interested in pps rate, so I used minimal packets, and the callback mechanism of ng_eiface(4) was falling far behind rates as high as 1Mpps. -- Yar