From owner-freebsd-stable@FreeBSD.ORG Fri Aug 8 10:47:45 2008 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 571F8106567E for ; Fri, 8 Aug 2008 10:47:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 1CC508FC08 for ; Fri, 8 Aug 2008 10:47:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1382691rvf.43 for ; Fri, 08 Aug 2008 03:47:44 -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=qW8psz8ASzt/MaY0BmRYu6MZTQP2BBHe5fYAaskIa5I=; b=oojPRuMCVeV/rBpfAx1gn9TYkWEPVuYEi+aUsULgs5Mn+HmlfMnoMx/E37ypKiJZnI gOazZISvpTeL8VWSwN8+47XXgkraUtI9HdOYpvUfvMajbdfbqcckpQ45r+6WO/KUk/ZK LLO2W74RRUORMUYypw9V5qJg7wQb9KhObTBYo= 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=LBSc6UE1P9umop2UZWFJWXoQr98NKo9jHc/J5IHEaOKcvEYq6tJnJe3Sb0xOH8WcyJ 1GqsBC8i74kz6YeuHx7GUR4586Kp9zdSOypA6pu+veG0phk7b5YkNxkP9ExoNO6jc7aL VugWTpOZ59Xyshy7RgdPPsrXMEjqJWSGzMzJg= Received: by 10.141.210.13 with SMTP id m13mr1340942rvq.25.1218190845661; Fri, 08 Aug 2008 03:20:45 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id g31sm1623455rvb.2.2008.08.08.03.20.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 Aug 2008 03:20:44 -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 m78AIYR1039936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2008 19:18:34 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m78AIW4i039935; Fri, 8 Aug 2008 19:18:32 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 8 Aug 2008 19:18:31 +0900 From: Pyun YongHyeon To: Pete French Message-ID: <20080808101831.GD38118@cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org Subject: Re: should looking at an interface with 'ifconfig' trigger a change ? 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: Fri, 08 Aug 2008 10:47:45 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 07, 2008 at 05:27:53PM +0100, Pete French wrote: > I have a very odd problem here - two interfaces bundled using lagg > in 'failover' mode, so one interface is active and the other not being > used. if the carrier drops on the active one I expect it to > failover, but it doesnt. > > ...until I type 'ifconfig bce0' to look at the status of the interface > which has gone down. At which point it fails over properly! > > This is most odd - how can simply looking at the config of an > interface trigger the failover ? It wont fail over otherwise either - you > can leave it as long as you like and lagg wont realise that the active > has gone down. > > The interfaces here are 'bce' by the way, if that make a difference.... > Try attached patch and check whether bce(4) correctly reports link state changes. After seeing 'link state changed to UP' message, unplug the cable and see whether it reports link DOWN. The message should be printed in a second. Also try replugging cable and you should see link UP message within several seconds. Since auto-negotation takes more time you may have to wait for a while. -- Regards, Pyun YongHyeon --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="brgphy.diff" --- sys/dev/mii/brgphy.c.orig 2008-01-22 10:23:10.000000000 +0900 +++ sys/dev/mii/brgphy.c 2008-01-22 12:32:41.000000000 +0900 @@ -364,16 +364,13 @@ break; } -#if 0 - /* Todo: Is this correct? */ /* Announce link loss right after it happens. */ if (sc->mii_ticks++ == 0) break; -#endif /* Only retry autonegotiation every mii_anegticks seconds. */ if (sc->mii_ticks <= sc->mii_anegticks) - goto brgphy_service_exit; + break; /* Retry autonegotiation */ --+QahgC5+KEYLbs62--