Comment 14 for bug 1399064

Revision history for this message
Trent Lloyd (lathiat) wrote :

This has been fixed, I'm not entirely sure when, but you can create a bridge with a specific MTU.

Additionally since v4.17 when you set the MTU, the bridge will stop automatically changing it when interfaces are added/removed:
https://github.com/torvalds/linux/commit/804b854d374e39f5f8bff9638fd274b9a9ca7d33

However until a commit I'm pushing now, that worked if you set the MTU after creation (ip link set br0 mtu 9000) but failed if the MTU was set during creation (ip link add br0 type bridge mtu 9000) - which is also the equivalent to how systemd-networkd does it. So the MTU may shrink if you accidentally add lower MTU interfaces to the bridge. But LXC/LXD/etc typically set the MTU to match the MTU the bridge currently has so mostly this should work as desired since about 2018/v4.17 at least.