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: encode the label stack in the FIB path during table dump
[vpp.git]
/
src
/
vnet
/
mfib
/
mfib_table.c
diff --git
a/src/vnet/mfib/mfib_table.c
b/src/vnet/mfib/mfib_table.c
index
8ae4a78
..
68154b3
100644
(file)
--- a/
src/vnet/mfib/mfib_table.c
+++ b/
src/vnet/mfib/mfib_table.c
@@
-489,6
+489,17
@@
mfib_table_get_index_for_sw_if_index (fib_protocol_t proto,
return (~0);
}
return (~0);
}
+u32
+mfib_table_get_table_id (u32 fib_index,
+ fib_protocol_t proto)
+{
+ mfib_table_t *mfib_table;
+
+ mfib_table = mfib_table_get(fib_index, proto);
+
+ return ((NULL != mfib_table ? mfib_table->mft_table_id : ~0));
+}
+
u32
mfib_table_find (fib_protocol_t proto,
u32 table_id)
u32
mfib_table_find (fib_protocol_t proto,
u32 table_id)