Skip to content
Commit 071f7722 authored by Baruch Even's avatar Baruch Even Committed by David S. Miller
Browse files

[BRIDGE]: Reduce frequency of forwarding cleanup timer in bridge.



The bridge cleanup timer is fired 10 times a second for timers that
are at least 15 seconds ahead in time and that are not critical to be
cleaned asap.

This patch calculates the next time to run the timer as the minimum of
all timers or a minimum based on the current state.

Signed-off-by: default avatarBaruch Even <baruch@ev-en.org>
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67403754
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment