net: bridge: set min MTU on port events and allow user to set max
Recently the bridge was changed to automatically set maximum MTU on port events (add/del/changemtu) when vlan filtering is enabled, but that actually changes behaviour in a way which breaks some setups and can lead to packet drops. In order to still allow that maximum to be set while being compatible, we add the ability for the user to tune the bridge MTU up to the maximum when vlan filtering is enabled, but that has to be done explicitly and all port events (add/del/changemtu) lead to resetting that MTU to the minimum as before. Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
56c03cbf8c
commit
f40aa23339
@@ -578,7 +578,7 @@ int br_del_bridge(struct net *net, const char *name);
|
||||
int br_add_if(struct net_bridge *br, struct net_device *dev,
|
||||
struct netlink_ext_ack *extack);
|
||||
int br_del_if(struct net_bridge *br, struct net_device *dev);
|
||||
int br_mtu(const struct net_bridge *br);
|
||||
int br_mtu(const struct net_bridge *br, bool max);
|
||||
netdev_features_t br_features_recompute(struct net_bridge *br,
|
||||
netdev_features_t features);
|
||||
void br_port_flags_change(struct net_bridge_port *port, unsigned long mask);
|
||||
|
Reference in New Issue
Block a user