Bug 226763

Summary: Wake on lan (WOL_MAGIC) stopped working with re nic
Product: Base System Reporter: Koen Martens <gmc>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: New ---    
Severity: Affects Only Me Keywords: regression
Priority: ---    
Version: 11.1-STABLE   
Hardware: Any   
OS: Any   

Description Koen Martens 2018-03-19 19:35:37 UTC
Yesterday I upgraded this box from 10.3-RELEASE to 11.1-RELEASE. With 10.3-RELEASE, wake on lan worked perfectly. I had enabled it with 'ifconfig re0 wol_magic', then after doing 'poweroff' i could wake the box with the 'wakeonlan' command from an linux (ubuntu) box. Sadly, after the upgrade to 11.1-RELEASE this no longer worked.

# uname -a
FreeBSD xendi 11.1-RELEASE-p8 FreeBSD 11.1-RELEASE-p8 #0: Tue Mar 13 17:07:05 UTC 2018     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
# dmesg | grep re0
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xf6eff000-0xf6efffff,0xf6ee0000-0xf6eeffff irq 17 at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
miibus0: <MII bus> on re0
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:26:18:f0:e0:3f
re0: netmap queues/slots: TX 1/256, RX 1/256
re0: link state changed to DOWN
re0: link state changed to UP
# ifconfig -m re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
	capabilities=183999<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC,LINKSTATE,NETMAP>
	ether 00:26:18:f0:e0:3f
	hwaddr 00:26:18:f0:e0:3f
	inet 10.1.3.9 netmask 0xffffff00 broadcast 10.1.3.255 
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
	supported media:
		media autoselect mediaopt flowcontrol
		media autoselect
		media 1000baseT mediaopt full-duplex,flowcontrol,master
		media 1000baseT mediaopt full-duplex,flowcontrol
		media 1000baseT mediaopt full-duplex,master
		media 1000baseT mediaopt full-duplex
		media 1000baseT mediaopt master
		media 1000baseT
		media 100baseTX mediaopt full-duplex,flowcontrol
		media 100baseTX mediaopt full-duplex
		media 100baseTX
		media 10baseT/UTP mediaopt full-duplex,flowcontrol
		media 10baseT/UTP mediaopt full-duplex
		media 10baseT/UTP
		media none