fun with if_re

Oliver Brandmueller ob at e-Gitt.NET
Mon Feb 23 03:54:14 PST 2009


Hi,

On Fri, Feb 13, 2009 at 08:39:55PM +0900, Pyun YongHyeon wrote:
> Ok, try attached patch.

> Index: sys/dev/re/if_re.c
> ===================================================================
> --- sys/dev/re/if_re.c	(revision 187352)
> +++ sys/dev/re/if_re.c	(working copy)
> @@ -158,6 +158,8 @@
>  /* Tunables. */
[...]

This seems to have fixed a regression I found after the latest re 
changes. While the changes lead to a situation, where the re interface 
(as opposed to before) seems to always attach, I had the problem that 
after 1-2 days it failed (sorry, was just about to investigate when I 
tried your patch and thus didn't write down the error message 
associated).

With your patch my re seems to be running fine for the last days now.

re0 at pci0:4:0:0: class=0x020000 card=0x392c1462 chip=0x816810ec rev=0x02 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
    class      = network
    subclass   = ethernet

re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff,0xf8ff0000-0xf8ffffff irq 18 at device 0.0 on pci4
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: Ethernet address: 00:21:85:1e:8b:c9
re0: [FILTER]


- Oliver



More information about the freebsd-stable mailing list