I am using Openwrt 22.03.3 and a dual port Mellanox ConnectX-3 network card.
Once ports link down by shutting down an interface or unplugging a cable, one of them will not link back up even if I restart the interface or re-plug the cable. To use it again, I have to reboot the entire OpenWrt. And apparently this always only happens on the same one port. Because the interface works fine after OpenWrt boots up, I do not believe that the network card is broken.
dmesg from each of these operations are as following:
on boot:
[ 16.874589] mlx4_en: eth4: Steering Mode 1
[ 16.885609] 8021q: adding VLAN 0 to HW filter on device eth4
[ 18.959466] mlx4_en: eth4: Link Up
[ 18.959706] IPv6: ADDRCONF(NETDEV_CHANGE): eth4: link becomes ready
on network restart:
[ 141.842576] mlx4_en: eth4: Close port called
[ 141.888153] mlx4_en: eth4: Link Down
[ 143.249162] mlx4_en: eth4: Steering Mode 1
[ 143.258395] 8021q: adding VLAN 0 to HW filter on device eth4
on try interface restart:
[ 201.872364] mlx4_en: eth4: Close port called
[ 201.916236] mlx4_en: eth4: Steering Mode 1
[ 201.925537] 8021q: adding VLAN 0 to HW filter on device eth4
There is a "Link Down" at the network restart and then "Link Up" does not appear when I try to restart the interface.
Any solutions or clues to this problem?