From owner-freebsd-current@FreeBSD.ORG Sun Jun 3 02:34:21 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54C2816A468 for ; Sun, 3 Jun 2007 02:34:21 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 2846613C45E for ; Sun, 3 Jun 2007 02:34:21 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id m33so1307840wag for ; Sat, 02 Jun 2007 19:34:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=XWRJprAUYoe5Lot9USsp5zaWLEBEvxBPXa+qpQlYfWy0PAyQjqcfmY7jgjfRUa+zJmLweUFlEYz5uXo+ee1jSTt4qoKxCggBiXnQZ41k75pghbXzbBVF6+S9RmZfBsLGtpSAQmH/arql2o+ifUcjduaZXorDF+Bh6efcmuI1Zjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=NIcVunqFtL3R+Zzd5YsuDvbsniZ/U+k4pH6tUeo93zAuceV/8FAVlFUvXBSDQ8mQV2s67mPmGt43kR+mQfgt7ZKuBpZvpJEdF+YDEeTfOm+Ik6++cXN5SqGlOJdLTg1hov+irHX6NU++/Qos4jJZvlXptQFKhbg88IZT8ea06hI= Received: by 10.115.23.12 with SMTP id a12mr3319648waj.1180838060882; Sat, 02 Jun 2007 19:34:20 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTP id m24sm2609696waf.2007.06.02.19.34.18; Sat, 02 Jun 2007 19:34:19 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l532YFi2004594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 3 Jun 2007 11:34:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l532YFhw004593; Sun, 3 Jun 2007 11:34:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sun, 3 Jun 2007 11:34:15 +0900 From: Pyun YongHyeon To: Yuri Pankov Message-ID: <20070603023415.GA4456@cdnetworks.co.kr> References: <20070602084210.GC1140@cdnetworks.co.kr> <20070602202124.GA957@darklight.abyss> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070602202124.GA957@darklight.abyss> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: nfe(4) vs. nve(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 02:34:21 -0000 On Sun, Jun 03, 2007 at 12:21:24AM +0400, Yuri Pankov wrote: > On Sat, Jun 02, 2007 at 05:42:10PM +0900, Pyun YongHyeon wrote: > > > > Dear All, > > > > As you know we have two drivers, nve(4) and nfe(4), in tree to serve > > nVidia network adapters. nve(4) was the first driver for nVidia > > network adapters and it relied on binary code(nvenetlib.o) from vendor > > to access the hardware. Using the binary code revealed several issues > > and David E. O'Brien imported FreeBSD nfe(4) which was ported by > > Shigeaki Tagashira from OpenBSD nfe(4). > > > > The nfe(4) was very promising as it has full source code and supported > > lots of newer nVidia hardwares. With bus_dma(9) changes I could even > > get netperf performance report for the first time which was never > > possible on nve(4).(It always panicked my box while the test was in > > progress and it's still true on CURRENT). > > > > Shigeaki Tagashira and I had been working on enhancing nfe(4) for > > several months. Now I think we'got stable working nfe(4) and it's time > > to supesede nve(4) with the overhauled nfe(4) before branching to 7. > > We fixed serveral bus_dma(9) bugs in the driver and added new hardware > > capabilities such as MSI/MSIX, hardware VLAN support and TSO. > > The only drawback of the overhauled nfe(4) I'm aware is lack of manual > > half-duplex media configuration. Autosensing the media works but some > > hardwares including mine does not work at all with manual half-duplex > > media configuration. Other than that it should work better than nve(4). > > > > I had mailed several times to David E. O'Brien to get his comments but > > I still didn't receive a reply. I'd like to commit the overhauled > > nfe(4) and make the nfe(4) default drivers for 6-STABLE/7. > > If there is objection please let me know. > > > > The overhauled nfe(4) can be found at the following URL. > > http://people.freebsd.org/~yongari/nfe/if_nfe.c > > http://people.freebsd.org/~yongari/nfe/if_nfereg.h > > http://people.freebsd.org/~yongari/nfe/if_nfevar.h > > > > If you are brave enough to test Rx lock-free nfe(4), try: > > http://people.freebsd.org/~yongari/nfe/WIP/if_nfe.c > > http://people.freebsd.org/~yongari/nfe/WIP/if_nfereg.h > > http://people.freebsd.org/~yongari/nfe/WIP/if_nfevar.h > > > > > > Thanks. > > -- > > Regards, > > Pyun YongHyeon > > I've tested both once again, seems to work fine with 1Gbps link (though I still > had to apply http://people.freebsd.org/~yongari/nfe/ciphy.patch ). And speaking Yes, nfe(4) needs more PHY driver patches. I'll handle that too. > of WIP version, which I'm using now, what kind of problems should I be aware of > (those "brave enough" words can't be good :)? > The WIP version has suspend/resume support code and do not drop/acquire driver lock in receive path. It was supposed to be more efficient than previous one. However it wasn't fully tested on edge cases so you may have to prepare system for unexpected results. > Hardware: > nfe0@pci0:10:0: class=0x068000 card=0xe0001458 chip=0x005710de rev=0xa3 hdr=0x00 > > nfe0: port 0xe800-0xe807 mem > 0xf5102000-0xf5102fff irq 23 at device 10.0 on pci0 > nfe0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xf5102000 > miibus1: on nfe0 > ciphy0: PHY 7 on miibus1 > ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > nfe0: bpf attached > nfe0: Ethernet address: 00:0f:ea:7d:f3:20 > nfe0: [MPSAFE] > nfe0: [FILTER] > > > Thanks, > Yuri -- Regards, Pyun YongHyeon