Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | /* |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 2 | * Copyright (c) 2016 Cisco and/or its affiliates. |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at: |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 15 | /** |
| 16 | * @file |
| 17 | * @brief LISP-GPE definitions. |
| 18 | */ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 19 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | #ifndef included_vnet_lisp_gpe_h |
| 21 | #define included_vnet_lisp_gpe_h |
| 22 | |
| 23 | #include <vppinfra/error.h> |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 24 | #include <vppinfra/mhash.h> |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 25 | #include <vnet/vnet.h> |
| 26 | #include <vnet/ip/ip.h> |
| 27 | #include <vnet/l2/l2_input.h> |
| 28 | #include <vnet/ethernet/ethernet.h> |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 29 | #include <vnet/ip/ip4_packet.h> |
| 30 | #include <vnet/ip/udp.h> |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 31 | #include <vnet/lisp-cp/lisp_types.h> |
| 32 | #include <vnet/lisp-gpe/lisp_gpe_packet.h> |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 33 | #include <vnet/adj/adj_types.h> |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 34 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 35 | /** IP4-UDP-LISP encap header */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 36 | /* *INDENT-OFF* */ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 37 | typedef CLIB_PACKED (struct { |
| 38 | ip4_header_t ip4; /* 20 bytes */ |
| 39 | udp_header_t udp; /* 8 bytes */ |
| 40 | lisp_gpe_header_t lisp; /* 8 bytes */ |
| 41 | }) ip4_udp_lisp_gpe_header_t; |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 42 | /* *INDENT-ON* */ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 43 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 44 | /** IP6-UDP-LISP encap header */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 45 | /* *INDENT-OFF* */ |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 46 | typedef CLIB_PACKED (struct { |
| 47 | ip6_header_t ip6; /* 40 bytes */ |
| 48 | udp_header_t udp; /* 8 bytes */ |
| 49 | lisp_gpe_header_t lisp; /* 8 bytes */ |
| 50 | }) ip6_udp_lisp_gpe_header_t; |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 51 | /* *INDENT-ON* */ |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 52 | |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 53 | #define foreach_lisp_gpe_ip_input_next \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 54 | _(DROP, "error-drop") \ |
| 55 | _(IP4_INPUT, "ip4-input") \ |
| 56 | _(IP6_INPUT, "ip6-input") \ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 57 | _(L2_INPUT, "l2-input") |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 58 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 59 | /** Enum of possible next nodes post LISP-GPE decap */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 60 | typedef enum |
| 61 | { |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 62 | #define _(s,n) LISP_GPE_INPUT_NEXT_##s, |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 63 | foreach_lisp_gpe_ip_input_next |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 64 | #undef _ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 65 | LISP_GPE_INPUT_N_NEXT, |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 66 | } lisp_gpe_input_next_t; |
| 67 | |
Florin Coras | 263440e | 2017-02-22 23:38:08 -0800 | [diff] [blame^] | 68 | /* Arc to nsh-input added only if nsh-input exists */ |
| 69 | #define LISP_GPE_INPUT_NEXT_NSH_INPUT 4 |
| 70 | |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 71 | typedef enum |
| 72 | { |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 73 | #define lisp_gpe_error(n,s) LISP_GPE_ERROR_##n, |
| 74 | #include <vnet/lisp-gpe/lisp_gpe_error.def> |
| 75 | #undef lisp_gpe_error |
| 76 | LISP_GPE_N_ERROR, |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 77 | } lisp_gpe_error_t; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 78 | |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 79 | typedef struct tunnel_lookup |
| 80 | { |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 81 | /** Lookup lisp-gpe interfaces by dp table (eg. vrf/bridge index) */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 82 | uword *hw_if_index_by_dp_table; |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 83 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 84 | /** lookup decap tunnel termination sw_if_index by vni and vice versa */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 85 | uword *sw_if_index_by_vni; |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 86 | |
| 87 | // FIXME - Need this? |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 88 | uword *vni_by_sw_if_index; |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 89 | } tunnel_lookup_t; |
| 90 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 91 | /** LISP-GPE global state*/ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 92 | typedef struct lisp_gpe_main |
| 93 | { |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 94 | /** |
| 95 | * @brief DB of all forwarding entries. The Key is:{l-EID,r-EID,vni} |
| 96 | * where the EID encodes L2 or L3 |
| 97 | */ |
| 98 | uword *lisp_gpe_fwd_entries; |
| 99 | |
| 100 | /** |
| 101 | * @brief A Pool of all LISP forwarding entries |
| 102 | */ |
| 103 | struct lisp_gpe_fwd_entry_t_ *lisp_fwd_entry_pool; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 104 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 105 | /** Free vlib hw_if_indices */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 106 | u32 *free_tunnel_hw_if_indices; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 107 | |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 108 | u8 is_en; |
| 109 | |
| 110 | /* L3 data structures |
| 111 | * ================== */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 112 | tunnel_lookup_t l3_ifaces; |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 113 | |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 114 | /* L2 data structures |
| 115 | * ================== */ |
| 116 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 117 | /** L2 LISP FIB */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 118 | BVT (clib_bihash) l2_fib; |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 119 | |
| 120 | tunnel_lookup_t l2_ifaces; |
| 121 | |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 122 | /** Load-balance for a miss in the table */ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 123 | dpo_id_t l2_lb_cp_lkup; |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 124 | |
Florin Coras | ce1b4c7 | 2017-01-26 14:25:34 -0800 | [diff] [blame] | 125 | /* NSH data structures |
| 126 | * ================== */ |
| 127 | |
| 128 | BVT (clib_bihash) nsh_fib; |
| 129 | |
| 130 | tunnel_lookup_t nsh_ifaces; |
| 131 | |
| 132 | const dpo_id_t *nsh_cp_lkup; |
| 133 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 134 | /** convenience */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 135 | vlib_main_t *vlib_main; |
| 136 | vnet_main_t *vnet_main; |
| 137 | ip4_main_t *im4; |
| 138 | ip6_main_t *im6; |
| 139 | ip_lookup_main_t *lm4; |
| 140 | ip_lookup_main_t *lm6; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 141 | } lisp_gpe_main_t; |
| 142 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 143 | /** LISP-GPE global state*/ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 144 | lisp_gpe_main_t lisp_gpe_main; |
| 145 | |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 146 | always_inline lisp_gpe_main_t * |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 147 | vnet_lisp_gpe_get_main () |
| 148 | { |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 149 | return &lisp_gpe_main; |
| 150 | } |
| 151 | |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 152 | |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 153 | extern vlib_node_registration_t lisp_gpe_ip4_input_node; |
| 154 | extern vlib_node_registration_t lisp_gpe_ip6_input_node; |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 155 | extern vnet_hw_interface_class_t lisp_gpe_hw_class; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 156 | |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 157 | u8 *format_lisp_gpe_header_with_length (u8 * s, va_list * args); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 158 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 159 | /** Read LISP-GPE status */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 160 | u8 vnet_lisp_gpe_enable_disable_status (void); |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 161 | |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 162 | u32 |
| 163 | lisp_gpe_l3_iface_find_or_create (lisp_gpe_main_t * lgm, |
| 164 | u32 overlay_table_id, u32 vni); |
| 165 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 166 | /** Add/del LISP-GPE interface. */ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 167 | extern void lisp_gpe_del_l2_iface (lisp_gpe_main_t * lgm, u32 vni, u32 bd_id); |
| 168 | extern u32 lisp_gpe_add_l2_iface (lisp_gpe_main_t * lgm, u32 vni, u32 bd_id); |
| 169 | extern void lisp_gpe_del_l3_iface (lisp_gpe_main_t * lgm, u32 vni, u32 bd_id); |
| 170 | extern u32 lisp_gpe_add_l3_iface (lisp_gpe_main_t * lgm, u32 vni, u32 bd_id); |
| 171 | |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 172 | |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 173 | typedef struct |
| 174 | { |
| 175 | u8 is_en; |
| 176 | } vnet_lisp_gpe_enable_disable_args_t; |
| 177 | |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 178 | clib_error_t |
| 179 | * vnet_lisp_gpe_enable_disable (vnet_lisp_gpe_enable_disable_args_t * a); |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 180 | |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 181 | typedef enum |
| 182 | { |
| 183 | NO_ACTION, |
| 184 | FORWARD_NATIVE, |
| 185 | SEND_MAP_REQUEST, |
| 186 | DROP |
| 187 | } negative_fwd_actions_e; |
| 188 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 189 | /** */ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 190 | typedef struct |
| 191 | { |
| 192 | u8 is_add; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 193 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 194 | /** type of mapping */ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 195 | u8 is_negative; |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 196 | |
| 197 | /** action for negative mappings */ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 198 | negative_fwd_actions_e action; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 199 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 200 | /** local eid */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 201 | gid_address_t lcl_eid; |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 202 | |
| 203 | /** remote eid */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 204 | gid_address_t rmt_eid; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 205 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 206 | /** vector of locator pairs */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 207 | locator_pair_t *locator_pairs; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 208 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 209 | /** FIB index to lookup remote locator at encap */ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 210 | u32 encap_fib_index; |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 211 | |
| 212 | /** FIB index to lookup inner IP at decap */ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 213 | u32 decap_fib_index; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 214 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 215 | /* TODO remove */ |
| 216 | u32 decap_next_index; |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 217 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 218 | /** VNI/tenant id in HOST byte order */ |
Florin Coras | ed09a05 | 2016-05-06 14:22:40 +0200 | [diff] [blame] | 219 | u32 vni; |
| 220 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 221 | /** vrf or bd where fwd entry should be inserted */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 222 | union |
| 223 | { |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 224 | /** table (vrf) id */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 225 | u32 table_id; |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 226 | |
| 227 | /** bridge domain id */ |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 228 | u16 bd_id; |
Florin Coras | 429e795 | 2016-08-02 02:31:03 +0200 | [diff] [blame] | 229 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 230 | /** generic access */ |
Florin Coras | 429e795 | 2016-08-02 02:31:03 +0200 | [diff] [blame] | 231 | u32 dp_table; |
Florin Coras | 1a1adc7 | 2016-07-22 01:45:30 +0200 | [diff] [blame] | 232 | }; |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 233 | } vnet_lisp_gpe_add_del_fwd_entry_args_t; |
| 234 | |
Filip Tehlar | 5fae99c | 2017-01-18 12:57:37 +0100 | [diff] [blame] | 235 | typedef struct |
| 236 | { |
| 237 | u32 fwd_entry_index; |
| 238 | u32 dp_table; |
| 239 | u32 vni; |
| 240 | dp_address_t leid; |
| 241 | dp_address_t reid; |
| 242 | } lisp_api_gpe_fwd_entry_t; |
| 243 | |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 244 | #define foreach_lgpe_ip4_lookup_next \ |
| 245 | _(DROP, "error-drop") \ |
| 246 | _(LISP_CP_LOOKUP, "lisp-cp-lookup") |
| 247 | |
| 248 | typedef enum lgpe_ip4_lookup_next |
| 249 | { |
| 250 | #define _(sym,str) LGPE_IP4_LOOKUP_NEXT_##sym, |
| 251 | foreach_lgpe_ip4_lookup_next |
| 252 | #undef _ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 253 | LGPE_IP4_LOOKUP_N_NEXT, |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 254 | } lgpe_ip4_lookup_next_t; |
| 255 | |
Florin Coras | ff0bf13 | 2016-09-05 19:30:35 +0200 | [diff] [blame] | 256 | #define foreach_lgpe_ip6_lookup_next \ |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 257 | _(DROP, "error-drop") \ |
| 258 | _(LISP_CP_LOOKUP, "lisp-cp-lookup") |
| 259 | |
| 260 | typedef enum lgpe_ip6_lookup_next |
| 261 | { |
| 262 | #define _(sym,str) LGPE_IP6_LOOKUP_NEXT_##sym, |
| 263 | foreach_lgpe_ip6_lookup_next |
| 264 | #undef _ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 265 | LGPE_IP6_LOOKUP_N_NEXT, |
Florin Coras | 02655bd | 2016-04-26 00:17:24 +0200 | [diff] [blame] | 266 | } lgpe_ip6_lookup_next_t; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 267 | |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 268 | u8 *format_vnet_lisp_gpe_status (u8 * s, va_list * args); |
Filip Tehlar | 46d4e36 | 2016-05-09 09:39:26 +0200 | [diff] [blame] | 269 | |
Filip Tehlar | 5fae99c | 2017-01-18 12:57:37 +0100 | [diff] [blame] | 270 | lisp_api_gpe_fwd_entry_t *vnet_lisp_gpe_fwd_entries_get_by_vni (u32 vni); |
| 271 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 272 | #endif /* included_vnet_lisp_gpe_h */ |
Florin Coras | 220beac | 2016-08-16 23:04:00 +0200 | [diff] [blame] | 273 | |
| 274 | /* |
| 275 | * fd.io coding-style-patch-verification: ON |
| 276 | * |
| 277 | * Local Variables: |
| 278 | * eval: (c-set-style "gnu") |
| 279 | * End: |
| 280 | */ |