Re: CFT: re(4) WOL support

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Tue, 29 Jan 2008 21:14:25 +0100
Pyun YongHyeon <pyunyh_at_gmail.com> wrote:

> Attached patch enables WOL capability on re(4). Since there are too
> many variants of hardwares that uses re(4), I'd like to hear
> success/failure report of the patch prior to commit. You can wake
> the system in suspend state as well as power down state. Because
> suspend/resume does not work on my box I don't know whether waking
> up from suspend work. WOL packets can be greated with tools like
> ports/net/wol.

Suspending doesn't work on my system either,
but I successfully tested wake-up from power-down state with:

fk_at_africanqueen ~ $pciconf -lv | grep -A 4 re0
re0_at_pci0:0:9:0: class=0x020000 card=0x816910ec chip=0x816910ec rev=0x10 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'RTL8110SB Single-Chip Gigabit LOM Ethernet Controller'
    class      = network
    subclass   = ethernet

fk_at_africanqueen ~ $ifconfig re0
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=399b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether [...]
        inet 192.168.5.48 netmask 0xffffff00 broadcast 192.168.5.255
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active

I didn't notice any regressions.

Thanks for all the effort you put into re(4), much appreciated.

Fabian

Received on Tue Jan 29 2008 - 19:14:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:26 UTC