X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fbier%2Fbier_fmask.h;h=e522b0350e78047642dbbbe62eca47c6117e9de7;hb=b00b510cd09418c266c515319a3ecdff42be7b5c;hp=81b3923f54ccd3af9bab2da77e4b1bb2869618d4;hpb=9128637ee8f7b0d903551f165a1447d427e8dd19;p=vpp.git diff --git a/src/vnet/bier/bier_fmask.h b/src/vnet/bier/bier_fmask.h index 81b3923f54c..e522b0350e7 100644 --- 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. - * Fmasks are thus shared by bit-positions that egress throught the same + * Fmasks are thus shared by bit-positions that egress through the same * nh (BFR-NBR). - * Deag fmasks are also shread in the event that a router has local - * bit-positions. This is necessary to prevent the router recieving two copies + * Deag fmasks are also shared in the event that a router has local + * bit-positions. This is necessary to prevent the router receiving two copies * of each packet. Consequently it also means that they share the same * disposition data for the global data. */ @@ -97,6 +97,11 @@ typedef enum bier_fmask_flags_t_ * for the next lookup */ typedef struct bier_fmask_t_ { + /** + * Required for pool_get_aligned + */ + CLIB_CACHE_LINE_ALIGN_MARK(cacheline0); + /** * The BIER fmask is a child of a FIB entry in the FIB graph. */ @@ -158,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); +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_encode_t *rpath); /* * 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)