bridge: fdb cleanup runs too often
authorstephen hemminger <shemminger@vyatta.com>
Tue, 15 Jun 2010 06:14:12 +0000 (06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jun 2010 20:49:14 +0000 (13:49 -0700)
commit25442e06d20aaba7d7b16438078a562b3e4cf19b
tree93df63e0e4f35d6d649150e2c49aa47af62961dd
parentaabef8b240880439b91574c9a9e33dcc44bfd8c7
bridge: fdb cleanup runs too often

It is common in end-node, non STP bridges to set forwarding
delay to zero; which causes the forwarding database cleanup
to run every clock tick. Change to run only as soon as needed
or at next ageing timer interval which ever is sooner.

Use round_jiffies_up macro rather than attempting round up
by changing value.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c