59 return (
format (s,
"ip6-link-local"));
104 u32 n_left_from, next_index, *from, *to_next;
110 while (n_left_from > 0)
116 while (n_left_from > 0 && n_left_to_next > 0)
118 u32 bi0, fib_index0, next0;
146 n_left_to_next, bi0, next0);
180 .name =
"ip6-link-local",
181 .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.
dpo_lock_fn_t dv_lock
A reference counting lock function.
ip6_ll_next_t_
Exit nodes from a IP6_LL.
A virtual function table regisitered for a DPO type.
static u8 * format_ip6_ll_dpo_trace(u8 *s, va_list *args)
vlib_node_registration_t ip6_ll_dpo_node
(constructor) VLIB_REGISTER_NODE (ip6_ll_dpo_node)
static const char *const *const ip6_ll_nodes[DPO_PROTO_NUM]
static uword ip6_ll_dpo_switch(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
static void ip6_ll_dpo_lock(dpo_id_t *dpo)
struct ip6_ll_dpo_trace_t_ ip6_ll_dpo_trace_t
static uword ip6_ll_dpo_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
void dpo_register(dpo_type_t type, const dpo_vft_t *vft, const char *const *const *nodes)
For a given DPO type Register:
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
static const char *const ip6_null_nodes[]
The per-protocol VLIB graph nodes that are assigned to a ip6_ll object.
dpo_type_t dpoi_type
the type
enum ip6_ll_next_t_ ip6_ll_next_t
Exit nodes from a IP6_LL.
u32 ip6_ll_fib_get(u32 sw_if_index)
For use in the data plane.
#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,...)
const dpo_id_t * ip6_ll_dpo_get(void)
The IP6 link-local DPO represents the lookup of a packet in the link-local IPv6 FIB.
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.
void ip6_ll_dpo_module_init(void)
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
static u8 * format_ip6_ll_dpo(u8 *s, va_list *ap)
VLIB buffer representation.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
static void ip6_ll_dpo_unlock(dpo_id_t *dpo)
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.