Bug 226549

Summary: lagg failover with re0 and ath0 does not operate by switching back
Product: Base System Reporter: Masachika ISHIZUKA <ish>
Component: wirelessAssignee: freebsd-net (Nobody) <net>
Status: Open ---    
Severity: Affects Some People CC: ceri, ish
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258850

Description Masachika ISHIZUKA 2018-03-12 07:59:50 UTC
I use lagg on 12.0-CURRENT r330627 as follows.
% ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
        ether 9c:30:5b:78:a4:a7
        hwaddr 8c:ec:4b:55:60:68
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo 
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 9c:30:5b:78:a4:a7
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11ng
        status: associated
        ssid XXXXXX channel 4 (2427 MHz 11g ht/20) bssid XX:XX:XX:XX:XX:XX
        regdomain JAPAN country JP indoor ecm authmode WPA2/802.11i
        privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 23 bmiss 7
        scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi
        -stbctx stbcrx -ldpc wme burst roaming MANUAL
        groups: wlan 
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 9c:30:5b:78:a4:a7
        inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255 
        inet6 fe80::5%lagg0 prefixlen 64 scopeid 0x4 
        inet6 XXXX:XXXX:XXXX:XXXX::5 prefixlen 64 autoconf 
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
        media: Ethernet autoselect
        status: active
        groups: lagg 
        laggproto failover lagghash l2,l3,l4
        laggport: re0 flags=5<MASTER,ACTIVE>
        laggport: wlan0 flags=0<>

When I disconnect the lan cable, it automatically switches and communicates.
when I connect lan cable again, the output of ifconfig is the same as above but it is not communicates. I can recover by 'ifconfig re0 down && ifconfig re0 up'.

% dmesg|grep ath
[ath_hal] loaded
ath0: <Qualcomm Atheros AR9565> mem 0xdf000000-0xdf07ffff at device 0.0 on pci3
ath0: WB335 2-ANT card detected
ath0: Bluetooth Antenna Diversity card detected
ath0: [HT] enabling HT modes
ath0: [HT] enabling short-GI in 20MHz mode
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 RX streams; 1 TX streams
ath0: QCA9565 mac 704.2 RF5110 phy 769.7
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
% dmesg | grep re0
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xdf104000-0xdf104fff,0xdf100000-0xdf103fff at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: turning off MSI enable bit.
re0: ASPM disabled
re0: Chip rev. 0x54000000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 8c:ec:4b:55:60:68
re0: netmap queues/slots: TX 1/256, RX 1/256
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2021-07-26 21:25:51 UTC
I'm seeing this too, but with rtwn(4) and re(4).
14-CURRENT, main-n248136-fa46a46a824