MTU of bridge after deleting an interface
Subsystems (2)
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
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))inbr_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))inbr_del_if().
seems like the right thing to do. you should submit a patch.