From owner-freebsd-stable@FreeBSD.ORG  Thu Oct  2 09:02:04 2008
Return-Path: <owner-freebsd-stable@FreeBSD.ORG>
Delivered-To: freebsd-stable@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 897E8106568A
	for <freebsd-stable@freebsd.org>; Thu,  2 Oct 2008 09:02:04 +0000 (UTC)
	(envelope-from sergey.dyatko@gmail.com)
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24])
	by mx1.freebsd.org (Postfix) with ESMTP id 0D9BF8FC24
	for <freebsd-stable@freebsd.org>; Thu,  2 Oct 2008 09:02:03 +0000 (UTC)
	(envelope-from sergey.dyatko@gmail.com)
Received: by ey-out-2122.google.com with SMTP id 6so282351eyi.7
	for <freebsd-stable@freebsd.org>; Thu, 02 Oct 2008 02:02:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:date:to:cc:subject:message-id
	:in-reply-to:references:x-mailer:mime-version:content-type
	:content-transfer-encoding:from;
	bh=1JSoLFr9DOCA56YYK9AG6dSJo/QOxW+ZAH0Lli4Cb44=;
	b=fJnBkYu0BJnsuAJ7mBA1DeNAVBoNK+KjSN08oj2eRiJtz7Yf8GVquZ1SyDcYCPVgGE
	OPeGna76CVtTmGDZ/rwwatiXPt+KrK7YDSj4az/g/afi5Pnqm29uzYEskcRgt+OB4NEy
	FfR4MpfUX6Hjwg/llU2TPs8TTOCoHTF4h28Jc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=date:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding:from;
	b=I0OyToew9STD6XkKVsYx9L9MueH8VjZ/548eAuKVtXyyOef/eGdxuQhoNVuqymChf9
	Ba8OZHmg8Wa/lxDLQ44M5vWcls73iaBW2VM2vBRtaJ2wwnPyDlOphABWxQsYabmPqfIs
	O/mhgILv13AlPWeagpVbPQJ+eKef//PKzPOwI=
Received: by 10.210.124.15 with SMTP id w15mr11098863ebc.81.1222938121879;
	Thu, 02 Oct 2008 02:02:01 -0700 (PDT)
Received: from notebook (minsk.agava.net [212.98.174.157])
	by mx.google.com with ESMTPS id c22sm1561621ika.1.2008.10.02.02.01.59
	(version=SSLv3 cipher=RC4-MD5); Thu, 02 Oct 2008 02:02:01 -0700 (PDT)
Date: Thu, 2 Oct 2008 12:01:57 +0300
To: pyunyh@gmail.com
Message-ID: <20081002120157.4e72b2f0@notebook>
In-Reply-To: <20081002084425.GD67204@cdnetworks.co.kr>
References: <20081002102600.45f407d2@notebook>
	<20081002084425.GD67204@cdnetworks.co.kr>
X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1)
Mime-Version: 1.0
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: 8bit
From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
Cc: freebsd-stable@freebsd.org
Subject: Re: if_re is broken on RELENG_7 ?
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, 
	<mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable>
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
	<mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Oct 2008 09:02:04 -0000

В Thu, 2 Oct 2008 17:44:25 +0900
Pyun YongHyeon <pyunyh@gmail.com> пишет:

> On Thu, Oct 02, 2008 at 10:26:00AM +0300, Sergey V. Dyatko wrote:
>  > Hi list, 
>  > I have ASUS a6m laptop with integrated RTL8168/8111 PCI-E Gigabit
>  > Ethernet NIC, long time ago (7.0-CURRENT - 7.0-prerelease) I used
>  > it. Than I started to enjoy BCM43XX wi-fi adapter and now I
>  > recently decided to revert to the use of realtek adapter. But it
>  > doesn't work. I'm just not running a network card or at all does
>  > not work?
>  > 
>  > some additional information: 
>  > ifconfig shows such information, regardless of whether the cable is
>  > connected:
>  > 
>  > %ifconfig re0 
>  > re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>  >         options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
>  >         ether 00:1a:92:ca:b3:bc
>  >         media: Ethernet autoselect (10baseT/UTP <half-duplex>)
>  >         status: no carrier
> 
> I don't see what's wrong in the output above. Because there is no
> "RUNNING" in flags field I guess you didn't up the interface.
> (e.g. either assign an IP address to the interface or run
> 'dhclient re0' if you want to get an IP address over DHCP).
> 
Hmm, after command 'ifconfig re0 up' status changed to  'active',
media to '100baseTX <full-duplex>' and everything work fine (dhclient
re0). What time have I had to type "up" explicitly to make it work
since?

On my desktop with age(4):
without cable:
age0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	 options=319b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC>
         ether 00:1b:fc:d4:7d:b3
         media: Ethernet autoselect (none)
         status: no carrier
Now I'll plug cable into NIC:

age0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	 options=319b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC>
	 ether 00:1b:fc:d4:7d:b3
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
in that case I haven't "RUNNING" in flags field too, that flag and flag
'UP' appeared after I assing IP to age0

age0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0
mtu1500
	 options=319b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC>
         ether 00:1b:fc:d4:7d:b3
         inet 192.168.9.240 netmask 0xffffff00 broadcast 192.168.9.255

>  > 
>  > [tiger@notebook]~%pciconf -lv | grep re0 -A 4
>  > re0@pci0:2:0:0: class=0x020000 card=0x11f51043 chip=0x816810ec
>  > rev=0x01 hdr=0x00 vendor     = 'Realtek Semiconductor'
>  >     device     = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
>  >     class      = network
>  >     subclass   = ethernet
>  > dmesg output: http://tiger.byfly.by/files/dmesg.boot
>  > kernel config: http://tiger.byfly.by/files/tiger-asus-a6m
>  > 
> 


-- 
--
С уважением, Сергей Дятко
системный администратор
АГАВА-Минск
tiger@agava.com