FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
udp_input.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2019 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 #include <vlibmemory/api.h>
17 #include <vlib/vlib.h>
18 
19 #include <vppinfra/hash.h>
20 #include <vppinfra/error.h>
21 #include <vppinfra/elog.h>
22 
23 #include <vnet/vnet.h>
24 #include <vnet/ip/ip.h>
25 #include <vnet/udp/udp.h>
26 #include <vnet/udp/udp_packet.h>
27 #include <vnet/session/session.h>
28 
29 static char *udp_error_strings[] = {
30 #define udp_error(n,s) s,
31 #include "udp_error.def"
32 #undef udp_error
33 };
34 
35 typedef struct
36 {
41 
42 /* packet trace format function */
43 static u8 *
44 format_udp_input_trace (u8 * s, va_list * args)
45 {
46  CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *);
47  CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
48  udp_input_trace_t *t = va_arg (*args, udp_input_trace_t *);
49 
50  s = format (s, "UDP_INPUT: connection %d, disposition %d, thread %d",
52  return s;
53 }
54 
55 #define foreach_udp_input_next \
56  _ (DROP, "error-drop")
57 
58 typedef enum
59 {
60 #define _(s, n) UDP_INPUT_NEXT_##s,
62 #undef _
65 
66 always_inline void
67 udp_input_inc_counter (vlib_main_t * vm, u8 is_ip4, u8 evt, u8 val)
68 {
69  if (is_ip4)
71  else
73 }
74 
75 #define udp_store_err_counters(vm, is_ip4, cnts) \
76 { \
77  int i; \
78  for (i = 0; i < UDP_N_ERROR; i++) \
79  if (cnts[i]) \
80  udp_input_inc_counter(vm, is_ip4, i, cnts[i]); \
81 }
82 
83 #define udp_inc_err_counter(cnts, err, val) \
84 { \
85  cnts[err] += val; \
86 }
87 
88 static void
90  vlib_buffer_t * b, session_t * s, u16 error0)
91 {
93 
94  if (PREDICT_TRUE (!(b->flags & VLIB_BUFFER_IS_TRACED)))
95  return;
96 
97  t = vlib_add_trace (vm, node, b, sizeof (*t));
98  t->connection = s ? s->connection_index : ~0;
99  t->disposition = error0;
100  t->thread_index = s ? s->thread_index : vm->thread_index;
101 }
102 
103 static udp_connection_t *
106 {
107  udp_connection_t *uc;
108 
110  ip_copy (&uc->c_lcl_ip, &hdr->lcl_ip, hdr->is_ip4);
111  ip_copy (&uc->c_rmt_ip, &hdr->rmt_ip, hdr->is_ip4);
112  uc->c_lcl_port = hdr->lcl_port;
113  uc->c_rmt_port = hdr->rmt_port;
114  uc->c_is_ip4 = hdr->is_ip4;
115  uc->c_fib_index = listener->c_fib_index;
116  uc->mss = listener->mss;
117  uc->flags |= UDP_CONN_F_CONNECTED;
118 
119  if (session_dgram_accept (&uc->connection, listener->c_s_index,
120  listener->c_thread_index))
121  {
122  udp_connection_free (uc);
123  return 0;
124  }
125  udp_connection_share_port (clib_net_to_host_u16
126  (uc->c_lcl_port), uc->c_is_ip4);
127  return uc;
128 }
129 
130 static void
133  vlib_buffer_t * b, u8 queue_event, u32 * error0)
134 {
135  int wrote0;
136 
137  if (!(uc0->flags & UDP_CONN_F_CONNECTED))
138  clib_spinlock_lock (&uc0->rx_lock);
139 
141  < hdr0->data_length + sizeof (session_dgram_hdr_t))
142  {
143  *error0 = UDP_ERROR_FIFO_FULL;
144  goto unlock_rx_lock;
145  }
146 
147  /* If session is owned by another thread and rx event needed,
148  * enqueue event now while we still have the peeker lock */
149  if (s0->thread_index != thread_index)
150  {
151  wrote0 = session_enqueue_dgram_connection (s0, hdr0, b,
152  TRANSPORT_PROTO_UDP,
153  /* queue event */ 0);
154  if (queue_event && !svm_fifo_has_event (s0->rx_fifo))
156  }
157  else
158  {
159  wrote0 = session_enqueue_dgram_connection (s0, hdr0, b,
160  TRANSPORT_PROTO_UDP,
161  queue_event);
162  }
163  ASSERT (wrote0 > 0);
164 
165 unlock_rx_lock:
166 
167  if (!(uc0->flags & UDP_CONN_F_CONNECTED))
169 }
170 
173  u8 is_ip4)
174 {
175  udp_header_t *udp;
176  u32 fib_index;
177  session_t *s;
178 
179  /* udp_local hands us a pointer to the udp data */
180  udp = (udp_header_t *) (vlib_buffer_get_current (b) - sizeof (*udp));
181  fib_index = vnet_buffer (b)->ip.fib_index;
182 
183  hdr->data_offset = 0;
184  hdr->lcl_port = udp->dst_port;
185  hdr->rmt_port = udp->src_port;
186  hdr->is_ip4 = is_ip4;
187 
188  if (is_ip4)
189  {
190  ip4_header_t *ip4;
191 
192  /* TODO: must fix once udp_local does ip options correctly */
193  ip4 = (ip4_header_t *) (((u8 *) udp) - sizeof (*ip4));
194  ip_set (&hdr->lcl_ip, &ip4->dst_address, 1);
195  ip_set (&hdr->rmt_ip, &ip4->src_address, 1);
196  hdr->data_length = clib_net_to_host_u16 (ip4->length);
197  hdr->data_length -= sizeof (ip4_header_t) + sizeof (udp_header_t);
198  s = session_lookup_safe4 (fib_index, &ip4->dst_address,
199  &ip4->src_address, udp->dst_port,
200  udp->src_port, TRANSPORT_PROTO_UDP);
201  }
202  else
203  {
204  ip6_header_t *ip60;
205 
206  ip60 = (ip6_header_t *) (((u8 *) udp) - sizeof (*ip60));
207  ip_set (&hdr->lcl_ip, &ip60->dst_address, 0);
208  ip_set (&hdr->rmt_ip, &ip60->src_address, 0);
209  hdr->data_length = clib_net_to_host_u16 (ip60->payload_length);
210  hdr->data_length -= sizeof (udp_header_t);
211  s = session_lookup_safe6 (fib_index, &ip60->dst_address,
212  &ip60->src_address, udp->dst_port,
213  udp->src_port, TRANSPORT_PROTO_UDP);
214  }
215 
216  if (PREDICT_TRUE (!(b->flags & VLIB_BUFFER_NEXT_PRESENT)))
217  b->current_length = hdr->data_length;
218  else
220  - b->current_length;
221 
222  return s;
223 }
224 
227  vlib_frame_t * frame, u8 is_ip4)
228 {
229  u32 n_left_from, *from, errors, *first_buffer;
231  u16 err_counters[UDP_N_ERROR] = { 0 };
233 
234  from = first_buffer = vlib_frame_vector_args (frame);
235  n_left_from = frame->n_vectors;
237 
238  b = bufs;
239 
240  while (n_left_from > 0)
241  {
242  u32 error0 = UDP_ERROR_ENQUEUED;
243  session_dgram_hdr_t hdr0;
244  udp_connection_t *uc0;
245  session_t *s0;
246 
247  s0 = udp_parse_and_lookup_buffer (b[0], &hdr0, is_ip4);
248  if (PREDICT_FALSE (!s0))
249  {
250  error0 = UDP_ERROR_NO_LISTENER;
251  goto done;
252  }
253 
254  /*
255  * If session exists pool peeker lock is taken at this point unless
256  * the session is already on the right thread or is a listener
257  */
258 
259  if (s0->session_state == SESSION_STATE_OPENED)
260  {
261  u8 queue_event = 1;
263  if (uc0->flags & UDP_CONN_F_CONNECTED)
264  {
265  if (s0->thread_index != thread_index)
266  {
267  /*
268  * Clone the transport. It will be cleaned up with the
269  * session once we notify the session layer.
270  */
272  s0->thread_index);
273  ASSERT (s0->session_index == uc0->c_s_index);
274 
275  /*
276  * Drop the peeker lock on pool resize and ask session
277  * layer for a new session.
278  */
281  s0->thread_index, &s0);
282  queue_event = 0;
283  }
284  else
285  s0->session_state = SESSION_STATE_READY;
286  }
287  udp_connection_enqueue (uc0, s0, &hdr0, thread_index, b[0],
288  queue_event, &error0);
290  }
291  else if (s0->session_state == SESSION_STATE_READY)
292  {
294  udp_connection_enqueue (uc0, s0, &hdr0, thread_index, b[0], 1,
295  &error0);
296  }
297  else if (s0->session_state == SESSION_STATE_LISTENING)
298  {
300  if (uc0->flags & UDP_CONN_F_CONNECTED)
301  {
302  uc0 = udp_connection_accept (uc0, &hdr0, thread_index);
303  if (!uc0)
304  {
305  error0 = UDP_ERROR_CREATE_SESSION;
306  goto done;
307  }
308  s0 = session_get (uc0->c_s_index, uc0->c_thread_index);
309  error0 = UDP_ERROR_ACCEPT;
310  }
311  udp_connection_enqueue (uc0, s0, &hdr0, thread_index, b[0], 1,
312  &error0);
313  }
314  else
315  {
316  error0 = UDP_ERROR_NOT_READY;
318  }
319 
320  done:
321  if (PREDICT_FALSE (node->flags & VLIB_NODE_FLAG_TRACE))
322  udp_trace_buffer (vm, node, b[0], s0, error0);
323 
324  b += 1;
325  n_left_from -= 1;
326 
327  udp_inc_err_counter (err_counters, error0, 1);
328  }
329 
330  vlib_buffer_free (vm, first_buffer, frame->n_vectors);
331  errors = session_main_flush_enqueue_events (TRANSPORT_PROTO_UDP,
332  thread_index);
333  err_counters[UDP_ERROR_MQ_FULL] = errors;
334  udp_store_err_counters (vm, is_ip4, err_counters);
335  return frame->n_vectors;
336 }
337 
338 static uword
341 {
342  return udp46_input_inline (vm, node, frame, 1);
343 }
344 
345 /* *INDENT-OFF* */
347 {
348  .function = udp4_input,
349  .name = "udp4-input",
350  .vector_size = sizeof (u32),
351  .format_trace = format_udp_input_trace,
353  .n_errors = ARRAY_LEN (udp_error_strings),
354  .error_strings = udp_error_strings,
355  .n_next_nodes = UDP_INPUT_N_NEXT,
356  .next_nodes = {
357 #define _(s, n) [UDP_INPUT_NEXT_##s] = n,
359 #undef _
360  },
361 };
362 /* *INDENT-ON* */
363 
364 static uword
367 {
368  return udp46_input_inline (vm, node, frame, 0);
369 }
370 
371 /* *INDENT-OFF* */
373 {
374  .function = udp6_input,
375  .name = "udp6-input",
376  .vector_size = sizeof (u32),
377  .format_trace = format_udp_input_trace,
379  .n_errors = ARRAY_LEN (udp_error_strings),
380  .error_strings = udp_error_strings,
381  .n_next_nodes = UDP_INPUT_N_NEXT,
382  .next_nodes = {
383 #define _(s, n) [UDP_INPUT_NEXT_##s] = n,
385 #undef _
386  },
387 };
388 /* *INDENT-ON* */
389 
390 /*
391  * fd.io coding-style-patch-verification: ON
392  *
393  * Local Variables:
394  * eval: (c-set-style "gnu")
395  * End:
396  */
vlib.h
vlib_buffer_free
static void vlib_buffer_free(vlib_main_t *vm, u32 *buffers, u32 n_buffers)
Free buffers Frees the entire buffer chain for each buffer.
Definition: buffer_funcs.h:982
udp_header_t::src_port
u16 src_port
Definition: udp_packet.h:48
api.h
session_dgram_header_::data_length
u32 data_length
Definition: session_types.h:439
udp_connection_t::flags
u8 flags
connection flags
Definition: udp.h:65
ip_set
void ip_set(ip46_address_t *dst, void *src, u8 is_ip4)
Definition: ip.c:95
session_enqueue_notify
int session_enqueue_notify(session_t *s)
Definition: session.c:778
thread_index
u32 thread_index
Definition: nat44_ei_hairpinning.c:492
bufs
vlib_buffer_t * bufs[VLIB_FRAME_SIZE]
Definition: nat44_ei_out2in.c:717
session_dgram_header_
Definition: session_types.h:437
frame
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: nat44_ei.c:3048
session_::session_index
u32 session_index
Index in thread pool where session was allocated.
Definition: session_types.h:188
ip4
vl_api_ip4_address_t ip4
Definition: one.api:376
udp6_input
static uword udp6_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: udp_input.c:365
elog.h
udp_connection_free
void udp_connection_free(udp_connection_t *uc)
Definition: udp.c:123
vlib_get_buffers
vlib_get_buffers(vm, from, b, n_left_from)
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
VLIB_FRAME_SIZE
#define VLIB_FRAME_SIZE
Definition: node.h:368
node
vlib_main_t vlib_node_runtime_t * node
Definition: nat44_ei.c:3047
session_
Definition: session_types.h:175
u16
unsigned short u16
Definition: types.h:57
session_::thread_index
u8 thread_index
Index of the thread that allocated the session.
Definition: session_types.h:194
vm
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition: nat44_ei.c:3047
udp_input_inc_counter
static void udp_input_inc_counter(vlib_main_t *vm, u8 is_ip4, u8 evt, u8 val)
Definition: udp_input.c:67
listener
Definition: test_stats.cpp:7
udp46_input_inline
static uword udp46_input_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_ip4)
Definition: udp_input.c:226
vlib_frame_t
Definition: node.h:372
udp_connection_t
Definition: udp.h:59
udp_header_t
Definition: udp_packet.h:45
ip4_header_t
Definition: ip4_packet.h:87
session_enqueue_dgram_connection
int session_enqueue_dgram_connection(session_t *s, session_dgram_hdr_t *hdr, vlib_buffer_t *b, u8 proto, u8 queue_event)
Definition: session.c:619
udp_connection_enqueue
static void udp_connection_enqueue(udp_connection_t *uc0, session_t *s0, session_dgram_hdr_t *hdr0, u32 thread_index, vlib_buffer_t *b, u8 queue_event, u32 *error0)
Definition: udp_input.c:131
session_lookup_safe6
session_t * session_lookup_safe6(u32 fib_index, ip6_address_t *lcl, ip6_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
Lookup session with ip6 and transport layer information.
Definition: session_lookup.c:1260
udp_connection_share_port
void udp_connection_share_port(u16 lcl_port, u8 is_ip4)
Definition: udp.c:81
session_::rx_fifo
svm_fifo_t * rx_fifo
Pointers to rx/tx buffers.
Definition: session_types.h:178
udp_error_strings
static char * udp_error_strings[]
Definition: udp_input.c:29
session_dgram_header_::lcl_port
u16 lcl_port
Definition: session_types.h:444
error.h
session_get_transport
transport_connection_t * session_get_transport(session_t *s)
Definition: session.c:1745
CLIB_UNUSED
#define CLIB_UNUSED(x)
Definition: clib.h:90
vnet_buffer
#define vnet_buffer(b)
Definition: buffer.h:437
VLIB_NODE_FLAG_TRACE
#define VLIB_NODE_FLAG_TRACE
Definition: node.h:291
PREDICT_FALSE
#define PREDICT_FALSE(x)
Definition: clib.h:124
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
vlib_frame_vector_args
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
Definition: node_funcs.h:301
clib_spinlock_lock
static_always_inline void clib_spinlock_lock(clib_spinlock_t *p)
Definition: lock.h:82
udp_packet.h
uword
u64 uword
Definition: types.h:112
session_dgram_accept
int session_dgram_accept(transport_connection_t *tc, u32 listener_index, u32 thread_index)
Definition: session.c:1263
vlib_main_t::thread_index
u32 thread_index
Definition: main.h:213
session_lookup_safe4
session_t * session_lookup_safe4(u32 fib_index, ip4_address_t *lcl, ip4_address_t *rmt, u16 lcl_port, u16 rmt_port, u8 proto)
Lookup session with ip4 and transport layer information.
Definition: session_lookup.c:1052
vlib_node_increment_counter
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
Definition: node_funcs.h:1244
udp4_input
static uword udp4_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: udp_input.c:339
session_main_flush_enqueue_events
int session_main_flush_enqueue_events(u8 transport_proto, u32 thread_index)
Flushes queue of sessions that are to be notified of new data enqueued events.
Definition: session.c:846
ip6_header_t::dst_address
ip6_address_t dst_address
Definition: ip6_packet.h:310
UDP_N_ERROR
@ UDP_N_ERROR
Definition: udp.h:33
session_dgram_header_::data_offset
u32 data_offset
Definition: session_types.h:440
udp_store_err_counters
#define udp_store_err_counters(vm, is_ip4, cnts)
Definition: udp_input.c:75
UDP_INPUT_N_NEXT
@ UDP_INPUT_N_NEXT
Definition: udp_input.c:63
udp_parse_and_lookup_buffer
static session_t * udp_parse_and_lookup_buffer(vlib_buffer_t *b, session_dgram_hdr_t *hdr, u8 is_ip4)
Definition: udp_input.c:172
udp_inc_err_counter
#define udp_inc_err_counter(cnts, err, val)
Definition: udp_input.c:83
vlib_node_registration_t
struct _vlib_node_registration vlib_node_registration_t
session_get
static session_t * session_get(u32 si, u32 thread_index)
Definition: session.h:336
udp_trace_buffer
static void udp_trace_buffer(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b, session_t *s, u16 error0)
Definition: udp_input.c:89
vlib_buffer_t::current_length
u16 current_length
Nbytes between current data and the end of this buffer.
Definition: buffer.h:122
udp_connection_t::mss
u16 mss
connection mss
Definition: udp.h:66
format_udp_input_trace
static u8 * format_udp_input_trace(u8 *s, va_list *args)
Definition: udp_input.c:44
always_inline
#define always_inline
Definition: rdma_mlx5dv.h:23
udp_input_next_t
udp_input_next_t
Definition: udp_input.c:58
udp4_input_node
vlib_node_registration_t udp4_input_node
(constructor) VLIB_REGISTER_NODE (udp4_input_node)
Definition: udp_input.c:346
svm_fifo_max_enqueue_prod
static u32 svm_fifo_max_enqueue_prod(svm_fifo_t *f)
Maximum number of bytes that can be enqueued into fifo.
Definition: svm_fifo.h:607
udp_input_trace_t
Definition: udp_input.c:35
format
description fragment has unexpected format
Definition: map.api:433
ASSERT
#define ASSERT(truth)
Definition: error_bootstrap.h:69
session_dgram_header_::rmt_port
u16 rmt_port
Definition: session_types.h:443
ip.h
u32
unsigned int u32
Definition: types.h:88
udp_error.def
ip_copy
void ip_copy(ip46_address_t *dst, ip46_address_t *src, u8 is_ip4)
Definition: ip.c:83
udp_header_t::dst_port
u16 dst_port
Definition: udp_packet.h:48
udp.h
clib_spinlock_unlock
static_always_inline void clib_spinlock_unlock(clib_spinlock_t *p)
Definition: lock.h:121
ip6_header_t
Definition: ip6_packet.h:294
foreach_udp_input_next
#define foreach_udp_input_next
Definition: udp_input.c:55
ip6_header_t::src_address
ip6_address_t src_address
Definition: ip6_packet.h:310
vlib_main_t
Definition: main.h:102
udp_connection_alloc
udp_connection_t * udp_connection_alloc(u32 thread_index)
Definition: udp.c:93
vlib_node_t
Definition: node.h:247
vlib_add_trace
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
Definition: trace.c:628
hash.h
b
vlib_buffer_t ** b
Definition: nat44_ei_out2in.c:717
u8
unsigned char u8
Definition: types.h:56
vlib_buffer_get_current
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
Definition: buffer.h:257
udp6_input_node
vlib_node_registration_t udp6_input_node
(constructor) VLIB_REGISTER_NODE (udp6_input_node)
Definition: udp_input.c:372
session.h
udp_connection_t::rx_lock
clib_spinlock_t rx_lock
rx fifo lock
Definition: udp.h:64
udp_connection_clone_safe
static udp_connection_t * udp_connection_clone_safe(u32 connection_index, u32 thread_index)
Definition: udp.h:203
session_dgram_connect_notify
int session_dgram_connect_notify(transport_connection_t *tc, u32 old_thread_index, session_t **new_session)
Move dgram session to the right thread.
Definition: session.c:1008
udp_connection_t::connection
transport_connection_t connection
must be first
Definition: udp.h:63
session_dgram_header_::lcl_ip
ip46_address_t lcl_ip
Definition: session_types.h:442
session_pool_remove_peeker
static void session_pool_remove_peeker(u32 thread_index)
Definition: session.h:394
udp_connection_accept
static udp_connection_t * udp_connection_accept(udp_connection_t *listener, session_dgram_hdr_t *hdr, u32 thread_index)
Definition: udp_input.c:104
udp_input_trace_t::thread_index
u32 thread_index
Definition: udp_input.c:39
vnet.h
udp_input_trace_t::disposition
u32 disposition
Definition: udp_input.c:38
ip6_header_t::payload_length
u16 payload_length
Definition: ip6_packet.h:301
vlib_node_runtime_t
Definition: node.h:454
from
from
Definition: nat44_ei_hairpinning.c:415
PREDICT_TRUE
#define PREDICT_TRUE(x)
Definition: clib.h:125
udp_input_trace_t::connection
u32 connection
Definition: udp_input.c:37
vlib_buffer_t::total_length_not_including_first_buffer
u32 total_length_not_including_first_buffer
Only valid for first buffer in chain.
Definition: buffer.h:176
session_::session_state
volatile u8 session_state
State in session layer state machine.
Definition: session_types.h:185
session_dgram_header_::is_ip4
u8 is_ip4
Definition: session_types.h:445
n_left_from
n_left_from
Definition: nat44_ei_hairpinning.c:416
session_::connection_index
u32 connection_index
Index of the transport connection associated to the session.
Definition: session_types.h:200
svm_fifo_has_event
static int svm_fifo_has_event(svm_fifo_t *f)
Check if fifo has io event.
Definition: svm_fifo.h:776
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
udp_connection_from_transport
static udp_connection_t * udp_connection_from_transport(transport_connection_t *tc)
Definition: udp.h:157
session_dgram_header_::rmt_ip
ip46_address_t rmt_ip
Definition: session_types.h:441
vlib_buffer_t::flags
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
Definition: buffer.h:133
vlib_buffer_t
VLIB buffer representation.
Definition: buffer.h:111
VLIB_REGISTER_NODE
#define VLIB_REGISTER_NODE(x,...)
Definition: node.h:169