From owner-freebsd-stable@FreeBSD.ORG Fri May 24 15:23:27 2013 Return-Path: Delivered-To: freebsd-stable@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 11B2F1D5; Fri, 24 May 2013 15:23:27 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id C28238C7; Fri, 24 May 2013 15:23:26 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r4OFNK5P091181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 May 2013 08:23:20 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r4OFNKBQ091180; Fri, 24 May 2013 08:23:20 -0700 (PDT) (envelope-from jmg) Date: Fri, 24 May 2013 08:23:20 -0700 From: John-Mark Gurney To: Hiroki Sato Subject: Re: Apparent fxp regression in FreeBSD 8.4-RC3 Message-ID: <20130524152319.GA90852@funkthat.com> Mail-Followup-To: Hiroki Sato , pyunyh@gmail.com, jdc@koitsu.org, gjb@freebsd.org, freebsd-stable@freebsd.org, re@freebsd.org References: <20130524044919.GA41292@icarus.home.lan> <20130524054720.GA1496@michelle.cdnetworks.com> <20130524.162926.395058052118975996.hrs@allbsd.org> <20130524.163646.628115045676432731.hrs@allbsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130524.163646.628115045676432731.hrs@allbsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Fri, 24 May 2013 08:23:20 -0700 (PDT) Cc: pyunyh@gmail.com, jdc@koitsu.org, freebsd-stable@freebsd.org, re@freebsd.org, gjb@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2013 15:23:27 -0000 Hiroki Sato wrote this message on Fri, May 24, 2013 at 16:36 +0900: > Hiroki Sato wrote > in <20130524.162926.395058052118975996.hrs@allbsd.org>: > > hr> YongHyeon PYUN wrote > hr> in <20130524054720.GA1496@michelle.cdnetworks.com>: > hr> > hr> A workaround is specifying the following line in rc.conf: > hr> > hr> ifconfig_fxp0="DHCP media 100baseTX mediaopt full-duplex" > > Hmm, I guess this can happen on other NICs when the link negotiation > causes a link-state flap. Is it true? Just as a bit of history of this change (since I think I may have introduced part of this issue in 163061 of if_fxp.c)... fxp used to previously not drop link when you would switch from autoneg to a fixed media... The problem with this was that if you booted it always defaults to autoneg and if your switch was autoneg, then the switch would negotiate 100/full. If you then manually switched fxp to 100/full, things would be fine till either the switch was reset and/or the cable pulled. Then when the switch came back and was not be able to autoneg, it then would make the link 100/half, which of course would cause problems.... I made this change because it was better to flap the link on media switch, and force and earlier detection that there was this mismatch between the switch, then possibly months or years later... I actually believe all 100Mbps cards should do this on media change in order to prevent the above issue... Unless of course the card can do both autoneg and fixed media at the same time, which is probably the problem with this fxp chip/phy... Hope this helps with some history behind this issue.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."