summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajith P R <rajith@rtbrick.com>2022-02-12 12:15:23 +0530
committerNeale Ranns <neale@graphiant.com>2022-02-14 08:19:50 +0000
commitdd8a272e9fda20e034e508485282be14a5880b35 (patch)
tree96aef2d593e317989d62ffb049f9da2177ae2084
parentcfcc42e2904fbc55175a9075c543d43131dc9090 (diff)
fib: fix incorrect display of mpls fib_index
Type: fix Signed-off-by: Rajith P R <rajith@rtbrick.com> Change-Id: I8c9c85081c27bfe7ee71b5b620a2a761e027789c
-rw-r--r--src/vnet/fib/mpls_fib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/fib/mpls_fib.c b/src/vnet/fib/mpls_fib.c
index 34369fc000e..5dcd70b4c53 100644
--- a/src/vnet/fib/mpls_fib.c
+++ b/src/vnet/fib/mpls_fib.c
@@ -451,7 +451,7 @@ mpls_fib_show (vlib_main_t * vm,
continue;
s = format (s, "%v, fib_index:%d locks:[",
- fib_table->ft_desc, mpls_main.fibs - fib_table);
+ fib_table->ft_desc, fib_table - mpls_main.fibs);
vec_foreach_index(source, fib_table->ft_locks)
{
if (0 != fib_table->ft_locks[source])