From owner-freebsd-net@FreeBSD.ORG Thu Jan 13 17:41:26 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3305106564A for ; Thu, 13 Jan 2011 17:41:26 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1C14A8FC1A for ; Thu, 13 Jan 2011 17:41:25 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p0DHfPlX049446; Thu, 13 Jan 2011 18:41:25 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p0DHfOh4049445; Thu, 13 Jan 2011 18:41:24 +0100 (CET) (envelope-from marius) Date: Thu, 13 Jan 2011 18:41:24 +0100 From: Marius Strobl To: Lev Serebryakov Message-ID: <20110113174124.GJ97101@alchemy.franken.de> References: <36074996.20110112192009@serebryakov.spb.ru> <20110112213208.GD12920@michelle.cdnetworks.com> <20110112225907.GA44318@alchemy.franken.de> <86656486.20110113125429@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86656486.20110113125429@serebryakov.spb.ru> User-Agent: Mutt/1.4.2.3i Cc: Pyun YongHyeon , freebsd-net@freebsd.org Subject: Re: [patch] re(4) problems on networks with disabled autonegotiation "solver" (WAS: Juniper e3k with ports limitied to...) -- REQUEST FOR REVIEW X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2011 17:41:26 -0000 On Thu, Jan 13, 2011 at 12:54:29PM +0300, Lev Serebryakov wrote: > Hello, Marius. > You wrote 13 ?????? 2011 ?., 1:59:07: > > > Note that even the RealTek supplied driver always triggers an > > auto-negotiation when manually setting the media though. However, > > at the same time it also comes with tons of uncommented PHY fix-up > > code which might be relevant for this or the previous issue. > One think I'm sure, that "mii-tool" on Linux helps now, and > "ifconfig media / mediaopt" doesn't (without this patch & turned on > option), so it seems, that Linux turn autonegotiation off when media > is set manually. > And, yes, without manual setting media (with autonegatiotion) Linux > has same problem -- half/full duplex mismatch. I was talking about the driver RealTek provides on their homepage for FreeBSD, not Linux. > > > Unfortunately, I didn't get to checking whether the MAC versions > > in question are amongst the ones that get patched so far. > > In any case I don't think we can easily change this (default) > > behavior after such a relatively long time as it would break POLA > > for an unknown number of users, even if it probably shouldn't have > > been made the default in the first place (but again on the other > It is why I do option in such way, that old users, for whom > current implementation works, doesn't notice any difference -- rgephy > works exactly the same way as usual untill you set option. > > And, yes, I think, that additional media option will be better, but > it looks like major feature and not small patch :) > That's no reason to not implement it properly :) Marius