net: fix length computation in rt_check_expire()
commit00ec06b2727596bb52ea01d596da0fa55793bd5c
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 19 May 2009 18:54:22 +0000 (19 18:54 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:39:52 +0000 (15 09:39 -0700)
treef9f9b4b8bacbe906183f690a74cc441b81f6c8a1
parentefe0627824eeb725500f76cdd28ce758d5d91fc7
net: fix length computation in rt_check_expire()

[ Upstream commit cf8da764fc6959b7efb482f375dfef9830e98205 ]

rt_check_expire() computes average and standard deviation of chain lengths,
but not correclty reset length to 0 at beginning of each chain.
This probably gives overflows for sum2 (and sum) on loaded machines instead
of meaningful results.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c