Comment 13 for bug 1999181

Revision history for this message
Lukas Märdian (slyon) wrote :

I don't think adding what seems to be a hardware specific quirk into Netplan is the proper solution here.
Maybe the driver for this BCM57406 (bnxt_en) device needs to be fixed, instead? To accept SR-IOV configuration at boot time.

> And as a side note, I also tried a X540 (as well as I350 mentioned above), and there is no such problem. VFs are created fine with existing netplan after reboot, with or without cable connected. Never tried to put these Intel cards into DOWN state and try to create VFs though.

Did you have any chance to double-check, how the X540 behaves when it's in a DOWN state?

> Note that I intentionally have one port connected with cable, and one port have no cable. In both case I can create VFs, though I kinda remember that if I use not VEB, but none (or VEPA as well), it may not create VF either unless I have cable connected to the particular port. Can't confirm easily as I have my machine headless, but that's not as bad as the current issue for sure

You might want to experiment with Netplan's "ignore-carrier: true" setting, in order to ignore the disconnected cable. But I don't have high hopes, as this is mostly working on the systemd-networkd layer, while this issue seems to happen on the kernel/driver/sysfs layer.