Fail to unload the NIC driver for Realtek

Hi All,

RTL8119 is mounted on our custom board and we would like to write the mac address to it by using the linuxpg tool.

The first step is to unload the NIC driver before writing the mac address to RTL8119. But the system gets stuck after entering the command as below:

$ sudo rmmod r8169

The log shows as below after entering command:

[  272.559933] unregister_netdevice: waiting for eth0 to become free. Usage count = 35773
[  282.640173] unregister_netdevice: waiting for eth0 to become free. Usage count = 35773
[  292.720150] unregister_netdevice: waiting for eth0 to become free. Usage count = 35773

Our code base is R35.3.1 and host pc is ubuntu 20.04.
Any suggestions is appreciated. Thanks.

Michael.

please check

Hi @WayneWWW

Thanks. it works!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.