From owner-freebsd-stable@FreeBSD.ORG Wed Feb 4 10:46:00 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B10D106564A for ; Wed, 4 Feb 2009 10:46:00 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 36EB18FC14 for ; Wed, 4 Feb 2009 10:45:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2605801rvf.43 for ; Wed, 04 Feb 2009 02:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=d1P71H3HH90beIwJnhcKL12aF6uZVjS7nXZO0omWMAc=; b=bOS+XYvJllzNQa4zw7oVBgQPqQ/b+fk/Md2yqr+KbhDl3oZkSmEwvt7740ylUJe6XP OeF8WN6iI4D6Fr6WbC2AHH9lwmBOHcNfYfZCZWwEZNp1QduMgSkG6qve9fYIoqz6y8y3 mHrNITg2YfgvRstQFE93OEpK4roK+xZi9DgWQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=qoar5O4UIuRcVvhGoCkypvCtfxf85WNlw/TDERxG4s+DApDGFmpfcvutlm8xZkdVdW tH5GGl3ylpK37HFay/ZHn6cB/PfbER63Z1ZfdBKbp6EsOK9x9X9p8c8+PA79lmF+h92G BBLozTuSiVwqaeAmKXKSIiL4L4EfVpSw/kE7A= Received: by 10.141.153.16 with SMTP id f16mr3579370rvo.283.1233744359742; Wed, 04 Feb 2009 02:45:59 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id f21sm14725346rvb.7.2009.02.04.02.45.56 (version=SSLv3 cipher=RC4-MD5); Wed, 04 Feb 2009 02:45:58 -0800 (PST) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Wed, 4 Feb 2009 19:46:55 +0900 From: Pyun YongHyeon Date: Wed, 4 Feb 2009 19:46:55 +0900 To: Gerrit K?hn Message-ID: <20090204104655.GA73543@michelle.cdnetworks.co.kr> References: <20090204100507.5f223d9e.gerrit@pmp.uni-hannover.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090204100507.5f223d9e.gerrit@pmp.uni-hannover.de> User-Agent: Mutt/1.4.2.3i Cc: stable@freebsd.org Subject: Re: fun with if_re X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 10:46:01 -0000 On Wed, Feb 04, 2009 at 10:05:07AM +0100, Gerrit K?hn wrote: > Hi folks, > > I have several routers here which are based on Jetway J7F4 ITX boards that > come with two onboard re-interfaces. I run 7-stable on them via nanobsd > and update them about once in three or four months. > > After the last update (11th December 2008) I have noticed the following > strange behaviour on at least two machines (identical hard- and software): > After weeks of flawless operation, the network connection on both > interfaces suddenly starts to mangle packages. Even a simple ping can show > up to 50% or so package loss. The machine is mostly unreachable via net. > ifconfig up/down did not cure this, turning off checksum-offloading > and stuff did not help. Even simply rebooting the machine did not make the > problem go away! I had to power-cycle them by unplugging all cables to get > back to normal operation. > > I have seen this behaviour on two different machines, so I can most > probably rule out a hardware issue. It does not appear to happen often, > though. I did not see this with an earlier image of 7-stable from June > 2008, and probably even an image from early September was working fine > (although I did not use that one for such a long time). > > Visiting the webcvs I noticed that there are a lot of patches for if_re in > December 2008 and January 2009. The revision I'm having problems with is > tagged "1.95.2.37 2008/12/09 11:01:17". Does anyone have an idea what > broke if_re for me, and how I can get back to stable operation? Is it > possible to use if_re from head as drop-in replacement to test the patches > available after 12/09? I would prefer not to move the machines completely > from -stable to -current. > > Here some further information about the NICs: > > ---pciconf--- > re0@pci0:0:9:0: class=0x020000 card=0x10ec16f3 chip=0x816710ec rev=0x10 > hdr=0x00 vendor = 'Realtek Semiconductor' > device = 'RTL8169/8110 Family Gigabit Ethernet NIC' > class = network > subclass = ethernet > re1@pci0:0:11:0: class=0x020000 card=0x10ec16f3 chip=0x816710ec > rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' > device = 'RTL8169/8110 Family Gigabit Ethernet NIC' > class = network > subclass = ethernet > --- > > > ---dmesg--- > re0: port > 0xf000-0xf0ff mem 0xfdfff000-0xfdfff0ff irq 10 at device 9.0 on pci0 re0: > Chip rev. 0x18000000 re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto re0: Ethernet address: 00:30:18:ab:d0:19 > re0: [FILTER] > re1: port > 0xf200-0xf2ff mem 0xfdffe000-0xfdffe0ff irq 10 at device 11.0 on pci0 re1: > Chip rev. 0x18000000 re1: MAC rev. 0x00000000 > miibus1: on re1 > rgephy1: PHY 1 on miibus1 > rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto re1: Ethernet address: 00:30:18:ab:d0:1a > re1: [FILTER] > --- > Since you're using RTL8169SC it could be related with my commit r180519(cvs rev 1.95.2.22). It seems that RTL8169SC does not like memory mapped register access and I think jkim@ committed patch for the issue. Would you try re(4) in HEAD? (Just copying if_re.c, if_rlreg.h and if_rl.c from HEAD to stable would be enough to build re(4) on stable).