diff options
author | Neale Ranns <nranns@cisco.com> | 2017-11-29 00:59:31 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-11-29 11:17:08 +0000 |
commit | c87aafad759f92ae630fec52079a08ace607410b (patch) | |
tree | 36d534722eccc9ea03144eb42bf6104bf1dd294e /src/vnet/mfib/ip4_mfib.h | |
parent | 72454dd4c5196594b366883bbf732c9e067c64ec (diff) |
Include allocated table memory in 'sh fib mem' output
DBGvpp# sh fib mem
FIB memory
Tables:
SAFI Number Bytes
IPv4 unicast 2 673066
IPv6 unicast 2 1054608
MPLS 1 4194312
IPv4 multicast 2 2322
IPv6 multicast 2 ???
Nodes:
Name Size in-use /allocated totals
Entry 96 20 / 20 1920/1920
Entry Source 32 0 / 0 0/0
Entry Path-Extensions 60 0 / 0 0/0
multicast-Entry 192 12 / 12 2304/2304
Path-list 40 28 / 28 1120/1120
uRPF-list 16 20 / 20 320/320
Path 72 28 / 28 2016/2016
Node-list elements 20 28 / 28 560/560
Node-list heads 8 30 / 30 240/240
Change-Id: I8c8f6f1c87502a40265bf4f302d0daef111a4a4e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/mfib/ip4_mfib.h')
-rw-r--r-- | src/vnet/mfib/ip4_mfib.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vnet/mfib/ip4_mfib.h b/src/vnet/mfib/ip4_mfib.h index e31fb744b9b..7767d795cad 100644 --- a/src/vnet/mfib/ip4_mfib.h +++ b/src/vnet/mfib/ip4_mfib.h @@ -98,8 +98,13 @@ extern u32 ip4_mfib_table_get_index_for_sw_if_index(u32 sw_if_index); * @param fn The function to invoke on each entry visited * @param ctx A context passed in the visit function */ -extern void ip4_mfib_table_walk (ip4_mfib_t *mfib, - mfib_table_walk_fn_t fn, - void *ctx); +extern void ip4_mfib_table_walk(ip4_mfib_t *mfib, + mfib_table_walk_fn_t fn, + void *ctx); + +/** + * @brief format (display) the memory usage for IP4 mfibs + */ +extern u8 * format_ip4_mfib_table_memory(u8 * s, va_list * args); #endif |