bridge: allow zero ageing time
authorStephen Hemminger <shemming@brocade.com>
Tue, 8 Mar 2016 20:59:35 +0000 (12:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2016 19:58:58 +0000 (14:58 -0500)
commit4c656c13b254d598e83e586b7b4d36a2043dad85
tree02e8b364036b21cb569d138aaa52e0d70f0e27e9
parent88de1cd457e5cb664d6d437e2ea4750d089165f5
bridge: allow zero ageing time

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>
include/linux/if_bridge.h
net/bridge/br_stp.c