]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NET: Corrects a bug in ip_rt_acct_read()
authorEric Dumazet <dada1@cosmosbay.com>
Thu, 29 Nov 2007 12:07:57 +0000 (23:07 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:51:03 +0000 (09:51 -0800)
commitc2f1eef5597779c7111747f51aa9d76945a8cee0
tree2b4ff3ade9a2bc28af64debb9e9b4288372e37fd
parent823bf28de362bbb396c652988a5cf4b3bc31ea85
NET: Corrects a bug in ip_rt_acct_read()

[NET]: Corrects a bug in ip_rt_acct_read()

[ Upstream commit: 483b23ffa3a5f44767038b0a676d757e0668437e ]

It seems that stats of cpu 0 are counted twice, since
for_each_possible_cpu() is looping on all possible cpus, including 0

Before percpu conversion of ip_rt_acct, we should also remove the
assumption that CPU 0 is online (or even possible)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c