ipv4: fix counter in_slow_tot
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Mon, 17 Feb 2014 07:23:43 +0000 (15:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2014 21:54:42 +0000 (16:54 -0500)
commita6254864c08109c66a194612585afc0439005286
tree7275c74a6dc1f60068abbf766a04f9b6ecb52af4
parent3eca5299532ea9d6ab63b03e7aaac9071d5eed29
ipv4: fix counter in_slow_tot

since commit 89aef8921bf("ipv4: Delete routing cache."), the counter
in_slow_tot can't work correctly.

The counter in_slow_tot increase by one when fib_lookup() return successfully
in ip_route_input_slow(), but actually the dst struct maybe not be created and
cached, so we can increase in_slow_tot after the dst struct is created.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c