51 u32 n_left_from, *from, *to_next, next_index;
57 while (n_left_from > 0)
63 while (n_left_from > 0 && n_left_to_next > 0)
85 b0->
flags |= VNET_BUFFER_F_QOS_DATA_VALID;
88 (b0->
flags & VLIB_BUFFER_IS_TRACED)))
98 to_next, n_left_to_next,
126 .name =
"ip4-qos-store",
127 .vector_size =
sizeof (
u32),
140 .arc_name =
"ip4-unicast",
141 .node_name =
"ip4-qos-store",
144 .arc_name =
"ip4-multicast",
145 .node_name =
"ip4-qos-store",
149 .name =
"ip6-qos-store",
150 .vector_size =
sizeof (
u32),
163 .arc_name =
"ip6-unicast",
164 .node_name =
"ip6-qos-store",
167 .arc_name =
"ip6-multicast",
168 .node_name =
"ip6-qos-store",
VNET_FEATURE_INIT(ip4_qos_store_node, static)
static u8 * format_qos_store_trace(u8 *s, va_list *args)
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 VLIB_NODE_FN(node)
u8 * qos_store_configs[QOS_N_SOURCES]
Per-interface, per-protocol vector of feature on/off configurations.
vl_api_fib_path_type_t type
static_always_inline void * vnet_feature_next_with_data(u32 *next0, vlib_buffer_t *b0, u32 n_data_bytes)
vlib_node_registration_t ip6_qos_store_node
(constructor) VLIB_REGISTER_NODE (ip6_qos_store_node)
#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,...)
enum qos_source_t_ qos_source_t
QoS types.
vlib_node_registration_t ip4_qos_store_node
(constructor) VLIB_REGISTER_NODE (ip4_qos_store_node)
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 qos_store_trace_t_ qos_store_trace_t
per-packet trace data
vlib_main_t vlib_node_runtime_t * node
IPv6 to IPv4 translation.
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
VLIB buffer representation.
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
u16 flags
Copy of main node flags.
#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.
u8 qos_bits_t
Type, er, safety for us water based entities.
#define QOS_N_SOURCES
The maximum number of sources.
static uword qos_store_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, qos_source_t qos_src)