]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: take care of rt6_stats
authorWei Wang <weiwan@google.com>
Fri, 6 Oct 2017 19:06:11 +0000 (12:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 20:22:58 +0000 (21:22 +0100)
commit7e71c3a9eff00ad91385060ca2ec3d6220abc86e
tree2f7ea8d21f73d9c303c697eda6d6f0bfad43031a
parent2ef38c3eaa30a16dc77cb40371e1f3ae81ce5006
ipv6: take care of rt6_stats

Currently, most of the rt6_stats are not hooked up correctly. As the
last part of this patch series, hook up all existing rt6_stats and add
one new stat fib_rt_uncache to indicate the number of routes in the
uncached list.
For details of the stats, please refer to the comments added in
include/net/ip6_fib.h.

Note: fib_rt_alloc and fib_rt_uncache are not guaranteed to be modified
under a lock. So atomic_t is used for them.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/ip6_fib.c
net/ipv6/route.c