42 #define foreach_feat_bitmap_drop_error \ 43 _(NO_FWD, "L2 feature forwarding disabled") \ 44 _(NYI, "L2 feature not implemented") 48 #define _(sym,str) FEAT_BITMAP_DROP_ERROR_##sym, 55 #define _(sym,string) string, 88 u32 n_left_from, *from, *to_next;
95 while (n_left_from > 0)
102 while (n_left_from > 0 && n_left_to_next > 0)
119 && (b0->
flags & VLIB_BUFFER_IS_TRACED)))
132 b0->
error = node->
errors[FEAT_BITMAP_DROP_ERROR_NO_FWD];
136 b0->
error = node->
errors[FEAT_BITMAP_DROP_ERROR_NYI];
142 to_next, n_left_to_next,
162 .name =
"feature-bitmap-drop",
163 .vector_size =
sizeof (
u32),
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
clib_error_t * feat_bitmap_drop_init(vlib_main_t *vm)
vlib_error_t * errors
Vector of errors for this node.
static char * feat_bitmap_drop_error_strings[]
#define VLIB_INIT_FUNCTION(x)
static vlib_node_registration_t feat_bitmap_drop_node
(constructor) VLIB_REGISTER_NODE (feat_bitmap_drop_node)
vl_api_fib_path_type_t type
vlib_error_t error
Error code for buffers to be enqueued to error handler.
static u8 * format_feat_bitmap_drop_trace(u8 *s, va_list *args)
#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).
#define VLIB_REGISTER_NODE(x,...)
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.
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)
struct _vlib_node_registration vlib_node_registration_t
static uword feat_bitmap_drop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
VLIB buffer representation.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
u16 flags
Copy of main node flags.
#define foreach_feat_bitmap_drop_error
#define VLIB_NODE_FLAG_TRACE
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.