]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: set min MTU on port events and allow user to set max
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 30 Mar 2018 10:46:18 +0000 (13:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 02:19:00 +0000 (22:19 -0400)
commitc11a600d63b5287e20aafa02127c7d9b2e15a6b6
treec1033f88e7bf84405963f22fc664f2692aee2769
parent3460475f15c5e2ff2937cda71881bf33dabed47a
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>
net/bridge/br.c
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_private.h