From owner-freebsd-current@FreeBSD.ORG Sat Jan 19 06:04:02 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 D73B516A41A for ; Sat, 19 Jan 2008 06:04:02 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF5613C461 for ; Sat, 19 Jan 2008 06:04:02 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2190757waf.3 for ; Fri, 18 Jan 2008 22:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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; bh=4FJeDJsMIJKOmXMrl7FIHq6r/pcL2ZU1hpSAgVAPfRs=; b=R5DjjsEfmvBP243WoLsVoO0NWcM335X3fs5ICgtTF5OzzPVWQzX7q4aI9UpdOqfqTSpMSnnSmAgKWMze17R4IXRcwTD+UuDswjkjGbZqNxQSfMhBfb38vQXYg3Hzdc1vDhCuSPRqRJCCaK0tNRKdnyGX6PpvY8y643i4OEmc3sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=w5qKRSAPDBMBqMdceFet6CD853fcKexq16621JeJpO34Be/FB9lvXnlS90d5yOOfn17fL84/jr96RraVUBEtEEHrHu237FgjAHOXucL4cmL5wWQyXp1OHwMMHbbwf2O82MsBx2X+82XdiVIXt9awMchX5RlR/QWg5q8+YoWqrf8= Received: by 10.115.77.1 with SMTP id e1mr2525927wal.103.1200722642301; Fri, 18 Jan 2008 22:04:02 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id n38sm9342004wag.2.2008.01.18.22.03.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Jan 2008 22:04:01 -0800 (PST) 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 m0J63tTl098101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Jan 2008 15:03:55 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m0J63siP098100; Sat, 19 Jan 2008 15:03:54 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 19 Jan 2008 15:03:54 +0900 From: Pyun YongHyeon To: Chris Poulsen Message-ID: <20080119060354.GA98043@cdnetworks.co.kr> References: <20071225234723.GA1018@cdnetworks.co.kr> <4772D649.3010001@nesluop.dk> <20071227002252.GE1018@cdnetworks.co.kr> <20080116012154.GB84758@cdnetworks.co.kr> <478E7DF3.4080908@nesluop.dk> <20080117014013.GA89210@cdnetworks.co.kr> <478F98D7.5040007@nesluop.dk> <20080118010100.GC92718@cdnetworks.co.kr> <20080118082609.GA93423@cdnetworks.co.kr> <4790EBA8.9090500@nesluop.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4790EBA8.9090500@nesluop.dk> User-Agent: Mutt/1.4.2.1i Cc: kevlo@freebsd.org, FreeBSD Current Subject: Re: Problem with nfe stability and throughput 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: Sat, 19 Jan 2008 06:04:02 -0000 On Fri, Jan 18, 2008 at 07:10:48PM +0100, Chris Poulsen wrote: > Hi, > > Pyun YongHyeon wrote: > >On Fri, Jan 18, 2008 at 10:01:00AM +0900, To Chris Poulsen wrote: > > > On Thu, Jan 17, 2008 at 07:05:11PM +0100, Chris Poulsen wrote: > > > > Hi, > > > > > > > > Pyun YongHyeon wrote: > > > > >Would you show me the output of "ifconfig nfe0"? > > > > > > > > > nfe0: flags=8843 metric 0 > > mtu 1500 > > > > options=48 > > > > ether 00:1d:60:6d:73:ec > > > > inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255 > > > > media: Ethernet 100baseTX > > > > status: active > > > > > > Hmmm, it seems that you've set media type manually without relying > > > on automatic media detection. Is there any reason not using auto > > > media type? How about using media type 'auto'? > > > #ifconfig nfe0 media auto > > > > > > >I've updated the experimental driver. Please revert previous patch and > >apply the following one. > > > >http://people.freebsd.org/~yongari/atphy.diff2 > > > >And show me the 'ifconfig nfe0' output again. > > > > I tried specifying the media type manually, when I was trying to get nfe > up and running earlier, I've reverted to auto now. > > The box in question is currently running with your latest patch, I did > manage to stress it (with a couple of concurrent ftp uploads+some web > browing) into a state where it once again gave me a bunch of the following: > > kernel: nfe0: discard frame w/o leading ethernet header (len 4 pkt len 4) > kernel: nfe0: discard frame w/o leading ethernet header (len 0 pkt len 0) > last message repeated 12 times > kernel: nfe0: discard frame w/o leading ethernet header (len 3 pkt len 3) > kernel: nfe0: discard frame w/o leading ethernet header (len 11 pkt len 11) > kernel: nfe0: discard frame w/o leading ethernet header (len 5 pkt len 5) > kernel: nfe0: discard frame w/o leading ethernet header (len 5 pkt len 5) > kernel: nfe0: link state changed to DOWN > kernel: nfe0: link state changed to UP > > However bringing the interface down and up seemed to put it back into a > normal state. (I just noticed that nfe0 went down/up again, without my Did you have to bring nfe(4) down and up manually due to network lockups? > interaction, if that matters). > Maybe this would come from atphy(4) bug. atphy(4) does not seem to reliabily detect an established link. > ifconfig nfe0 yields: > > nfe0: flags=8843 metric 0 mtu 1500 > options=48 > ether 00:1d:60:6d:73:ec > inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255 > media: Ethernet autoselect (100baseTX ) > status: active > How about the following change? >From /usr/src/sys/dev/mii/athpy.c: 288 ssr = PHY_READ(sc, ATPHY_SSR); 289 if ((((bmcr & BMCR_AUTOEN) != 0) && ((bmsr & BMSR_ACOMP) == 0)) || 290 (ssr & ATPHY_SSR_SPD_DPLX_RESOLVED) == 0) { 291 /* Erg, still trying, I guess... */ 292 mii->mii_media_active |= IFM_NONE; 293 return; 294 } To: 288 ssr = PHY_READ(sc, ATPHY_SSR); 289 if ((ssr & ATPHY_SSR_SPD_DPLX_RESOLVED) == 0) { 290 /* Erg, still trying, I guess... */ 291 mii->mii_media_active |= IFM_NONE; 292 return; 293 } Thanks for your patience and testing. -- Regards, Pyun YongHyeon