I installed a USB-ethernet adapter in my U4 (long ago the U4's ethernet connection dropped to 100Mbps).
The USB-ethernet adapter is using the Realtek RTL8156 chip. The adapter works, and the link light on the switch it's connected to indicates 1Gbps link rate.
However, the "messages" log file is flooded with this pair of entries at the rate of about 15-16 pairs per second -
Code: Select all
Apr 29 16:26:05 beyonwizu4 user.info kernel: cdc_ncm 4-1.3:2.0 usb0: network connection: connected
Apr 29 16:26:05 beyonwizu4 user.info kernel: cdc_ncm 4-1.3:2.0 usb0: 1000 mbit/s downlink 1000 mbit/s uplink
Code: Select all
/* if the speed hasn't changed, don't report it.
* RTL8156 shipped before 2021 sends notification about every 32ms.
*/
if (dev->rx_speed == rx_speed && dev->tx_speed == tx_speed)
return;
Is there any possibility of a kernel re-compile with the above module, to suppress these link speed messages?
Or instead, a new RTL8156 driver (possibly a part of RTL8152) as per these bug reports -
Comment in "Bug 1851340 - flooded with - cdc_ncm 2-2:2.0 enp2s0f0u2c2: network connection: connected" https://bugzilla.redhat.com/show_bug.cgi?id=1851340 to "Download and compile Realtek driver r8152 version 2.14.0".
It links to - https://www.realtek.com/en/component/zo ... 0-software which contains a new driver for the RTL8156.
A Ubuntu bug report "cdc_ncm floods syslog unneccessarily" in https://bugs.launchpad.net/ubuntu/+sour ... ug/1832472 links to the same Realtek driver.
If it's easy to build the new driver, perhaps you could do so when you have time, and then I could download it and use opkg to install it.
Cheers,
Geoff