From owner-freebsd-net@FreeBSD.ORG Wed Jul 10 07:04:41 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 20213565 for ; Wed, 10 Jul 2013 07:04:41 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id F1F231853 for ; Wed, 10 Jul 2013 07:04:40 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id 4so6011517pdd.20 for ; Wed, 10 Jul 2013 00:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0voHMhJ7bmjBxf72SJkBzcxgSljFTh1Eo5uPwGeA1Dk=; b=uMcIpX8oMjg5fvbpRcUHMOoKQ+S0a6+sIsWhut36FuHYNG2fXb86T8gUnQBT/lopw3 yO4ya3tUREgyN/7q0ZXn0M1u2NhOFi6jUtCbrc/RjnvVtp8inb1viVGtvT2q9UE44HtW C2p0qqzJ8aLra0BHfJFHwhYD2dc9mJGZXjjeu/3LtLS+ao96GrIZJHiBAF/354lUcA/N by/t0URbNr8xlpMlS2agUpoAUKzdJGX1yOgZsLsWSTJ2WPGx509HPwUIbOotYJy/koVG 5FMnIQRLOiTDJcpPbpESZQ/QxFd2l56T0jYHPXDdyPPzlNNuKjNVZQogdRHQF8WJ0a0K d3sw== X-Received: by 10.68.60.132 with SMTP id h4mr30099905pbr.177.1373439879244; Wed, 10 Jul 2013 00:04:39 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPSA id y6sm32357200pbl.23.2013.07.10.00.04.35 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Jul 2013 00:04:38 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 10 Jul 2013 16:04:31 +0900 From: Yonghyeon PYUN Date: Wed, 10 Jul 2013 16:04:31 +0900 To: Guido Falsi Subject: Re: re0 not working at boot on -CURRENT Message-ID: <20130710070431.GE2753@michelle.cdnetworks.com> References: <51DC726D.6040601@madpilot.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51DC726D.6040601@madpilot.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 07:04:41 -0000 On Tue, Jul 09, 2013 at 10:28:29PM +0200, Guido Falsi wrote: > Hi, > > I have a PC with an integrate re ethernet interface, pciconf identifies > it like this: > > re0@pci0:3:0:0: class=0x020000 card=0x11c01734 chip=0x816810ec rev=0x07 > hdr=0x00 > > I'm running FreeBSD current r252261. > > As stated in the subject after boot the interface does not work correctly. > > Using tcpdump on another host I noticed that packets (ICMP echo requests > for example) do get sent, and replies generated by the other host, but > the kernel does not seem to see them. Except that every now and then > some packet does get to the system. > > I'm seeing packet 7, 27, 47, 66, 86, 106, 125, 144, 164, 183 and so on > from a ping which has been running for some time. Just about one every > twenty. Some pattern is showing up. > > this is the output of ifconfig re0 after boot: > > re0: flags=8843 metric 0 mtu 1500 > > options=8209b > ether 00:19:99:f8:d3:0b > inet 172.24.42.13 netmask 0xffffff00 broadcast 172.24.42.255 > inet6 fe80::219:99ff:fef8:d30b%re0 prefixlen 64 scopeid 0x2 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > > If I just touch any interface flag with ifconfig, anyone, tso, -txcsum > -rxcsum, it starts working flawlessly. It keeps working also if I > perform the opposite operation with ifconfig afterwards, so it is not > the flag itself fixing it. > > This is an ifconfig after performing this exercise(it's the same, since > I disabled txcsum and reactivated it in this instance): > > re0: flags=8843 metric 0 mtu 1500 > > options=8209b > ether 00:19:99:f8:d3:0b > inet 172.24.42.13 netmask 0xffffff00 broadcast 172.24.42.255 > inet6 fe80::219:99ff:fef8:d30b%re0 prefixlen 64 scopeid 0x2 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > > I don't know much about FreeBSD network drivers so i can't make theories > about this. I hope someone has an idea what the problem could be. > > I'm available for any further information needed, test, experiment and > so on. Could you show me dmesg output(re(4) and rgephy(4) only)? Did it ever work or you see the issue only on CURRENT?