43 ctx_id = ctx - rm->
contexts[thread_index];
158 u32 n_left_to_next = 0;
159 u32 n_this_frame = 0;
167 u32 feature_node_index = 0;
185 for (i = 0; i < 2; i++)
193 while (n_left_from > 0)
263 "replication-recycle");
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
sll srl srl sll sra u16x4 i
#define VLIB_BUFFER_RECYCLE
vnet_main_t * vnet_get_main(void)
u32 saved_free_list_index
vlib_buffer_main_t * buffer_main
u32 recycle_count
Used by L2 path recycle code.
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
replication_main_t replication_main
i16 current_data
signed offset in data[], pre_data[] that we are currently processing.
#define vlib_prefetch_buffer_with_index(vm, bi, type)
Prefetch buffer metadata by buffer index The first 64 bytes of buffer contains most header informatio...
#define VLIB_INIT_FUNCTION(x)
vlib_frame_t * vlib_get_frame_to_node(vlib_main_t *vm, u32 to_node_index)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
void vlib_put_frame_to_node(vlib_main_t *vm, u32 to_node_index, vlib_frame_t *f)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
#define pool_put(P, E)
Free an object E in pool P.
static void replication_recycle_callback(vlib_main_t *vm, vlib_buffer_free_list_t *fl)
replication_context_t * replication_prep(vlib_main_t *vm, vlib_buffer_t *b0, u32 recycle_node_index, u32 l2_packet)
#define VLIB_BUFFER_IS_RECYCLED
static void vlib_buffer_set_known_state(u32 buffer_index, vlib_buffer_known_state_t state)
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P (general version).
static u32 vlib_buffer_get_free_list_index(vlib_buffer_t *b)
#define VLIB_BUFFER_IS_TRACED
#define clib_memcpy(a, b, c)
void(* buffers_added_to_freelist_function)(struct vlib_main_t *vm, struct vlib_buffer_free_list_t *fl)
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
u32 vlib_buffer_create_free_list(vlib_main_t *vm, u32 n_data_bytes, char *fmt,...)
clib_error_t * replication_init(vlib_main_t *vm)
static void vlib_buffer_set_free_list_index(vlib_buffer_t *b, u32 index)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vlib_buffer_free_list_t * buffer_free_list_pool
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
replication_context_t * replication_recycle(vlib_main_t *vm, vlib_buffer_t *b0, u32 is_last)
static vlib_thread_main_t * vlib_get_thread_main()
#define CLIB_CACHE_LINE_BYTES
u32 flags
buffer flags: VLIB_BUFFER_FREE_LIST_INDEX_MASK: bits used to store free list index, VLIB_BUFFER_IS_TRACED: trace this buffer.
#define VNET_BUFFER_FLAGS_VLAN_BITS
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
replication_context_t ** contexts