Skip to content

device: do not set MAC address on iface with index <=0

Gris Ge requested to merge cathay4t/NetworkManager:fix_ovs into main

device: do not set MAC address on iface with index <=0

The nm_device_hw_addr_reset() should only set MAC address on NIC with valid(>0) interface index.

The failure was found by ovs_mtu test of NMCI, failed to reproduce the original problem (ovs_mtu test of NMCI) with 100 times retry. And no trace log found for original test failure, hence cannot tell why nm_device_hw_addr_reset() been invoked with iface index 0.

Merge request reports