Skip to contentSkip to conversation

MTU of bridge after deleting an interface

DISCUSSION Venkat Venkatsubra 2 participants 2 messages Mar 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello All,

When adding an interface the bridge interface's MTU is set to the minimum of all the interfaces. Call to dev_set_mtu(br->dev, br_min_mtu(br)) in br_add_if() achieves that. But when deleting an interface from the bridge the MTU is not reset again to the minimum of the current set of interfaces. Is there a reason it is that way ?

If not I could send a patch that resets the MTU with a call to dev_set_mtu(br->dev, br_min_mtu(br)) in br_del_if().

Looking forward to your response.

Thanks.

Venkat

#1 lore raw
Quoted 11 lines · Venkat Venkatsubra

Hello All,

When adding an interface the bridge interface's MTU is set to the minimum of all the interfaces. Call to dev_set_mtu(br->dev, br_min_mtu(br)) in br_add_if() achieves that. But when deleting an interface from the bridge the MTU is not reset again to the minimum of the current set of interfaces. Is there a reason it is that way ?

If not I could send a patch that resets the MTU with a call to dev_set_mtu(br->dev, br_min_mtu(br)) in br_del_if().

seems like the right thing to do. you should submit a patch.