diff options
author | Chas Williams <3chas3@gmail.com> | 2018-03-22 16:34:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-23 17:17:30 +0100 |
commit | 419d14af9e07fb5ca32b1b1614793c6b1e242152 (patch) | |
tree | 4890f2aedb3f31dbf9c32f0d90b07f0781ced4e4 /net/bridge/br.c | |
parent | virtio-net: Fix operstate for virtio when no VIRTIO_NET_F_STATUS (diff) | |
download | linux-419d14af9e07fb5ca32b1b1614793c6b1e242152.tar.xz linux-419d14af9e07fb5ca32b1b1614793c6b1e242152.zip |
bridge: Allow max MTU when multiple VLANs present
If the bridge is allowing multiple VLANs, some VLANs may have
different MTUs. Instead of choosing the minimum MTU for the
bridge interface, choose the maximum MTU of the bridge members.
With this the user only needs to set a larger MTU on the member
ports that are participating in the large MTU VLANS.
Signed-off-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br.c')
-rw-r--r-- | net/bridge/br.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br.c b/net/bridge/br.c index 7770481a6506..a3f95ab9d6a3 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c @@ -52,7 +52,7 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v switch (event) { case NETDEV_CHANGEMTU: - dev_set_mtu(br->dev, br_min_mtu(br)); + dev_set_mtu(br->dev, br_mtu(br)); break; case NETDEV_CHANGEADDR: |