mhm, after rebuilding and flashing i get a trace when bootup process tries to bring up wan…really strange…seems like something has changed…still do not see the sfp property on mac@1 in any dts{,i,o}
ah, it looks like i miss the phy driver/firmware in my current state…maybe i had it enabled manually
Symbol: PACKAGE_mt7988-2p5g-phy-firmware [=n]
Symbol: PACKAGE_kmod-phy-mediatek-2p5g [=n]
wonder why this happened because i have it enabled…maybe because switching between 4e and 8x board without distclean
define Device/bananapi_bpi-r4-pro-4e
DEVICE_MODEL := BPi-R4 Pro 4E
DEVICE_DTS := mt7988a-bananapi-bpi-r4-pro-4e
DEVICE_DTS_CONFIG := config-mt7988a-bananapi-bpi-r4-pro-4e
DEVICE_BL2 := comb
$(call Device/bananapi_bpi-r4-pro-common)
DEVICE_PACKAGES += mt7988-2p5g-phy-firmware
DEVICE_DTS_OVERLAY += mt7988a-bananapi-bpi-r4-pro-4e-wan-phy mt7988a-bananapi-bpi-r4-pro-4e-wan-sfp
endef
TARGET_DEVICES += bananapi_bpi-r4-pro-4e
looks better now
[ 21.599531] mtk_soc_eth 15100000.ethernet wan: PHY [mdio-bus:0f] driver [MediaTek MT7988 2.5GbE PHY] (irq=POLL)
[ 21.609674] mtk_soc_eth 15100000.ethernet wan: configuring for phy/internal link mode
vs.
[ 18.519501] mtk_soc_eth 15100000.ethernet wan: PHY [mdio-bus:0f] driver [Generic Clause 45 PHY] (irq=POLL)
[ 18.529238] mtk_soc_eth 15100000.ethernet wan: configuring for phy/internal link mode
[ 18.537093] ------------[ cut here ]------------
[ 18.541730] _phy_start_aneg+0x0/0xa0: returned: -22
[ 18.546701] WARNING: CPU: 0 PID: 93 at _phy_state_machine+0x100/0x3e0
[ 18.553142] Modules linked in: pppoe ppp_async nft_flow_offload nft_fib_inet nf_flow_table_inet nf_flow_table pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft
[ 18.629306] CPU: 0 UID: 0 PID: 93 Comm: kworker/u16:3 Tainted: G O 6.18.44 #0 NONE
[ 18.638430] Tainted: [O]=OOT_MODULE
[ 18.641908] Hardware name: Bananapi BPI-R4 Pro 4E (DT)
[ 18.647034] Workqueue: events_power_efficient phy_state_machine
[ 18.652945] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 18.659895] pc : _phy_state_machine+0x100/0x3e0
[ 18.664414] lr : _phy_state_machine+0x100/0x3e0
...
already noticed, that the device-specific defaults are not taken when selecting another board (here R4pro 8x vs. 4e), not sure how to solve without distclean and rebuilding .config
but back to the retransmitts…i have them only in sending direction and less count than you
root@OpenWrt:~# iperf3 -c 192.168.0.21
Connecting to host 192.168.0.21, port 5201
[ 5] local 192.168.0.102 port 59954 connected to 192.168.0.21 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 114 MBytes 952 Mbits/sec 0 656 KBytes
[ 5] 1.00-2.00 sec 113 MBytes 945 Mbits/sec 5 361 KBytes
[ 5] 2.00-3.00 sec 112 MBytes 943 Mbits/sec 2 298 KBytes
[ 5] 3.00-4.00 sec 112 MBytes 942 Mbits/sec 0 506 KBytes
[ 5] 4.00-5.00 sec 112 MBytes 940 Mbits/sec 4 294 KBytes
[ 5] 5.00-6.00 sec 112 MBytes 937 Mbits/sec 1 345 KBytes
[ 5] 6.00-7.00 sec 112 MBytes 942 Mbits/sec 0 529 KBytes
[ 5] 7.00-8.00 sec 112 MBytes 943 Mbits/sec 4 379 KBytes
[ 5] 8.00-9.00 sec 112 MBytes 943 Mbits/sec 5 303 KBytes
[ 5] 9.00-10.00 sec 112 MBytes 941 Mbits/sec 0 477 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec 21 sender
[ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec receiver
iperf Done.
root@OpenWrt:~# iperf3 -R -c 192.168.0.21
Connecting to host 192.168.0.21, port 5201
Reverse mode, remote host 192.168.0.21 is sending
[ 5] local 192.168.0.102 port 57768 connected to 192.168.0.21 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 112 MBytes 939 Mbits/sec
[ 5] 1.00-2.00 sec 112 MBytes 940 Mbits/sec
[ 5] 2.00-3.00 sec 112 MBytes 941 Mbits/sec
[ 5] 3.00-4.00 sec 112 MBytes 938 Mbits/sec
[ 5] 4.00-5.00 sec 112 MBytes 938 Mbits/sec
[ 5] 5.00-6.00 sec 112 MBytes 940 Mbits/sec
[ 5] 6.00-7.00 sec 112 MBytes 940 Mbits/sec
[ 5] 7.00-8.00 sec 112 MBytes 940 Mbits/sec
[ 5] 8.00-9.00 sec 112 MBytes 940 Mbits/sec
[ 5] 9.00-10.00 sec 112 MBytes 940 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec 0 sender
[ 5] 0.00-10.00 sec 1.09 GBytes 939 Mbits/sec receiver
iperf Done.
root@OpenWrt:~# ethtool -S wan
NIC statistics:
tx_bytes: 1234654529
tx_packets: 858180
tx_skip: 0
tx_collisions: 0
rx_bytes: 1230219181
rx_packets: 837928
rx_overflow: 0
rx_fcs_errors: 0
rx_short_errors: 0
rx_long_errors: 0
rx_checksum_errors: 0
rx_flow_control_packets: 0
rx_xdp_redirect: 0
rx_xdp_pass: 0
rx_xdp_drop: 0
rx_xdp_tx: 0
rx_xdp_tx_errors: 0
tx_xdp_xmit: 0
tx_xdp_xmit_errors: 0
maybe caused by client/switch between client and server, or something must settle a bit…did a bidir after the first run which is completely clean (could be lower layer too - tcp window, MTU path discovery or such)
root@OpenWrt:~# iperf3 --bidir -c 192.168.0.21
Connecting to host 192.168.0.21, port 5201
[ 5] local 192.168.0.102 port 52736 connected to 192.168.0.21 port 5201
[ 7] local 192.168.0.102 port 52752 connected to 192.168.0.21 port 5201
[ ID][Role] Interval Transfer Bitrate Retr Cwnd
[ 5][TX-C] 0.00-1.00 sec 113 MBytes 944 Mbits/sec 0 731 KBytes
[ 7][RX-C] 0.00-1.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 1.00-2.00 sec 111 MBytes 929 Mbits/sec 0 771 KBytes
[ 7][RX-C] 1.00-2.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 2.00-3.00 sec 112 MBytes 938 Mbits/sec 0 771 KBytes
[ 7][RX-C] 2.00-3.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 3.00-4.00 sec 111 MBytes 930 Mbits/sec 0 771 KBytes
[ 7][RX-C] 3.00-4.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 4.00-5.00 sec 111 MBytes 929 Mbits/sec 0 771 KBytes
[ 7][RX-C] 4.00-5.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 5.00-6.00 sec 111 MBytes 934 Mbits/sec 0 771 KBytes
[ 7][RX-C] 5.00-6.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 6.00-7.00 sec 111 MBytes 930 Mbits/sec 0 771 KBytes
[ 7][RX-C] 6.00-7.00 sec 112 MBytes 937 Mbits/sec
[ 5][TX-C] 7.00-8.00 sec 111 MBytes 933 Mbits/sec 0 771 KBytes
[ 7][RX-C] 7.00-8.00 sec 112 MBytes 935 Mbits/sec
[ 5][TX-C] 8.00-9.00 sec 111 MBytes 932 Mbits/sec 0 771 KBytes
[ 7][RX-C] 8.00-9.00 sec 112 MBytes 936 Mbits/sec
[ 5][TX-C] 9.00-10.00 sec 111 MBytes 934 Mbits/sec 0 771 KBytes
[ 7][RX-C] 9.00-10.00 sec 112 MBytes 937 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID][Role] Interval Transfer Bitrate Retr
[ 5][TX-C] 0.00-10.00 sec 1.09 GBytes 933 Mbits/sec 0 sender
[ 5][TX-C] 0.00-10.00 sec 1.09 GBytes 932 Mbits/sec receiver
[ 7][RX-C] 0.00-10.00 sec 1.09 GBytes 939 Mbits/sec 0 sender
[ 7][RX-C] 0.00-10.00 sec 1.09 GBytes 936 Mbits/sec receiver
iperf Done.
Have you used same cable,client,switchports for sfp and phy test? Could be pause/flowcontrol-setting on the way