From 7854b46f7789aae662f01fc29f4dd222a67bfe3d Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Mon, 16 Aug 2021 16:13:40 +0200 Subject: interface: fix init fib_index_by_sw_if_index Type: fix The init of fib_index_by_sw_if_index wasn't setting default value to 0. Which we now need for setting interfaces unnumbered Change-Id: Ie5be9b5e5373ef055557a871ad4d1c45fbfc1dee Signed-off-by: Nathan Skrzypczak --- src/vnet/interface_api.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/vnet/interface_api.c') diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index f9e03b9f1ea..80a3058303c 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -518,9 +518,6 @@ ip_table_bind (fib_protocol_t fproto, })); /* *INDENT-ON* */ - vec_validate (ip6_main.fib_index_by_sw_if_index, sw_if_index); - vec_validate (ip6_main.mfib_index_by_sw_if_index, sw_if_index); - /* * tell those that are interested that the binding is changing. */ @@ -566,9 +563,6 @@ ip_table_bind (fib_protocol_t fproto, })); /* *INDENT-ON* */ - vec_validate (ip4_main.fib_index_by_sw_if_index, sw_if_index); - vec_validate (ip4_main.mfib_index_by_sw_if_index, sw_if_index); - /* * tell those that are interested that the binding is changing. */ -- cgit 1.2.3-korg