From owner-freebsd-net@FreeBSD.ORG Fri Nov 9 07:54:18 2007 Return-Path: <owner-freebsd-net@FreeBSD.ORG> 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 D886216A419 for <freebsd-net@freebsd.org>; Fri, 9 Nov 2007 07:54:18 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 988BA13C4A7 for <freebsd-net@freebsd.org>; Fri, 9 Nov 2007 07:54:18 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so530035waf for <freebsd-net@freebsd.org>; Thu, 08 Nov 2007 23:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; 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=Ltbb+ysZv2FjHg+qe6AcP1PKm9I+LBiOM63LtYkMbKU=; b=NTIg7LNpUidZ6QP05Shds3E1VDEk+SARLCB0x9ovlIxOJzbsREi+P4C6uY6J/g0IaawoilE/F4komkRbfV3OdpcT7NhB6YqGs42XGh+ImZ7qaMfAIFtcWfFlhyfN4HTDgzxZfptWU4xKNlT5Xn4ncJN9yJvXpHc4jEUDniMl+50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=HwJfgj54ALde23Go3+zBs5SUydM/q7ljiMECvg004xKehPnQcDwN9wp03mFK6r6S6Wm3+QoeSML7oFLePb5oTeaYD0unQpzPE3u8teWUESoU+Fk4j/ES4B5G09ScyDKMLheo3/v42sQhv74gIx4rZmYeKQJKaz/G6TPf1zrAyEg= Received: by 10.114.123.1 with SMTP id v1mr903519wac.1194594850251; Thu, 08 Nov 2007 23:54:10 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id l22sm3034361waf.2007.11.08.23.54.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2007 23:54:07 -0800 (PST) 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 lA97rtB4084265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 16:53:55 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lA97rtiv084264; Fri, 9 Nov 2007 16:53:55 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Fri, 9 Nov 2007 16:53:54 +0900 From: Pyun YongHyeon <pyunyh@gmail.com> To: Alexander Shikoff <minotaur@crete.org.ua> Message-ID: <20071109075354.GC82809@cdnetworks.co.kr> References: <20071106141913.GA93023@crete.org.ua> <20071106143819.GA22249@crete.org.ua> <20071107002430.GA70832@cdnetworks.co.kr> <20071107073708.GA32211@crete.org.ua> <20071107075134.GD70832@cdnetworks.co.kr> <20071107083204.GA33900@crete.org.ua> <20071107101407.GF70832@cdnetworks.co.kr> <20071107115239.GA1462@crete.org.ua> <20071109010538.GA82809@cdnetworks.co.kr> <20071109052145.GA35604@crete.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071109052145.GA35604@crete.org.ua> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: re0: RealTek 8168/8111B: no carrier X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net> List-Post: <mailto:freebsd-net@freebsd.org> List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 09 Nov 2007 07:54:18 -0000 On Fri, Nov 09, 2007 at 07:21:45AM +0200, Alexander Shikoff wrote: > On Fri, Nov 09, 2007 at 10:05:38AM +0900, Pyun YongHyeon wrote: > > Because re(4) is not running yet it's normal to see 'no carrier' from > > ifconfig(8) output. > > > > > 4. Force re0 UP with ifconfig re0 up. Then re0 starts and auto-negotiation > > > works: > > > # ifconfig re0 up > > > # ifconfig > > > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > > > options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> > > > ether 00:1a:4d:52:4e:b1 > > > media: Ethernet autoselect (100baseTX <full-duplex>) > > > status: active > > > > > > So this problem turns into problem of automatic start of re0 interface. > > > > Probably not. If you want to get established valid link with link > > partner you should make re(4) up to start link negotiation with > > link partner. > > Of course, I can put ifconfig re0 up in rc.conf. But why re(4) does not > start up atomatically while another drivers (for example rl(4)) does? > I think there are some inconsistency here. It's interaction between MAC and PHY. PHY hardware of re(4) requires an explicit kick command as most other PHYs to establish a valid link with link partner. However rlphy(4) does not need the kick command and rl(4) does not honor link state correctly and its internal PHY also lacks some features to report correct link status. If you see the rl(4) code you will notice there is no link state change handler and rl(4) doesn't reprogram MAC to reflect negotiated duplex link. Also rememer that without up/running network driver you wouldn't get correct link status as both parties should agree on speed/duplex settings in order to operate correctly. The link state you can see prior to running a network driver would be transitional one and would be changed after driver running and link negotiation complete. -- Regards, Pyun YongHyeon