X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Fmfib%2Fmfib_table.h;h=6be4f798cd7b33a7f0a74663abb76cf8d07ba900;hp=89f194f254ebcf1968c8bade8ed374cee6641310;hb=775f73c;hpb=a3aaa61e2f2fd81f9653cb678b38519e96e6c6cd diff --git a/src/vnet/mfib/mfib_table.h b/src/vnet/mfib/mfib_table.h index 89f194f254e..6be4f798cd7 100644 --- a/src/vnet/mfib/mfib_table.h +++ b/src/vnet/mfib/mfib_table.h @@ -289,6 +289,21 @@ extern void mfib_table_flush(u32 fib_index, extern u32 mfib_table_get_index_for_sw_if_index(fib_protocol_t proto, u32 sw_if_index); +/** + * @brief + * Get the Table-ID of the FIB from protocol and index + * + * @param fib_index + * The FIB index + * + * @paran proto + * The protocol of the FIB (and thus the entries therein) + * + * @return fib_index + * The tableID of the FIB + */ +extern u32 mfib_table_get_table_id(u32 fib_index, fib_protocol_t proto); + /** * @brief * Get the index of the FIB for a Table-ID. This DOES NOT create the