|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file. 1 #ifndef __included_nat44_ei_hairpinning_h__
2 #define __included_nat44_ei_hairpinning_h__
6 #define foreach_nat44_ei_hairpinning_handoff_error \
7 _ (CONGESTION_DROP, "congestion drop")
11 #define _(sym, str) NAT44_EI_HAIRPINNING_HANDOFF_ERROR_##sym,
18 #define _(sym, string) string,
36 s =
format (s,
"nat44-ei-hairpinning-handoff: next-worker %d",
63 (
b[0]->
flags & VLIB_BUFFER_IS_TRACED)))
75 thread_indices,
frame->n_vectors, 1);
79 vm,
node->node_index, NAT44_EI_HAIRPINNING_HANDOFF_ERROR_CONGESTION_DROP,
80 frame->n_vectors - n_enq);
81 return frame->n_vectors;
84 #endif // __included_nat44_ei_hairpinning_h__
static char * nat44_ei_hairpinning_handoff_error_strings[]
vlib_buffer_t * bufs[VLIB_FRAME_SIZE]
static_always_inline u32 vlib_buffer_enqueue_to_thread(vlib_main_t *vm, vlib_node_runtime_t *node, u32 frame_queue_index, u32 *buffer_indices, u16 *thread_indices, u32 n_packets, int drop_on_congestion)
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
vlib_get_buffers(vm, from, b, n_left_from)
vlib_main_t vlib_node_runtime_t * node
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
nat44_ei_hairpinning_handoff_error_t
#define VLIB_NODE_FLAG_TRACE
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
static u8 * format_nat44_ei_hairpinning_handoff_trace(u8 *s, va_list *args)
static uword nat44_ei_hairpinning_handoff_fn_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 fq_index)
#define foreach_nat44_ei_hairpinning_handoff_error
description fragment has unexpected format
@ NAT44_EI_HAIRPINNING_HANDOFF_N_ERROR
void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index,...
VLIB buffer representation.