diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-03-08 23:59:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-11 22:58:58 +0300 |
commit | 88de1cd457e5cb664d6d437e2ea4750d089165f5 (patch) | |
tree | efaeb842d27a8662d07e854037f0aa70100e6490 /drivers/net/ethernet/rocker/rocker.h | |
parent | 869f63a4d28144c03c8f4a4c0d1e8f31f8c11a10 (diff) | |
download | linux-88de1cd457e5cb664d6d437e2ea4750d089165f5.tar.xz |
rocker: set FDB cleanup timer according to lowest ageing time
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>
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker.h')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rocker/rocker.h b/drivers/net/ethernet/rocker/rocker.h index 1ab995f7146b..011f1b6f91bb 100644 --- a/drivers/net/ethernet/rocker/rocker.h +++ b/drivers/net/ethernet/rocker/rocker.h @@ -63,6 +63,7 @@ struct rocker { struct { u64 id; } hw; + unsigned long ageing_time; spinlock_t cmd_ring_lock; /* for cmd ring accesses */ struct rocker_dma_ring_info cmd_ring; struct rocker_dma_ring_info event_ring; |