Improve tunnel interface creation performance 16/10216/4
authorJohn Lo <loj@cisco.com>
Wed, 24 Jan 2018 00:21:34 +0000 (19:21 -0500)
committerDave Barach <openvpp@barachs.net>
Wed, 24 Jan 2018 13:56:45 +0000 (13:56 +0000)
commite5453d0fa29f39a7f78a7e22815566a7f4c9e5ef
tree805b3d5ad2ca314a99d9460b202c483b4ae5550a
parentd95c39e87bf9d21b2a9d4c49fdf7ebca2a5eab3d
Improve tunnel interface creation performance

Modify interface creation to allow creation of tunnel interfaces
without dedicated per tunnel output and tx nodes which are not
used for most tunnel types. Also changed interface-output node
function vnet_per_buffer_interface_output() so it does not rely
on hw_if_index as the next node index which is not flexible nor
efficient for large scale tunnel interfaces.

The improvenemts are done for VXLAN, VXLAN-GPE, GENEVE and GTPU
tunnels. GRE tunnel is still using per tunnel output nodes which
will be changed in a separate patch with other GRE enhencements.

Change-Id: I4123c01c0d2ead814417a867adb8c8a407e4df55
Signed-off-by: John Lo <loj@cisco.com>
src/plugins/gtpu/gtpu.c
src/vnet/geneve/geneve.c
src/vnet/interface.c
src/vnet/interface.h
src/vnet/interface_funcs.h
src/vnet/interface_output.c
src/vnet/vxlan-gpe/vxlan_gpe.c
src/vnet/vxlan/vxlan.c