From 735f8793bf3e8ad37c7e608663283b7d89b7101d Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Thu, 1 Feb 2018 11:19:29 -0600 Subject: FIB: Consolidate several copies of fib_ip_proto() into one. Rather than having multiple copies of the same function scattered around, promote the function into the FIB PROTOCOL definitions in fib_types.h. Change-Id: I11c4d85931167d3a5f3dc1278afecc8845b23cd7 Signed-off-by: Jon Loeliger --- src/vnet/vxlan-gpe/vxlan_gpe.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/vnet/vxlan-gpe/vxlan_gpe.c') diff --git a/src/vnet/vxlan-gpe/vxlan_gpe.c b/src/vnet/vxlan-gpe/vxlan_gpe.c index af5dd190693..ceec2529063 100644 --- a/src/vnet/vxlan-gpe/vxlan_gpe.c +++ b/src/vnet/vxlan-gpe/vxlan_gpe.c @@ -456,12 +456,6 @@ mcast_shared_remove (ip46_address_t * remote) hash_unset_mem_free (&vxlan_gpe_main.mcast_shared, remote); } -static inline fib_protocol_t -fib_ip_proto (bool is_ip6) -{ - return (is_ip6) ? FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4; -} - /** * @brief Add or Del a VXLAN GPE tunnel * -- cgit 1.2.3-korg