blob: 104fcd15b8599542b0607a39cff55b2c69166048 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
2 * l2_input_acl.c : layer 2 input acl processing
3 *
4 * Copyright (c) 2013 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#include <vlib/vlib.h>
19#include <vnet/vnet.h>
20#include <vnet/pg/pg.h>
21#include <vnet/ethernet/ethernet.h>
22#include <vnet/ethernet/packet.h>
23#include <vnet/ip/ip_packet.h>
24#include <vnet/ip/ip4_packet.h>
25#include <vnet/ip/ip6_packet.h>
26#include <vlib/cli.h>
27#include <vnet/l2/l2_input.h>
28#include <vnet/l2/feat_bitmap.h>
29
30#include <vppinfra/error.h>
31#include <vppinfra/hash.h>
32#include <vppinfra/cache.h>
33
34#include <vnet/classify/vnet_classify.h>
35#include <vnet/classify/input_acl.h>
36
Dave Barach97d8dc22016-08-15 15:31:15 -040037typedef struct
38{
Ed Warnickecb9cada2015-12-08 15:45:58 -070039
Dave Barach97d8dc22016-08-15 15:31:15 -040040 /* Next nodes for each feature */
Ed Warnickecb9cada2015-12-08 15:45:58 -070041 u32 feat_next_node_index[32];
42
43 /* convenience variables */
Dave Barach97d8dc22016-08-15 15:31:15 -040044 vlib_main_t *vlib_main;
45 vnet_main_t *vnet_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -070046} l2_inacl_main_t;
47
Dave Barach97d8dc22016-08-15 15:31:15 -040048typedef struct
49{
Ed Warnickecb9cada2015-12-08 15:45:58 -070050 u32 sw_if_index;
51 u32 next_index;
52 u32 table_index;
53 u32 offset;
54} l2_inacl_trace_t;
55
56/* packet trace format function */
Dave Barach97d8dc22016-08-15 15:31:15 -040057static u8 *
58format_l2_inacl_trace (u8 * s, va_list * args)
Ed Warnickecb9cada2015-12-08 15:45:58 -070059{
60 CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
61 CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
Dave Barach97d8dc22016-08-15 15:31:15 -040062 l2_inacl_trace_t *t = va_arg (*args, l2_inacl_trace_t *);
63
Ed Warnickecb9cada2015-12-08 15:45:58 -070064 s = format (s, "INACL: sw_if_index %d, next_index %d, table %d, offset %d",
65 t->sw_if_index, t->next_index, t->table_index, t->offset);
66 return s;
67}
68
69l2_inacl_main_t l2_inacl_main;
70
71static vlib_node_registration_t l2_inacl_node;
72
73#define foreach_l2_inacl_error \
74_(NONE, "valid input ACL packets") \
75_(MISS, "input ACL misses") \
76_(HIT, "input ACL hits") \
77_(CHAIN_HIT, "input ACL hits after chain walk") \
78_(TABLE_MISS, "input ACL table-miss drops") \
79_(SESSION_DENY, "input ACL session deny drops")
80
81
Dave Barach97d8dc22016-08-15 15:31:15 -040082typedef enum
83{
Ed Warnickecb9cada2015-12-08 15:45:58 -070084#define _(sym,str) L2_INACL_ERROR_##sym,
85 foreach_l2_inacl_error
86#undef _
Dave Barach97d8dc22016-08-15 15:31:15 -040087 L2_INACL_N_ERROR,
Ed Warnickecb9cada2015-12-08 15:45:58 -070088} l2_inacl_error_t;
89
Dave Barach97d8dc22016-08-15 15:31:15 -040090static char *l2_inacl_error_strings[] = {
Ed Warnickecb9cada2015-12-08 15:45:58 -070091#define _(sym,string) string,
92 foreach_l2_inacl_error
93#undef _
94};
95
96static uword
97l2_inacl_node_fn (vlib_main_t * vm,
Dave Barach97d8dc22016-08-15 15:31:15 -040098 vlib_node_runtime_t * node, vlib_frame_t * frame)
Ed Warnickecb9cada2015-12-08 15:45:58 -070099{
Dave Barach97d8dc22016-08-15 15:31:15 -0400100 u32 n_left_from, *from, *to_next;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700101 acl_next_index_t next_index;
Dave Barach97d8dc22016-08-15 15:31:15 -0400102 l2_inacl_main_t *msm = &l2_inacl_main;
103 input_acl_main_t *am = &input_acl_main;
104 vnet_classify_main_t *vcm = am->vnet_classify_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700105 input_acl_table_id_t tid = INPUT_ACL_TABLE_L2;
106 f64 now = vlib_time_now (vm);
107 u32 hits = 0;
108 u32 misses = 0;
109 u32 chain_hits = 0;
110
111 from = vlib_frame_vector_args (frame);
Dave Barach97d8dc22016-08-15 15:31:15 -0400112 n_left_from = frame->n_vectors; /* number of packets to process */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700113 next_index = node->cached_next_index;
114
115 /* First pass: compute hashes */
116 while (n_left_from > 2)
117 {
Dave Barach97d8dc22016-08-15 15:31:15 -0400118 vlib_buffer_t *b0, *b1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700119 u32 bi0, bi1;
Dave Barach97d8dc22016-08-15 15:31:15 -0400120 u8 *h0, *h1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700121 u32 sw_if_index0, sw_if_index1;
122 u32 table_index0, table_index1;
Dave Barach97d8dc22016-08-15 15:31:15 -0400123 vnet_classify_table_t *t0, *t1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700124
125 /* prefetch next iteration */
126 {
Dave Barach97d8dc22016-08-15 15:31:15 -0400127 vlib_buffer_t *p1, *p2;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700128
Dave Barach97d8dc22016-08-15 15:31:15 -0400129 p1 = vlib_get_buffer (vm, from[1]);
130 p2 = vlib_get_buffer (vm, from[2]);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700131
Dave Barach97d8dc22016-08-15 15:31:15 -0400132 vlib_prefetch_buffer_header (p1, STORE);
133 CLIB_PREFETCH (p1->data, CLIB_CACHE_LINE_BYTES, STORE);
134 vlib_prefetch_buffer_header (p2, STORE);
135 CLIB_PREFETCH (p2->data, CLIB_CACHE_LINE_BYTES, STORE);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700136 }
137
138 bi0 = from[0];
139 b0 = vlib_get_buffer (vm, bi0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700140
141 bi1 = from[1];
142 b1 = vlib_get_buffer (vm, bi1);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700143
144 sw_if_index0 = vnet_buffer (b0)->sw_if_index[VLIB_RX];
Dave Barach97d8dc22016-08-15 15:31:15 -0400145 table_index0 =
146 am->classify_table_index_by_sw_if_index[tid][sw_if_index0];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700147
148 sw_if_index1 = vnet_buffer (b1)->sw_if_index[VLIB_RX];
Dave Barach97d8dc22016-08-15 15:31:15 -0400149 table_index1 =
150 am->classify_table_index_by_sw_if_index[tid][sw_if_index1];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700151
152 t0 = pool_elt_at_index (vcm->tables, table_index0);
153
154 t1 = pool_elt_at_index (vcm->tables, table_index1);
155
Steve Shin25e26dc2016-11-08 10:47:10 -0800156 if (t0->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
157 h0 = (void *) vlib_buffer_get_current (b0) + t0->current_data_offset;
158 else
159 h0 = b0->data;
160
Dave Barach97d8dc22016-08-15 15:31:15 -0400161 vnet_buffer (b0)->l2_classify.hash =
162 vnet_classify_hash_packet (t0, (u8 *) h0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700163
Dave Barach97d8dc22016-08-15 15:31:15 -0400164 vnet_classify_prefetch_bucket (t0, vnet_buffer (b0)->l2_classify.hash);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700165
Steve Shin25e26dc2016-11-08 10:47:10 -0800166 if (t1->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
167 h1 = (void *) vlib_buffer_get_current (b1) + t1->current_data_offset;
168 else
169 h1 = b1->data;
170
Dave Barach97d8dc22016-08-15 15:31:15 -0400171 vnet_buffer (b1)->l2_classify.hash =
172 vnet_classify_hash_packet (t1, (u8 *) h1);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700173
Dave Barach97d8dc22016-08-15 15:31:15 -0400174 vnet_classify_prefetch_bucket (t1, vnet_buffer (b1)->l2_classify.hash);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700175
Dave Barach97d8dc22016-08-15 15:31:15 -0400176 vnet_buffer (b0)->l2_classify.table_index = table_index0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700177
Dave Barach97d8dc22016-08-15 15:31:15 -0400178 vnet_buffer (b1)->l2_classify.table_index = table_index1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700179
180 from += 2;
181 n_left_from -= 2;
182 }
183
184 while (n_left_from > 0)
185 {
Dave Barach97d8dc22016-08-15 15:31:15 -0400186 vlib_buffer_t *b0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700187 u32 bi0;
Dave Barach97d8dc22016-08-15 15:31:15 -0400188 u8 *h0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700189 u32 sw_if_index0;
190 u32 table_index0;
Dave Barach97d8dc22016-08-15 15:31:15 -0400191 vnet_classify_table_t *t0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700192
193 bi0 = from[0];
194 b0 = vlib_get_buffer (vm, bi0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700195
196 sw_if_index0 = vnet_buffer (b0)->sw_if_index[VLIB_RX];
Dave Barach97d8dc22016-08-15 15:31:15 -0400197 table_index0 =
198 am->classify_table_index_by_sw_if_index[tid][sw_if_index0];
Ed Warnickecb9cada2015-12-08 15:45:58 -0700199
200 t0 = pool_elt_at_index (vcm->tables, table_index0);
Steve Shin25e26dc2016-11-08 10:47:10 -0800201
202 if (t0->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
203 h0 = (void *) vlib_buffer_get_current (b0) + t0->current_data_offset;
204 else
205 h0 = b0->data;
206
Dave Barach97d8dc22016-08-15 15:31:15 -0400207 vnet_buffer (b0)->l2_classify.hash =
208 vnet_classify_hash_packet (t0, (u8 *) h0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700209
Dave Barach97d8dc22016-08-15 15:31:15 -0400210 vnet_buffer (b0)->l2_classify.table_index = table_index0;
211 vnet_classify_prefetch_bucket (t0, vnet_buffer (b0)->l2_classify.hash);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700212
213 from++;
214 n_left_from--;
215 }
216
217 next_index = node->cached_next_index;
218 from = vlib_frame_vector_args (frame);
219 n_left_from = frame->n_vectors;
220
221 while (n_left_from > 0)
222 {
223 u32 n_left_to_next;
224
Dave Barach97d8dc22016-08-15 15:31:15 -0400225 vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700226
227 /* Not enough load/store slots to dual loop... */
228 while (n_left_from > 0 && n_left_to_next > 0)
Dave Barach97d8dc22016-08-15 15:31:15 -0400229 {
230 u32 bi0;
231 vlib_buffer_t *b0;
232 u32 next0 = ACL_NEXT_INDEX_DENY;
233 u32 table_index0;
234 vnet_classify_table_t *t0;
235 vnet_classify_entry_t *e0;
236 u64 hash0;
237 u8 *h0;
238 u8 error0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700239
Dave Barach97d8dc22016-08-15 15:31:15 -0400240 /* Stride 3 seems to work best */
241 if (PREDICT_TRUE (n_left_from > 3))
242 {
243 vlib_buffer_t *p1 = vlib_get_buffer (vm, from[3]);
244 vnet_classify_table_t *tp1;
245 u32 table_index1;
246 u64 phash1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700247
Dave Barach97d8dc22016-08-15 15:31:15 -0400248 table_index1 = vnet_buffer (p1)->l2_classify.table_index;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700249
Dave Barach97d8dc22016-08-15 15:31:15 -0400250 if (PREDICT_TRUE (table_index1 != ~0))
251 {
252 tp1 = pool_elt_at_index (vcm->tables, table_index1);
253 phash1 = vnet_buffer (p1)->l2_classify.hash;
254 vnet_classify_prefetch_entry (tp1, phash1);
255 }
256 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700257
Dave Barach97d8dc22016-08-15 15:31:15 -0400258 /* speculatively enqueue b0 to the current next frame */
259 bi0 = from[0];
260 to_next[0] = bi0;
261 from += 1;
262 to_next += 1;
263 n_left_from -= 1;
264 n_left_to_next -= 1;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700265
Dave Barach97d8dc22016-08-15 15:31:15 -0400266 b0 = vlib_get_buffer (vm, bi0);
Steve Shin25e26dc2016-11-08 10:47:10 -0800267
Dave Barach97d8dc22016-08-15 15:31:15 -0400268 table_index0 = vnet_buffer (b0)->l2_classify.table_index;
269 e0 = 0;
270 t0 = 0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700271
Dave Barach97d8dc22016-08-15 15:31:15 -0400272 /* Feature bitmap update */
273 vnet_buffer (b0)->l2.feature_bitmap &= ~L2INPUT_FEAT_ACL;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700274
Dave Barach97d8dc22016-08-15 15:31:15 -0400275 vnet_buffer (b0)->l2_classify.opaque_index = ~0;
276 /* Determine the next node */
277 next0 = feat_bitmap_get_next_node_index (msm->feat_next_node_index,
278 vnet_buffer (b0)->
279 l2.feature_bitmap);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700280
Dave Barach97d8dc22016-08-15 15:31:15 -0400281 if (PREDICT_TRUE (table_index0 != ~0))
282 {
283 hash0 = vnet_buffer (b0)->l2_classify.hash;
284 t0 = pool_elt_at_index (vcm->tables, table_index0);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700285
Steve Shin25e26dc2016-11-08 10:47:10 -0800286 if (t0->current_data_flag == CLASSIFY_FLAG_USE_CURR_DATA)
287 h0 =
288 (void *) vlib_buffer_get_current (b0) +
289 t0->current_data_offset;
290 else
291 h0 = b0->data;
292
Dave Barach97d8dc22016-08-15 15:31:15 -0400293 e0 = vnet_classify_find_entry (t0, (u8 *) h0, hash0, now);
294 if (e0)
295 {
296 vnet_buffer (b0)->l2_classify.opaque_index
297 = e0->opaque_index;
298 vlib_buffer_advance (b0, e0->advance);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700299
Dave Barach97d8dc22016-08-15 15:31:15 -0400300 next0 = (e0->next_index < ACL_NEXT_INDEX_N_NEXT) ?
301 e0->next_index : next0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700302
Dave Barach97d8dc22016-08-15 15:31:15 -0400303 hits++;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700304
Dave Barach97d8dc22016-08-15 15:31:15 -0400305 error0 = (next0 == ACL_NEXT_INDEX_DENY) ?
306 L2_INACL_ERROR_SESSION_DENY : L2_INACL_ERROR_NONE;
307 b0->error = node->errors[error0];
308 }
309 else
310 {
311 while (1)
312 {
313 if (PREDICT_TRUE (t0->next_table_index != ~0))
314 t0 = pool_elt_at_index (vcm->tables,
315 t0->next_table_index);
316 else
317 {
318 next0 =
319 (t0->miss_next_index <
320 ACL_NEXT_INDEX_N_NEXT) ? t0->miss_next_index :
321 next0;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700322
Dave Barach97d8dc22016-08-15 15:31:15 -0400323 misses++;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700324
Dave Barach97d8dc22016-08-15 15:31:15 -0400325 error0 = (next0 == ACL_NEXT_INDEX_DENY) ?
326 L2_INACL_ERROR_TABLE_MISS : L2_INACL_ERROR_NONE;
327 b0->error = node->errors[error0];
328 break;
329 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700330
Steve Shin25e26dc2016-11-08 10:47:10 -0800331 if (t0->current_data_flag ==
332 CLASSIFY_FLAG_USE_CURR_DATA)
333 h0 =
334 (void *) vlib_buffer_get_current (b0) +
335 t0->current_data_offset;
336 else
337 h0 = b0->data;
338
Dave Barach97d8dc22016-08-15 15:31:15 -0400339 hash0 = vnet_classify_hash_packet (t0, (u8 *) h0);
340 e0 = vnet_classify_find_entry
341 (t0, (u8 *) h0, hash0, now);
342 if (e0)
343 {
344 vlib_buffer_advance (b0, e0->advance);
345 next0 = (e0->next_index < ACL_NEXT_INDEX_N_NEXT) ?
346 e0->next_index : next0;
347 hits++;
348 chain_hits++;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700349
Dave Barach97d8dc22016-08-15 15:31:15 -0400350 error0 = (next0 == ACL_NEXT_INDEX_DENY) ?
351 L2_INACL_ERROR_SESSION_DENY : L2_INACL_ERROR_NONE;
352 b0->error = node->errors[error0];
353 break;
354 }
355 }
356 }
357 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700358
Dave Barach97d8dc22016-08-15 15:31:15 -0400359 if (PREDICT_FALSE ((node->flags & VLIB_NODE_FLAG_TRACE)
360 && (b0->flags & VLIB_BUFFER_IS_TRACED)))
361 {
362 l2_inacl_trace_t *t =
363 vlib_add_trace (vm, node, b0, sizeof (*t));
364 t->sw_if_index = vnet_buffer (b0)->sw_if_index[VLIB_RX];
365 t->next_index = next0;
366 t->table_index = t0 ? t0 - vcm->tables : ~0;
367 t->offset = (t0 && e0) ? vnet_classify_get_offset (t0, e0) : ~0;
368 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700369
Dave Barach97d8dc22016-08-15 15:31:15 -0400370 /* verify speculative enqueue, maybe switch current next frame */
371 vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
372 to_next, n_left_to_next,
373 bi0, next0);
374 }
Ed Warnickecb9cada2015-12-08 15:45:58 -0700375
376 vlib_put_next_frame (vm, node, next_index, n_left_to_next);
377 }
378
379 vlib_node_increment_counter (vm, node->node_index,
Dave Barach97d8dc22016-08-15 15:31:15 -0400380 L2_INACL_ERROR_MISS, misses);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700381 vlib_node_increment_counter (vm, node->node_index,
Dave Barach97d8dc22016-08-15 15:31:15 -0400382 L2_INACL_ERROR_HIT, hits);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700383 vlib_node_increment_counter (vm, node->node_index,
Dave Barach97d8dc22016-08-15 15:31:15 -0400384 L2_INACL_ERROR_CHAIN_HIT, chain_hits);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700385 return frame->n_vectors;
386}
387
Dave Barach97d8dc22016-08-15 15:31:15 -0400388/* *INDENT-OFF* */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700389VLIB_REGISTER_NODE (l2_inacl_node,static) = {
390 .function = l2_inacl_node_fn,
391 .name = "l2-input-acl",
392 .vector_size = sizeof (u32),
393 .format_trace = format_l2_inacl_trace,
394 .type = VLIB_NODE_TYPE_INTERNAL,
Dave Barach97d8dc22016-08-15 15:31:15 -0400395
Ed Warnickecb9cada2015-12-08 15:45:58 -0700396 .n_errors = ARRAY_LEN(l2_inacl_error_strings),
397 .error_strings = l2_inacl_error_strings,
398
399 .n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
400
401 /* edit / add dispositions here */
402 .next_nodes = {
403 [ACL_NEXT_INDEX_DENY] = "error-drop",
404 },
405};
Dave Barach97d8dc22016-08-15 15:31:15 -0400406/* *INDENT-ON* */
Ed Warnickecb9cada2015-12-08 15:45:58 -0700407
Damjan Marion1c80e832016-05-11 23:07:18 +0200408VLIB_NODE_FUNCTION_MULTIARCH (l2_inacl_node, l2_inacl_node_fn)
Dave Barach97d8dc22016-08-15 15:31:15 -0400409 clib_error_t *l2_inacl_init (vlib_main_t * vm)
Ed Warnickecb9cada2015-12-08 15:45:58 -0700410{
Dave Barach97d8dc22016-08-15 15:31:15 -0400411 l2_inacl_main_t *mp = &l2_inacl_main;
Ed Warnickecb9cada2015-12-08 15:45:58 -0700412
Dave Barach97d8dc22016-08-15 15:31:15 -0400413 mp->vlib_main = vm;
414 mp->vnet_main = vnet_get_main ();
415
416 /* Initialize the feature next-node indexes */
417 feat_bitmap_init_next_nodes (vm,
418 l2_inacl_node.index,
419 L2INPUT_N_FEAT,
420 l2input_get_feat_names (),
421 mp->feat_next_node_index);
Ed Warnickecb9cada2015-12-08 15:45:58 -0700422
423 return 0;
424}
425
426VLIB_INIT_FUNCTION (l2_inacl_init);
Dave Barach97d8dc22016-08-15 15:31:15 -0400427
428/*
429 * fd.io coding-style-patch-verification: ON
430 *
431 * Local Variables:
432 * eval: (c-set-style "gnu")
433 * End:
434 */