From owner-freebsd-current@FreeBSD.ORG Wed Jul 30 20:02:45 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56ED91065674 for ; Wed, 30 Jul 2008 20:02:45 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id D80F08FC1A for ; Wed, 30 Jul 2008 20:02:44 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so190928fgb.35 for ; Wed, 30 Jul 2008 13:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=OTNPq8i2a7U8VKaXlzBh/U/aq2LxoWso9Mk1jqFvGds=; b=mQHFIWIfPrZ2CtGCkTNndAWb7bht6ka7Y/1NQg26YKEDFdCAcpqHqG3tLUHuLS1lU7 rHI7qRY/VASuewiMM8k5lVKpU45+wYGheVg74egWgnSdm/WozBEmKL3HApvoYIMyDFtX r+du367W85airdyLzdGMb/TyrMwmG6lS5exwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=c5fPCRtqo5XbnDNDtXnJkHRAE0Wzx0GXVqDEkSxBQYBK6MpuJ7m85KLcTuWTv3mu6S 36dGg/lKBcKYcaxQzwnm0K1saaiAHrlFl+kjAbNiFHjNs2EkFNvuW/uz85H9R/woDEbB lX2e+EH8ZKGClRJmJGKuqJ3Ut0qYxcKgm9MkI= Received: by 10.86.4.2 with SMTP id 2mr5238490fgd.15.1217446520273; Wed, 30 Jul 2008 12:35:20 -0700 (PDT) Received: from localhost ( [193.219.94.168]) by mx.google.com with ESMTPS id d6sm1656240fga.2.2008.07.30.12.35.18 (version=SSLv3 cipher=RC4-MD5); Wed, 30 Jul 2008 12:35:19 -0700 (PDT) Date: Wed, 30 Jul 2008 22:35:18 +0300 From: Gleb Kurtsou To: Pyun YongHyeon Message-ID: <20080730193518.GA9753@sas.ip.vub.lt> References: <20080730113449.GD407@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080730113449.GD407@cdnetworks.co.kr> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@FreeBSD.org Subject: Re: Call for bfe(4) testers. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2008 20:02:45 -0000 On (30/07/2008 20:34), Pyun YongHyeon wrote: > > Hi, > > I have been using the following patched bfe(4) and it seems it > works as expected. I've fixed long standing bus_dma(9) bugs in it > and it should work on systems with > 1GB memory. In theory bfe(4) > should also work on big-endian architectures. However the 1GB DMA > address space of the hardware is much lower than that of DVMA base > address of sparc64 so the possibility of using bfe(4) on sparc64 is > zero. :-( > > As added bonus of patched driver, bfe(4) now supports hardware > statistics counter. You can use sysctl(8) to see what counters are > maintained in the hardware. For example, the following command will > show detailed statistics for Tx/Rx frames. > #sysctl dev.bfe.0.stats=1 > > If you have one of bfe(4) hardwares please give it try and let me > know how it goes. The latest bfe(4) can be found at the following > URL. > http://people.freebsd.org/~yongari/bfe/if_bfe.c > http://people.freebsd.org/~yongari/bfe/if_bfereg.h Just works for me. Though no stress testing or serious load here. % sysctl dev.bfe. dev.bfe.0.%desc: Broadcom BCM4401-B0 Fast Ethernet dev.bfe.0.%driver: bfe dev.bfe.0.%location: slot=0 function=0 dev.bfe.0.%pnpinfo: vendor=0x14e4 device=0x170c subvendor=0x1028 subdevice=0x01d4 class=0x020000 dev.bfe.0.%parent: pci2 dev.bfe.0.stats: -1 bfe0 statistics: Transmit good octets : 11375965 Transmit good frames : 111163 Transmit octets : 11375965 Transmit frames : 111163 Transmit broadcast frames : 3 Transmit multicast frames : 60 Transmit frames 64 bytes : 562 Transmit frames 65 to 127 bytes : 104361 Transmit frames 128 to 255 bytes : 345 Transmit frames 256 to 511 bytes : 1517 Transmit frames 512 to 1023 bytes : 4072 Transmit frames 1024 to max bytes : 306 Transmit jabber errors : 0 Transmit oversized frames : 0 Transmit fragmented frames : 0 Transmit underruns : 0 Transmit total collisions : 0 Transmit deferrals : 0 Transmit carrier losts : 0 Transmit pause frames : 0 Receive good octets : 201279272 Receive good frames : 160395 Receive octets : 201279336 Receive frames : 160396 Receive broadcast frames : 8910 Receive multicast frames : 2311 Receive frames 64 bytes : 4780 Receive frames 65 to 127 bytes : 14888 Receive frames 128 to 255 bytes : 3249 Receive frames 256 to 511 bytes : 4898 Receive frames 512 to 1023 bytes : 3753 Receive frames 1024 to max bytes : 128828 Receive jabber errors : 0 Receive oversized frames : 0 Receive fragmented frames : 0 Receive missed frames : 0 Receive CRC align errors : 0 Receive undersized frames : 0 Receive CRC errors : 0 Receive align errors : 0 Receive symbol errors : 1 Receive pause frames : 0 Receive control frames : 0