On Monday, June 9, 2025 9:08:07 PM Central European Summer Time Rustam wrote:
> It seems there is no way to suppress it.
> 
> I could do `batctl hardif br0.100 to 100000` but only *after* I add the
> interface and get the above warning.

By default batman-adv attempts to determine the link speed automagically. That 
is why you see a warning every time that magic fails.


> So here's a suggestion - maybe there could be a "default link speed"
> setting, which, when set, would also suppress the warning?
> And/or allow setting the link speed override *before* adding the interface.
> Then we could patch systemd-networkd to make it configurable.

Having a default setting for manual link speed is not a bad idea. You'd have 
to document well whether this default speed comes into effect only when the 
auto-link-speed detection has failed or always.

Feel free to propose a patch.


> Or perhaps expand link speed detection to descend into bridges and grab the
> underlying link speeds?

Afaik br0.100 is a VLAN interface which does not provide link speeds on its 
down.

Automatic link detection on the underlying bridge interface will be tricky. If 
the bride contains multiple slave interfaces which link speed should be used?

Cheers,
Marek



Reply via email to