diff options
author | Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com> | 2015-03-13 07:08:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-14 19:12:38 -0400 |
commit | 4c906c279886550d2aaac6facf71d709158e4e3c (patch) | |
tree | 51bb451bc9b611be9d4414b30e5176133b8bd9c6 /net/bridge | |
parent | 07c2171570247639d24f2f5f1565cc358192d43e (diff) | |
download | blackbird-op-linux-4c906c279886550d2aaac6facf71d709158e4e3c.tar.gz blackbird-op-linux-4c906c279886550d2aaac6facf71d709158e4e3c.zip |
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/bridge')
-rw-r--r-- | net/bridge/br_if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index b087d278c679..1849d96b3c91 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); |