From owner-freebsd-current@FreeBSD.ORG Wed Mar 12 02:31:43 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 CCA801065671 for ; Wed, 12 Mar 2008 02:31:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.176]) by mx1.freebsd.org (Postfix) with ESMTP id 785768FC16 for ; Wed, 12 Mar 2008 02:31:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so1495549ele.12 for ; Tue, 11 Mar 2008 19:31:42 -0700 (PDT) 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=8tKgKl1KJTNQ6wnSYccYdT2fovfvqpF1cn9Cu/dSxLI=; b=jhfKrWTXCBEYLD7FwXv+acJzenGHC2q+AzibgCF3jYbNCFjiQA100qSUxUEvC0wS7c2v/0oIpuZdAx1dh1mDEk2E0Bq3rHD5EJgjTYsQjZMmyB3W8NAOcajnzqEH5Ac+qVDg6wnJw9EGdu0IT1+P6EiwMdeq3O3yuLpGGmHcA9c= 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=L1/qKn+d59s3OgqcPam/4J63F23Z1gTvv6MIf8moYfN9cnOzY5MwijzGK8gUAwFUJLf4+l2isLZ9tFjU/QijHOICO3jVRhG3cTQ5qxAOKyzUgM8Z5gwHKJjviSIpqrz0lbUyqoE5XasNI6zgmFCTsuPx60SFUVeLuGNJuVbIq4g= Received: by 10.150.205.13 with SMTP id c13mr4136930ybg.66.1205289102538; Tue, 11 Mar 2008 19:31:42 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id g5sm14777850wra.33.2008.03.11.19.31.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Mar 2008 19:31:40 -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 m2C2VZKX013174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Mar 2008 11:31:35 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m2C2VYTj013173; Wed, 12 Mar 2008 11:31:34 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 12 Mar 2008 11:31:34 +0900 From: Pyun YongHyeon To: Abdullah Ibn Hamad Al-Marri Message-ID: <20080312023134.GH12585@cdnetworks.co.kr> References: <113159.27619.qm@web33703.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <113159.27619.qm@web33703.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: Daniel Gerzo , FreeBSD CURRENT Subject: Re: re(4) problem 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: Wed, 12 Mar 2008 02:31:44 -0000 On Tue, Mar 11, 2008 at 11:34:12AM -0700, Abdullah Ibn Hamad Al-Marri wrote: > ----- Original Message ---- > > From: Pyun YongHyeon > > To: Daniel Gerzo > > Cc: current@FreeBSD.org; yongari@FreeBSD.org > > Sent: Tuesday, March 11, 2008 5:24:41 AM > > Subject: Re: re(4) problem > > > > On Mon, Mar 10, 2008 at 09:38:32PM +0100, Daniel Gerzo wrote: > > > Hello Daniel, > > > > > > Monday, March 10, 2008, 4:26:49 PM, you wrote: > > > > > > > Hello Pyun, > > > > > > >> Since you're using MSI, would you try attached patch? > > > >> Sorry, I don't have PCIe based hardware and RealTek's datasheet for > > > >> PCIe variants is too poor to get useful information. > > > >> > > > >> -- > > > >> Regards, > > > >> Pyun YongHyeon > > > > > > > Thank you for your quick reply, I will test your patch ASAP, but I have one > > > > simple question: > > > > > > > Should I apply this patch on top of > > > > http://people.freebsd.org/~yongari/re/re.HEAD.patch > > > > or what is this patch aginst? > > > > > > > Thank you. > > > > > > Or better, please send me (or place somewhere on your home page) the > > > complete if_re.c and if_rlreg.h which should adress my problems, so > > > that I can test it easily. > > > > > > > Done. > > http://people.freebsd.org/~yongari/re/if_re.c > > http://people.freebsd.org/~yongari/re/if_rlreg.h > > The above files would build on CURRENT/RELENG_7/7.0-RELEASE. > > > > I'm not sure whether it helps or not. > > > > > Your efforst are greatly appreciated! > > > > > > -- > > > Best regards, > > > Daniel mailto:danger@FreeBSD.org > > > > > > > -- > > Regards, > > Pyun YongHyeon > > Ok, here is the ping to 2 servers using same nic to another server using fxp in same lan. > > ping -c 100 -s 5000 after using > http://people.freebsd.org/~yongari/re/if_re.c > http://people.freebsd.org/~yongari/re/if_rlreg.h > > re0: port 0xc000-0xc0ff mem 0xd0020000-0xd0020fff irq 17 at device 0.0 on pci3 > re0: Using 2 MSI messages > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > re0: Ethernet address: 00:19:d1:a7:a4:72 > re0: [FILTER] > re0: [FILTER] > > 100 packets transmitted, 100 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 2.410/2.429/2.587/0.019 ms > > Here without. > > re0: port 0xd000-0xd0ff mem 0xf2000000-0xf2000fff irq 17 at device 0.0 on pci3 > re0: Using 2 MSI messages > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > re0: Ethernet address: 00:1a:4d:4f:76:07 > re0: [FILTER] > re0: [FILTER] > > 100 packets transmitted, 99 packets received, 1.0% packet loss > round-trip min/avg/max/stddev = 632.148/633.103/640.812/0.872 ms > > So as I could tell the ping latency got fixed by using latest changes. > Sorry, I don't know what exact issues you had. Just pinging wouldn't prove anything. Did you encounter random network loss without any relevant messages in console prior to trying latest patch? If you know a way that can reliably reproduce re(4) issue would you try to reproduce it again? Thanks. -- Regards, Pyun YongHyeon