]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Allow max MTU when multiple VLANs present
authorChas Williams <3chas3@gmail.com>
Thu, 22 Mar 2018 15:34:06 +0000 (11:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2018 16:17:30 +0000 (12:17 -0400)
commit1dca298b6cf79bd540a775babd9cfcce412a039a
tree4890f2aedb3f31dbf9c32f0d90b07f0781ced4e4
parentc42a7654ea0b77e00277bf6248ecccb11f6e1c53
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>
net/bridge/br.c
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_private.h