summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVenkat Venkatsubra <venkat.x.venkatsubra@oracle.com>2015-03-13 07:08:22 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-14 19:12:38 -0400
commit4c906c279886550d2aaac6facf71d709158e4e3c (patch)
tree51bb451bc9b611be9d4414b30e5176133b8bd9c6 /net
parent07c2171570247639d24f2f5f1565cc358192d43e (diff)
downloadop-kernel-dev-4c906c279886550d2aaac6facf71d709158e4e3c.zip
op-kernel-dev-4c906c279886550d2aaac6facf71d709158e4e3c.tar.gz
bridge: reset bridge mtu after deleting an interface
On adding an interface br_add_if() sets the MTU to the min of all the interfaces. Do the same thing on removing an interface too in br_del_if. Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/br_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index b087d27..1849d96 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -563,6 +563,8 @@ int br_del_if(struct net_bridge *br, struct net_device *dev)
*/
del_nbp(p);
+ dev_set_mtu(br->dev, br_min_mtu(br));
+
spin_lock_bh(&br->lock);
changed_addr = br_stp_recalculate_bridge_id(br);
spin_unlock_bh(&br->lock);
OpenPOWER on IntegriCloud