41 "ACL_OUT: sw_if_index %d, next index %d, match: outacl %d rule %d trace_bits %08x",
49 #define foreach_acl_out_error \ 50 _(ACL_CHECK, "OutACL check packets processed") 54 #define _(sym,str) ACL_OUT_ERROR_##sym, 61 #define _(sym,string) string, 71 u32 *output_feat_next_node_index =
73 u32 n_left_from, *from, *to_next;
75 u32 pkts_acl_checked = 0;
77 u32 match_acl_index = ~0;
78 u32 match_rule_index = ~0;
85 while (n_left_from > 0)
91 while (n_left_from > 0 && n_left_to_next > 0)
111 feature_bitmap0 =
vnet_buffer (b0)->l2.feature_bitmap;
114 &match_rule_index, &trace_bitmap);
139 pkts_acl_checked += 1;
143 to_next, n_left_to_next,
151 ACL_OUT_ERROR_ACL_CHECK, pkts_acl_checked);
static uword acl_out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
void output_acl_packet_match(u32 sw_if_index, vlib_buffer_t *b0, u32 *nextp, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
static u8 * format_acl_out_trace(u8 *s, va_list *args)
vlib_node_registration_t acl_out_node
(constructor) VLIB_REGISTER_NODE (acl_out_node)
u32 acl_out_node_feat_next_node_index[32]
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.
struct _vlib_node_registration vlib_node_registration_t
static u32 feat_bitmap_get_next_node_index(u32 *next_nodes, u32 bitmap)
Return the graph node index for the feature corresponding to the first set bit in the bitmap...
#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 foreach_acl_out_error
#define VLIB_BUFFER_IS_TRACED
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
#define VLIB_NODE_FLAG_TRACE
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.
#define VLIB_REGISTER_NODE(x,...)
u16 flags
Copy of main node flags.
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.
static char * acl_out_error_strings[]