rocker: set FDB cleanup timer according to lowest ageing time
authorIdo Schimmel <idosch@mellanox.com>
Tue, 8 Mar 2016 20:59:34 +0000 (12:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:42:02 +0000 (15:42 +0900)
commitc3d8f507e7fedeeab81bd9dafa2d63d82be159a3
tree1d439a48f8c66102f5bade523c2b394e46f4f59c
parent7d870cff8ece6088dd9e26f54a3fd1b4b899ddf9
rocker: set FDB cleanup timer according to lowest ageing time

[ Upstream commit 88de1cd457e5cb664d6d437e2ea4750d089165f5 ]

In rocker, ageing time is a per-port attribute, so the next time the FDB
cleanup timer fires should be set according to the lowest ageing time.

This will later allow us to delete the BR_MIN_AGEING_TIME macro, which was
added to guarantee minimum ageing time in the bridge layer, thereby breaking
existing behavior.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
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>
drivers/net/ethernet/rocker/rocker.c