aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-23 11:58:48 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-07-02 07:41:32 +0000
commite40e7542a9fbafd96dac823e7005ec4fb96b6b87 (patch)
treec88b6008c75f28b778d184f8c5311a37134e0625
parenta57a7005d6c04029d168cfdd053f3e334b935cc3 (diff)
misc: Don't IPv[46] enable local0, it doesn't receive packets.
Type: improvement local0 exists just to burn sw_if_index=0 so we catch common API errors. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I2901bb7d36d4c512e6698134a807bf9516ee05db
-rw-r--r--src/vnet/misc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/vnet/misc.c b/src/vnet/misc.c
index cd8bd788038..18d4651cff3 100644
--- a/src/vnet/misc.c
+++ b/src/vnet/misc.c
@@ -86,11 +86,6 @@ vnet_main_init (vlib_main_t * vm)
vnm->local_interface_hw_if_index = hw_if_index;
vnm->local_interface_sw_if_index = hw->sw_if_index;
- /* the local interface is used as an input interface when decapping from
- * an IPSEC tunnel. so it needs to be IP enabled */
- ip4_sw_interface_enable_disable (hw->sw_if_index, 1);
- ip6_sw_interface_enable_disable (hw->sw_if_index, 1);
-
return 0;
}