FD.io VPP  v16.06
Vector Packet Processing
l2_classify.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cisco and/or its affiliates.
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  */
15 /*
16  * l2_classify.c
17  */
18 
19 #include <vnet/l2/l2_classify.h>
20 #include <vnet/api_errno.h>
21 
22 typedef struct {
23  /* per-pkt trace data */
29 
30 typedef struct {
34 
35 /* packet trace format function */
36 static u8 * format_l2_classify_trace (u8 * s, va_list * args)
37 {
38  CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
39  CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
40  l2_classify_trace_t * t = va_arg (*args, l2_classify_trace_t *);
41 
42  s = format (s, "l2-classify: sw_if_index %d, table %d, offset %x, next %d",
44  return s;
45 }
46 
48 
50 
51 #define foreach_l2_classify_error \
52 _(MISS, "Classify misses") \
53 _(HIT, "Classify hits") \
54 _(CHAIN_HIT, "Classify hits after chain walk") \
55 _(DROP, "L2 Classify Drops")
56 
57 typedef enum {
58 #define _(sym,str) L2_CLASSIFY_ERROR_##sym,
60 #undef _
63 
64 static char * l2_classify_error_strings[] = {
65 #define _(sym,string) string,
67 #undef _
68 };
69 
70 static uword
72  vlib_node_runtime_t * node,
73  vlib_frame_t * frame)
74 {
75  u32 n_left_from, * from, * to_next;
76  l2_classify_next_t next_index;
80  u32 feature_bitmap;
81  u32 hits = 0;
82  u32 misses = 0;
83  u32 chain_hits = 0;
84  f64 now;
85 
86  now = vlib_time_now(vm);
87 
88  n_left_from = frame->n_vectors;
89  from = vlib_frame_vector_args (frame);
90 
91  /* First pass: compute hash */
92 
93  while (n_left_from > 2)
94  {
95  vlib_buffer_t * b0, * b1;
96  u32 bi0, bi1;
97  ethernet_header_t * h0, * h1;
98  u32 sw_if_index0, sw_if_index1;
99  u16 type0, type1;
100  int type_index0, type_index1;
101  vnet_classify_table_t * t0, * t1;
102  u32 table_index0, table_index1;
103  u64 hash0, hash1;
104 
105 
106  /* prefetch next iteration */
107  {
108  vlib_buffer_t * p1, * p2;
109 
110  p1 = vlib_get_buffer (vm, from[1]);
111  p2 = vlib_get_buffer (vm, from[2]);
112 
113  vlib_prefetch_buffer_header (p1, STORE);
115  vlib_prefetch_buffer_header (p2, STORE);
117  }
118 
119  bi0 = from[0];
120  b0 = vlib_get_buffer (vm, bi0);
121  h0 = vlib_buffer_get_current (b0);
122 
123  bi1 = from[1];
124  b1 = vlib_get_buffer (vm, bi1);
125  h1 = vlib_buffer_get_current (b1);
126 
127  sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_RX];
128  vnet_buffer(b0)->l2_classify.table_index = ~0;
129 
130  sw_if_index1 = vnet_buffer(b1)->sw_if_index[VLIB_RX];
131  vnet_buffer(b1)->l2_classify.table_index = ~0;
132 
133  /* Select classifier table based on ethertype */
134  type0 = clib_net_to_host_u16 (h0->type);
135  type1 = clib_net_to_host_u16 (h1->type);
136 
137  type_index0 = (type0 == ETHERNET_TYPE_IP4)
139  type_index0 = (type0 == ETHERNET_TYPE_IP6)
140  ? L2_CLASSIFY_TABLE_IP6 : type_index0;
141 
142  type_index1 = (type1 == ETHERNET_TYPE_IP4)
144  type_index1 = (type1 == ETHERNET_TYPE_IP6)
145  ? L2_CLASSIFY_TABLE_IP6 : type_index1;
146 
147  vnet_buffer(b0)->l2_classify.table_index =
148  table_index0 =
150  [type_index0][sw_if_index0];
151 
152  if (table_index0 != ~0)
153  {
154  t0 = pool_elt_at_index (vcm->tables, table_index0);
155 
156  vnet_buffer(b0)->l2_classify.hash = hash0 =
157  vnet_classify_hash_packet (t0, (u8 *) h0);
158  vnet_classify_prefetch_bucket (t0, hash0);
159  }
160 
161  vnet_buffer(b1)->l2_classify.table_index =
162  table_index1 =
164  [type_index1][sw_if_index1];
165 
166  if (table_index1 != ~0)
167  {
168  t1 = pool_elt_at_index (vcm->tables, table_index1);
169 
170  vnet_buffer(b1)->l2_classify.hash = hash1 =
171  vnet_classify_hash_packet (t1, (u8 *) h1);
172  vnet_classify_prefetch_bucket (t1, hash1);
173  }
174 
175  from += 2;
176  n_left_from -= 2;
177  }
178 
179  while (n_left_from > 0)
180  {
181  vlib_buffer_t * b0;
182  u32 bi0;
183  ethernet_header_t * h0;
184  u32 sw_if_index0;
185  u16 type0;
186  u32 type_index0;
188  u32 table_index0;
189  u64 hash0;
190 
191  bi0 = from[0];
192  b0 = vlib_get_buffer (vm, bi0);
193  h0 = vlib_buffer_get_current (b0);
194 
195  sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_RX];
196  vnet_buffer(b0)->l2_classify.table_index = ~0;
197 
198  /* Select classifier table based on ethertype */
199  type0 = clib_net_to_host_u16 (h0->type);
200 
201  type_index0 = (type0 == ETHERNET_TYPE_IP4)
203  type_index0 = (type0 == ETHERNET_TYPE_IP6)
204  ? L2_CLASSIFY_TABLE_IP6 : type_index0;
205 
206  vnet_buffer(b0)->l2_classify.table_index =
207  table_index0 = rt->l2cm->classify_table_index_by_sw_if_index
208  [type_index0][sw_if_index0];
209 
210  if (table_index0 != ~0)
211  {
212  t0 = pool_elt_at_index (vcm->tables, table_index0);
213 
214  vnet_buffer(b0)->l2_classify.hash = hash0 =
215  vnet_classify_hash_packet (t0, (u8 *) h0);
216  vnet_classify_prefetch_bucket (t0, hash0);
217  }
218  from++;
219  n_left_from--;
220  }
221 
222  next_index = node->cached_next_index;
223  from = vlib_frame_vector_args (frame);
224  n_left_from = frame->n_vectors;
225 
226  while (n_left_from > 0)
227  {
228  u32 n_left_to_next;
229 
230  vlib_get_next_frame (vm, node, next_index,
231  to_next, n_left_to_next);
232 
233  /* Not enough load/store slots to dual loop... */
234  while (n_left_from > 0 && n_left_to_next > 0)
235  {
236  u32 bi0;
237  vlib_buffer_t * b0;
239  ethernet_header_t * h0;
240  u32 table_index0;
241  u64 hash0;
243  vnet_classify_entry_t * e0;
244 
245  if (PREDICT_TRUE (n_left_from > 2))
246  {
247  vlib_buffer_t * p2 = vlib_get_buffer(vm, from[2]);
248  u64 phash2;
249  u32 table_index2;
250  vnet_classify_table_t * tp2;
251 
252  /*
253  * Prefetch table entry two ahead. Buffer / data
254  * were prefetched above...
255  */
256  table_index2 = vnet_buffer(p2)->l2_classify.table_index;
257 
258  if (PREDICT_TRUE (table_index2 != ~0))
259  {
260  tp2 = pool_elt_at_index (vcm->tables, table_index2);
261  phash2 = vnet_buffer(p2)->l2_classify.hash;
262  vnet_classify_prefetch_entry (tp2, phash2);
263  }
264  }
265 
266  /* speculatively enqueue b0 to the current next frame */
267  bi0 = from[0];
268  to_next[0] = bi0;
269  from += 1;
270  to_next += 1;
271  n_left_from -= 1;
272  n_left_to_next -= 1;
273 
274  b0 = vlib_get_buffer (vm, bi0);
275  h0 = vlib_buffer_get_current(b0);
276  table_index0 = vnet_buffer(b0)->l2_classify.table_index;
277  e0 = 0;
278  vnet_buffer(b0)->l2_classify.opaque_index = ~0;
279 
280  if (PREDICT_TRUE(table_index0 != ~0))
281  {
282  hash0 = vnet_buffer(b0)->l2_classify.hash;
283  t0 = pool_elt_at_index (vcm->tables, table_index0);
284 
285  e0 = vnet_classify_find_entry (t0, (u8 *) h0,
286  hash0, now);
287  if (e0)
288  {
289  vnet_buffer(b0)->l2_classify.opaque_index
290  = e0->opaque_index;
291  vlib_buffer_advance (b0, e0->advance);
292  next0 = (e0->next_index < L2_CLASSIFY_N_NEXT)?
293  e0->next_index:next0;
294  hits++;
295  }
296  else
297  {
298  while (1)
299  {
300  if (t0->next_table_index != ~0)
301  t0 = pool_elt_at_index (vcm->tables,
302  t0->next_table_index);
303  else
304  {
305  next0 = (t0->miss_next_index < L2_CLASSIFY_N_NEXT)?
306  t0->miss_next_index:next0;
307  misses++;
308  break;
309  }
310 
311  hash0 = vnet_classify_hash_packet (t0, (u8 *) h0);
312  e0 = vnet_classify_find_entry (t0, (u8 *) h0, hash0, now);
313  if (e0)
314  {
315  vnet_buffer(b0)->l2_classify.opaque_index
316  = e0->opaque_index;
317  vlib_buffer_advance (b0, e0->advance);
318  next0 = (e0->next_index < L2_CLASSIFY_N_NEXT)?
319  e0->next_index:next0;
320  hits++;
321  chain_hits++;
322  break;
323  }
324  }
325  }
326  }
327 
328  if (PREDICT_FALSE(next0 == 0))
329  b0->error = node->errors[L2_CLASSIFY_ERROR_DROP];
330 
331  if (PREDICT_FALSE (next0 == ~0))
332  {
333 
334  // Remove ourself from the feature bitmap
335  feature_bitmap = vnet_buffer(b0)->l2.feature_bitmap
336  & ~L2INPUT_FEAT_CLASSIFY;
337 
338  // save for next feature graph nodes
339  vnet_buffer(b0)->l2.feature_bitmap = feature_bitmap;
340 
341  // Determine the next node
343  feature_bitmap);
344  }
345 
347  && (b0->flags & VLIB_BUFFER_IS_TRACED)))
348  {
349  l2_classify_trace_t *t =
350  vlib_add_trace (vm, node, b0, sizeof (*t));
351  t->sw_if_index = vnet_buffer(b0)->sw_if_index[VLIB_RX];
352  t->table_index = table_index0;
353  t->next_index = next0;
354  t->session_offset = e0 ? vnet_classify_get_offset (t0, e0) : 0;
355  }
356 
357  /* verify speculative enqueue, maybe switch current next frame */
358  vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
359  to_next, n_left_to_next,
360  bi0, next0);
361  }
362 
363  vlib_put_next_frame (vm, node, next_index, n_left_to_next);
364  }
365 
367  L2_CLASSIFY_ERROR_MISS,
368  misses);
370  L2_CLASSIFY_ERROR_HIT,
371  hits);
373  L2_CLASSIFY_ERROR_CHAIN_HIT,
374  chain_hits);
375  return frame->n_vectors;
376 }
377 
379  .function = l2_classify_node_fn,
380  .name = "l2-classify",
381  .vector_size = sizeof (u32),
382  .format_trace = format_l2_classify_trace,
384 
386  .error_strings = l2_classify_error_strings,
387 
388  .runtime_data_bytes = sizeof (l2_classify_runtime_t),
389 
390  .n_next_nodes = L2_CLASSIFY_N_NEXT,
391 
392  /* edit / add dispositions here */
393  .next_nodes = {
394  [L2_CLASSIFY_NEXT_DROP] = "error-drop",
395  [L2_CLASSIFY_NEXT_ETHERNET_INPUT] = "ethernet-input-not-l2",
396  [L2_CLASSIFY_NEXT_IP4_INPUT] = "ip4-input",
397  [L2_CLASSIFY_NEXT_IP6_INPUT] = "ip6-input",
398  [L2_CLASSIFY_NEXT_LI] = "li-hit",
399  },
400 };
401 
403 {
406 
408 
409  cm->vlib_main = vm;
410  cm->vnet_main = vnet_get_main();
412 
413  // Initialize the feature next-node indexes
415  l2_classify_node.index,
419  rt->l2cm = cm;
420  rt->vcm = cm->vnet_classify_main;
421 
422  return 0;
423 }
424 
426 
427 
429  int enable_disable)
430 {
431  vlib_main_t * vm = vlib_get_main();
432  vnet_main_t * vnm = vnet_get_main();
433 
434  if (enable_disable)
435  set_int_l2_mode (vm, vnm, MODE_L2_CLASSIFY, sw_if_index,
436  0, 0, 0, 0);
437  else
438  set_int_l2_mode (vm, vnm, MODE_L3, sw_if_index,
439  0, 0, 0, 0);
440 }
441 
443  u32 ip4_table_index,
444  u32 ip6_table_index,
445  u32 other_table_index)
446 {
449 
450  /* Assume that we've validated sw_if_index in the API layer */
451 
452  if (ip4_table_index != ~0 &&
453  pool_is_free_index (vcm->tables, ip4_table_index))
454  return VNET_API_ERROR_NO_SUCH_TABLE;
455 
456  if (ip6_table_index != ~0 &&
457  pool_is_free_index (vcm->tables, ip6_table_index))
458  return VNET_API_ERROR_NO_SUCH_TABLE2;
459 
460  if (other_table_index != ~0 &&
461  pool_is_free_index (vcm->tables, other_table_index))
462  return VNET_API_ERROR_NO_SUCH_TABLE3;
463 
464  vec_validate
466  sw_if_index);
467 
468  vec_validate
470  sw_if_index);
471 
472  vec_validate
474  sw_if_index);
475 
477  [sw_if_index] = ip4_table_index;
478 
480  [sw_if_index] = ip6_table_index;
481 
483  [sw_if_index] = other_table_index;
484 
485  return 0;
486 }
487 
488 static clib_error_t *
490  unformat_input_t * input,
491  vlib_cli_command_t * cmd)
492 {
493  vnet_main_t * vnm = vnet_get_main();
494  u32 sw_if_index = ~0;
495  u32 ip4_table_index = ~0;
496  u32 ip6_table_index = ~0;
497  u32 other_table_index = ~0;
498  int rv;
499 
501  {
502  if (unformat (input, "intfc %U", unformat_vnet_sw_interface,
503  vnm, &sw_if_index))
504  ;
505  else if (unformat (input, "ip4-table %d", &ip4_table_index))
506  ;
507  else if (unformat (input, "ip6-table %d", &ip6_table_index))
508  ;
509  else if (unformat (input, "other-table %d", &other_table_index))
510  ;
511  else
512  break;
513  }
514 
515  if (sw_if_index == ~0)
516  return clib_error_return (0, "interface must be specified");
517 
518 
519  if (ip4_table_index == ~0 && ip6_table_index == ~0
520  && other_table_index == ~0)
521  {
522  vlib_cli_output (vm, "L2 classification disabled");
523  vnet_l2_classify_enable_disable (sw_if_index, 0 /* enable */);
524  return 0;
525  }
526 
527  rv = vnet_l2_classify_set_tables (sw_if_index, ip4_table_index,
528  ip6_table_index, other_table_index);
529  switch(rv)
530  {
531  case 0:
532  vnet_l2_classify_enable_disable (sw_if_index, 1 /* enable */);
533  break;
534 
535  default:
536  return clib_error_return (0, "vnet_l2_classify_set_tables: %d",
537  rv);
538  break;
539  }
540 
541  return 0;
542 }
543 
544 VLIB_CLI_COMMAND (int_l2_classify_cli, static) = {
545  .path = "set interface l2 classify",
546  .short_help =
547  "set interface l2 classify intfc <int> [ip4-table <n>]\n"
548  " [ip6-table <n>] [other-table <n>]",
549  .function = int_l2_classify_command_fn,
550 };
551 
552 
u64 vnet_classify_hash_packet(vnet_classify_table_t *t, u8 *h)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
Definition: vec.h:394
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Definition: main.c:459
#define CLIB_UNUSED(x)
Definition: clib.h:79
uword unformat(unformat_input_t *i, char *fmt,...)
Definition: unformat.c:942
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define PREDICT_TRUE(x)
Definition: clib.h:98
#define foreach_l2_classify_error
Definition: l2_classify.c:51
#define UNFORMAT_END_OF_INPUT
Definition: format.h:142
struct _vlib_node_registration vlib_node_registration_t
unformat_function_t unformat_vnet_sw_interface
vlib_error_t * errors
Definition: node.h:378
always_inline void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
Definition: buffer.h:184
always_inline vlib_main_t * vlib_get_main(void)
Definition: global_funcs.h:23
always_inline uword unformat_check_input(unformat_input_t *i)
Definition: format.h:168
u32 * classify_table_index_by_sw_if_index[L2_CLASSIFY_N_TABLES]
Definition: l2_classify.h:58
l2_classify_next_t
Definition: l2_classify.h:36
vnet_main_t * vnet_get_main(void)
Definition: misc.c:45
#define VLIB_INIT_FUNCTION(x)
Definition: init.h:109
vnet_classify_main_t * vnet_classify_main
Definition: l2_classify.h:63
static char * l2_classify_error_strings[]
Definition: l2_classify.c:64
unsigned long u64
Definition: types.h:89
void vnet_l2_classify_enable_disable(u32 sw_if_index, int enable_disable)
Definition: l2_classify.c:428
static void vnet_classify_prefetch_bucket(vnet_classify_table_t *t, u64 hash)
always_inline void * vlib_frame_vector_args(vlib_frame_t *f)
Definition: node_funcs.h:202
u32 set_int_l2_mode(vlib_main_t *vm, vnet_main_t *vnet_main, u32 mode, u32 sw_if_index, u32 bd_index, u32 bvi, u32 shg, u32 xc_sw_if_index)
Definition: l2_input.c:509
l2_classify_main_t l2_classify_main
Definition: l2_classify.c:47
static void vnet_classify_prefetch_entry(vnet_classify_table_t *t, u64 hash)
#define pool_elt_at_index(p, i)
Definition: pool.h:346
int vnet_l2_classify_set_tables(u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 other_table_index)
Definition: l2_classify.c:442
static clib_error_t * int_l2_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: l2_classify.c:489
#define PREDICT_FALSE(x)
Definition: clib.h:97
always_inline void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
Definition: node_funcs.h:970
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Definition: buffer_node.h:83
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Definition: node_funcs.h:265
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
Definition: cli.c:538
vlib_error_t error
Error code for buffers to be enqueued to error handler.
Definition: buffer.h:129
vlib_main_t * vlib_main
Definition: l2_classify.h:61
vnet_main_t * vnet_main
Definition: l2_classify.h:62
static uword vnet_classify_get_offset(vnet_classify_table_t *t, vnet_classify_entry_t *v)
u16 n_vectors
Definition: node.h:307
u32 feat_next_node_index[32]
Definition: l2_classify.h:55
#define CLIB_PREFETCH(addr, size, type)
Definition: cache.h:82
static u8 * format_l2_classify_trace(u8 *s, va_list *args)
Definition: l2_classify.c:36
vnet_classify_main_t * vcm
Definition: l2_classify.c:31
vlib_node_registration_t l2_classify_node
(constructor) VLIB_REGISTER_NODE (l2_classify_node)
Definition: l2_classify.c:49
clib_error_t * l2_classify_init(vlib_main_t *vm)
Definition: l2_classify.c:402
#define pool_is_free_index(P, I)
Definition: pool.h:197
#define ARRAY_LEN(x)
Definition: clib.h:59
char ** l2input_get_feat_names(void)
Definition: l2_input.c:45
#define VLIB_CLI_COMMAND(x,...)
Definition: cli.h:150
struct _vnet_classify_main vnet_classify_main_t
Definition: vnet_classify.h:50
u16 cached_next_index
Definition: node.h:422
unsigned int u32
Definition: types.h:88
#define vnet_buffer(b)
Definition: buffer.h:300
u8 * format(u8 *s, char *fmt,...)
Definition: format.c:405
#define VLIB_NODE_FLAG_TRACE
Definition: node.h:225
vnet_classify_main_t vnet_classify_main
Definition: vnet_classify.c:21
l2_classify_error_t
Definition: l2_classify.c:57
#define VLIB_BUFFER_IS_TRACED
Definition: buffer.h:91
u64 uword
Definition: types.h:112
unsigned short u16
Definition: types.h:57
static uword l2_classify_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2_classify.c:71
always_inline void * vlib_node_get_runtime_data(vlib_main_t *vm, u32 node_index)
Definition: node_funcs.h:76
double f64
Definition: types.h:140
always_inline void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
Definition: buffer.h:197
unsigned char u8
Definition: types.h:56
always_inline u32 feat_bitmap_get_next_node_index(u32 *next_nodes, u32 bitmap)
Definition: feat_bitmap.h:71
always_inline void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
Definition: trace_funcs.h:55
#define vlib_prefetch_buffer_header(b, type)
Prefetch buffer metadata.
Definition: buffer.h:162
#define VLIB_REGISTER_NODE(x,...)
Definition: node.h:140
u8 data[0]
Packet data.
Definition: buffer.h:150
#define MODE_L2_CLASSIFY
Definition: l2_input.h:211
always_inline f64 vlib_time_now(vlib_main_t *vm)
Definition: main.h:182
#define clib_error_return(e, args...)
Definition: error.h:112
struct _unformat_input_t unformat_input_t
#define CLIB_CACHE_LINE_BYTES
Definition: cache.h:67
u32 flags
buffer flags: VLIB_BUFFER_IS_TRACED: trace this buffer.
Definition: buffer.h:84
uword runtime_data[(128-1 *sizeof(vlib_node_function_t *)-1 *sizeof(vlib_error_t *)-11 *sizeof(u32)-5 *sizeof(u16))/sizeof(uword)]
Definition: node.h:432
always_inline vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
Definition: buffer_funcs.h:69
vnet_classify_entry_t * vnet_classify_find_entry(vnet_classify_table_t *t, u8 *h, u64 hash, f64 now)
always_inline void feat_bitmap_init_next_nodes(vlib_main_t *vm, u32 node_index, u32 num_features, char **feat_names, u32 *next_nodes)
Definition: feat_bitmap.h:41
Definition: defs.h:45
#define MODE_L3
Definition: l2_input.h:208
l2_classify_main_t * l2cm
Definition: l2_classify.c:32