X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fadj%2Fadj_midchain.h;h=85294122f0884874f8f5d3c0a9fbe46e6467c11b;hb=2c77ae484;hp=1f5deaecd9582422fbd6db90e724644ab8e0e4ed;hpb=4c3ba81709bab8f9fcdef650e7f742fe9ddbae32;p=vpp.git diff --git a/src/vnet/adj/adj_midchain.h b/src/vnet/adj/adj_midchain.h index 1f5deaecd95..85294122f08 100644 --- a/src/vnet/adj/adj_midchain.h +++ b/src/vnet/adj/adj_midchain.h @@ -50,6 +50,27 @@ extern void adj_nbr_midchain_update_rewrite(adj_index_t adj_index, adj_flags_t flags, u8 *rewrite); +/** + * @brief + * Return the adjacency's next node to its default value + * + * @param adj_index + * The index of the neighbour adjacency. + */ +extern void adj_nbr_midchain_reset_next_node(adj_index_t adj_index); + +/** + * @brief + * Update the VLIB node to which packets are sent post processing + * + * @param adj_index + * The index of the neighbour adjacency. + * + * @param node node-index to send to + */ +extern void adj_nbr_midchain_update_next_node(adj_index_t adj_index, + u32 node_index); + /** * @brief * [re]stack a midchain. 'Stacking' is the act of forming parent-child @@ -78,7 +99,7 @@ extern void adj_nbr_midchain_stack(adj_index_t adj_index, * The FIB entry to stack on * * @param fct - * The chain type to use from the fib entry fowarding + * The chain type to use from the fib entry forwarding */ extern void adj_nbr_midchain_stack_on_fib_entry(adj_index_t adj_index, fib_node_index_t fei, @@ -139,4 +160,6 @@ extern void adj_midchain_delegate_restack(adj_index_t ai); */ extern void adj_midchain_delegate_unstack(adj_index_t ai); +extern u8 adj_is_midchain (adj_index_t ai); + #endif