25 #define foreach_ipsec_if_output_error \ 26 _(TX, "good packets transmitted") 29 #define _(sym,string) string, 36 #define _(sym,str) IPSEC_IF_OUTPUT_ERROR_##sym, 66 u32 *from, *to_next = 0, next_index;
67 u32 n_left_from, sw_if_index0;
73 while (n_left_from > 0)
79 while (n_left_from > 0 && n_left_to_next > 0)
86 bi0 = to_next[0] = from[0];
109 n_left_to_next, bi0, next0);
115 IPSEC_IF_OUTPUT_ERROR_TX,
124 .name =
"ipsec-if-output",
125 .vector_size =
sizeof (
u32),
132 .sibling_of =
"ipsec-output-ip4",
u8 * format_ipsec_if_output_trace(u8 *s, va_list *args)
static uword ipsec_if_output_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
ipsec_tunnel_if_t * tunnel_interfaces
static vnet_hw_interface_t * vnet_get_sup_hw_interface(vnet_main_t *vnm, u32 sw_if_index)
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Release pointer to next frame vector data.
static char * ipsec_if_output_error_strings[]
u32 esp_encrypt_next_index
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
#define VLIB_BUFFER_IS_TRACED
#define foreach_ipsec_if_output_error
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
vlib_node_registration_t ipsec_if_output_node
(constructor) VLIB_REGISTER_NODE (ipsec_if_output_node)
#define VLIB_NODE_FUNCTION_MULTIARCH(node, fn)
#define VLIB_REGISTER_NODE(x,...)
u32 flags
buffer flags: VLIB_BUFFER_IS_TRACED: trace this buffer.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.