]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bridge: allow zero ageing time
authorStephen Hemminger <shemming@brocade.com>
Tue, 8 Mar 2016 20:59:35 +0000 (12:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:42:02 +0000 (15:42 +0900)
commitacbea202fbba11c52df2fd4040c19bb796fd37fa
tree9e0a80701c36bca5a1d15683340bb987618cbce3
parentc3d8f507e7fedeeab81bd9dafa2d63d82be159a3
bridge: allow zero ageing time

[ Upstream commit 4c656c13b254d598e83e586b7b4d36a2043dad85 ]

This fixes a regression in the bridge ageing time caused by:
commit c62987bbd8a1 ("bridge: push bridge setting ageing_time down to switchdev")

There are users of Linux bridge which use the feature that if ageing time
is set to 0 it causes entries to never expire. See:
  https://www.linuxfoundation.org/collaborate/workgroups/networking/bridge

For a pure software bridge, it is unnecessary for the code to have
arbitrary restrictions on what values are allowable.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/if_bridge.h
net/bridge/br_stp.c