Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fib: fib api updates
[vpp.git]
/
src
/
vnet
/
bier
/
bier_fmask.h
diff --git
a/src/vnet/bier/bier_fmask.h
b/src/vnet/bier/bier_fmask.h
index
56930f6
..
87845bb
100644
(file)
--- a/
src/vnet/bier/bier_fmask.h
+++ b/
src/vnet/bier/bier_fmask.h
@@
-19,10
+19,10
@@
* egress towards the next-hop. As such the fmask is part of the rewrite
* (adj) for that next-hop. It it thus an extension of the next-hop and in
* no way associated with the bit-position(s) that are reachable through it.
* egress towards the next-hop. As such the fmask is part of the rewrite
* (adj) for that next-hop. It it thus an extension of the next-hop and in
* no way associated with the bit-position(s) that are reachable through it.
- * Fmasks are thus shared by bit-positions that egress through
t
the same
+ * Fmasks are thus shared by bit-positions that egress through the same
* nh (BFR-NBR).
* nh (BFR-NBR).
- * Deag fmasks are also sh
rea
d in the event that a router has local
- * bit-positions. This is necessary to prevent the router rec
ie
ving two copies
+ * Deag fmasks are also sh
are
d in the event that a router has local
+ * bit-positions. This is necessary to prevent the router rec
ei
ving two copies
* of each packet. Consequently it also means that they share the same
* disposition data for the global data.
*/
* of each packet. Consequently it also means that they share the same
* disposition data for the global data.
*/
@@
-163,11
+163,15
@@
extern u32 bier_fmask_child_add (fib_node_index_t fib_entry_index,
fib_node_index_t child_index);
extern void bier_fmask_child_remove (fib_node_index_t fib_entry_index,
u32 sibling_index);
fib_node_index_t child_index);
extern void bier_fmask_child_remove (fib_node_index_t fib_entry_index,
u32 sibling_index);
+extern void bier_fmask_get_stats (index_t bfmi, u64 * packets, u64 * bytes);
+extern void bier_fmask_encode (index_t bfmi,
+ bier_table_id_t *btid,
+ fib_route_path_t *rpath);
/*
* provided for fast data-path access
*/
/*
* provided for fast data-path access
*/
-bier_fmask_t *bier_fmask_pool;
+
extern
bier_fmask_t *bier_fmask_pool;
static inline bier_fmask_t *
bier_fmask_get (u32 index)
static inline bier_fmask_t *
bier_fmask_get (u32 index)