summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-01-15 10:11:54 +0300
committerDavid S. Miller <davem@davemloft.net>2008-01-29 02:02:14 +0300
commitd717a9a62049a03e85c3c2dd3399416eeb34a8be (patch)
tree1b83623666eb232ac97586c5188304d76dbdbe59 /net/ipv4/fib_frontend.c
parent28d36e3702fcbed73c38e877bcf2a8f8946b7f3d (diff)
downloadlinux-d717a9a62049a03e85c3c2dd3399416eeb34a8be.tar.xz
[IPV4] fib_trie: size and statistics
Show number of entries in trie, the size field was being set but never used, but it only counted leaves, not all entries. Refactor the two cases in fib_triestat_seq_show into a single routine. Note: the stat structure was being malloc'd but the stack usage isn't so high (288 bytes) that it is worth the additional complexity. Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
0 files changed, 0 insertions, 0 deletions