From nobody@FreeBSD.org  Mon May 30 15:29:50 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 44D0B106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 15:29:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1BC318FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 15:29:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4UFTnOP094302
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 15:29:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4UFTnOe094301;
	Mon, 30 May 2011 15:29:49 GMT
	(envelope-from nobody)
Message-Id: <201105301529.p4UFTnOe094301@red.freebsd.org>
Date: Mon, 30 May 2011 15:29:49 GMT
From: Sergey Gavrilov <srg.gavrilov@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Realtek RTL8169 doesn't work with re(4)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157429
>Category:       kern
>Synopsis:       [re] Realtek RTL8169 doesn't work with re(4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 15:30:09 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed Apr 25 04:30:43 UTC 2012
>Originator:     Sergey Gavrilov
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD freebsd.gabell.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon May 30 18:20:12 MSD 2011     root@freebsd.gabell.net:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
Asus A6000 laptop. Cable connected to switch and tested with other
devices. I removed "device re" from kernel config for experiment.
Anyway it goes the same way with GENERIC.

After kldload if_re I got:
 
dmesg:
re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xdf6ff000-0xdf6fffff irq 17 at device 0.0 on pci2
re0: Using 1 MSI message
re0: Chip rev. 0x38000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: 00:1a:92:f0:c1:53
re0: [ITHREAD]
re0: link state changed to DOWN

ifconfig:
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:f0:c1:53
	media: Ethernet autoselect (10baseT/UTP <half-duplex>)
	status: no carrier

After "dhclient re0":
re0: no link ...

After "ifconfig re0 up":
dmesg:
re0: link state changed to UP

ifconfig:
re0: flags=8843<UP,BROADCAST,RUNNING,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:f0:c1:53
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
dhclient re0:
DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 11
^C

While dhcpserver works well with 3 other hosts in the network and over
wifi with this machine.
>How-To-Repeat:
Use this hardware
>Fix:
It worked on FreeBSD 7

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 30 20:21:29 UTC 2011 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157429 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Wed Apr 25 04:29:45 UTC 2012 
State-Changed-Why:  
Try diff at the following URL and let me know how it goes. 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Wed Apr 25 04:29:45 UTC 2012 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157429 
>Unformatted:
