Skip to content

veth: drop parent check during create_and_realize()

When checking if the peer is already created there is no need to fetch the parent device. When fetching the parent device, if the system is slow, NetworkManager can hit a race condition where the property is still NULL.

Checking that the peer device exists and is type NM_DEVICE_TYPE_VETH is enough.

Fixes: 4655b7c3 ('veth: fix veth activation on booting')

Merge request reports