teib: use nexthop table id 33/35933/1
authorBenoît Ganne <bganne@cisco.com>
Mon, 11 Apr 2022 08:45:43 +0000 (10:45 +0200)
committerBenoît Ganne <bganne@cisco.com>
Mon, 11 Apr 2022 17:03:42 +0000 (19:03 +0200)
Use the specified nexthop table id instead of the interface table id.

Type: fix

Change-Id: I61bf61d50d2716fcd9a6e35df4d60222dc4f36d5
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/teib/teib.c

index dc0c99b..2edb18c 100644 (file)
@@ -225,9 +225,6 @@ teib_entry_add (u32 sw_if_index,
        .tk_sw_if_index = sw_if_index,
       };
       teib_entry_t *te;
-      u32 fib_index;
-
-      fib_index = fib_table_get_index_for_sw_if_index (nh_proto, sw_if_index);
 
       pool_get_zero (teib_pool, te);