summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan-gpe/vxlan_gpe.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-05-22 09:20:20 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2017-05-24 19:48:43 +0000
commit630198f04916deb35c5b7774823ae1a5dd168a6c (patch)
tree093682c49f0a3a7e114d52abb77a5f85bdb7a7b0 /src/vnet/vxlan-gpe/vxlan_gpe.c
parent31426c6fee43caf18602a2a7e2ce32c3dda75a29 (diff)
IPv6 Performance bugs
- inline the FIB lookup function; this requires access to the bihash, so for files that use more than one type this casues problems. those files that include ip6_fib.h unnecessarily have been updated - better use of the feature arcs. ip6-lookup and interface-output are now sentinels (end-node-index in the cm speak) rather than enabled features. Change-Id: I9d1375fee63f7dbb2d327da6124d8e60b63367ec Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/vxlan-gpe/vxlan_gpe.c')
-rw-r--r--src/vnet/vxlan-gpe/vxlan_gpe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/vxlan-gpe/vxlan_gpe.c b/src/vnet/vxlan-gpe/vxlan_gpe.c
index 2cba596f097..1e674085880 100644
--- a/src/vnet/vxlan-gpe/vxlan_gpe.c
+++ b/src/vnet/vxlan-gpe/vxlan_gpe.c
@@ -490,9 +490,9 @@ vxlan_gpe_add_del_tunnel_command_fn (vlib_main_t * vm,
else if (unformat (line_input, "encap-vrf-id %d", &tmp))
{
if (ipv6_set)
- encap_fib_index = ip6_fib_index_from_table_id (tmp);
+ encap_fib_index = fib_table_find (FIB_PROTOCOL_IP6, tmp);
else
- encap_fib_index = ip4_fib_index_from_table_id (tmp);
+ encap_fib_index = fib_table_find (FIB_PROTOCOL_IP4, tmp);
if (encap_fib_index == ~0)
{
@@ -503,9 +503,9 @@ vxlan_gpe_add_del_tunnel_command_fn (vlib_main_t * vm,
else if (unformat (line_input, "decap-vrf-id %d", &tmp))
{
if (ipv6_set)
- decap_fib_index = ip6_fib_index_from_table_id (tmp);
+ decap_fib_index = fib_table_find (FIB_PROTOCOL_IP6, tmp);
else
- decap_fib_index = ip4_fib_index_from_table_id (tmp);
+ decap_fib_index = fib_table_find (FIB_PROTOCOL_IP4, tmp);
if (decap_fib_index == ~0)
{