22 #ifndef CLIB_MARCH_VARIANT    60   return (gfd - gbp_fwd_dpo_pool);
   189   u32 n_left_from, next_index, *from, *to_next;
   196   while (n_left_from > 0)
   202       while (n_left_from > 0 && n_left_to_next > 0)
   242                                            n_left_to_next, bi0, next0);
   277     .name = 
"ip4-gbp-fwd-dpo",
   278     .vector_size = 
sizeof (
u32),
   288     .name = 
"ip6-gbp-fwd-dpo",
   289     .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. 
 
A virtual function table regisitered for a DPO type. 
 
static index_t gbp_fwd_dpo_db[DPO_PROTO_NUM]
The 'DB' of GBP FWD DPOs. 
 
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
 
static clib_error_t * gbp_fwd_dpo_module_init(vlib_main_t *vm)
 
static uword gbp_fwd_dpo_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, fib_protocol_t fproto)
 
#define VLIB_NODE_FN(node)
 
u16 gfd_locks
number of locks. 
 
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment). 
 
enum fib_protocol_t_ fib_protocol_t
Protocol Type. 
 
static gbp_fwd_dpo_t * gbp_fwd_dpo_alloc(void)
 
vlib_node_registration_t ip6_gbp_fwd_dpo_node
(constructor) VLIB_REGISTER_NODE (ip6_gbp_fwd_dpo_node) 
 
enum dpo_type_t_ dpo_type_t
Common types of data-path objects New types can be dynamically added using dpo_register_new_type() ...
 
#define VLIB_INIT_FUNCTION(x)
 
static const char *const gbp_fwd_dpo_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a glean object. 
 
static const dpo_id_t * gbp_epg_dpo_lookup(sclass_t sclass, fib_protocol_t fproto)
 
enum dpo_proto_t_ dpo_proto_t
Data path protocol. 
 
dpo_type_t dpo_register_new_type(const dpo_vft_t *vft, const char *const *const *nodes)
Create and register a new DPO type. 
 
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
 
dpo_type_t dpoi_type
the type 
 
#define pool_put(P, E)
Free an object E in pool P. 
 
struct gbp_fwd_dpo_trace_t_ gbp_fwd_dpo_trace_t
 
static gbp_fwd_dpo_t * gbp_fwd_dpo_get_from_dpo(const dpo_id_t *dpo)
 
#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 u8 * format_gbp_fwd_dpo_trace(u8 *s, va_list *args)
 
static gbp_fwd_dpo_t * gbp_fwd_dpo_get(index_t index)
 
#define VLIB_REGISTER_NODE(x,...)
 
dpo_type_t gbp_fwd_dpo_get_type(void)
 
u8 * format_gbp_fwd_dpo(u8 *s, va_list *ap)
 
vlib_node_registration_t ip4_gbp_fwd_dpo_node
(constructor) VLIB_REGISTER_NODE (ip4_gbp_fwd_dpo_node) 
 
void gbp_fwd_dpo_add_or_lock(dpo_proto_t dproto, dpo_id_t *dpo)
 
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. 
 
void dpo_set(dpo_id_t *dpo, dpo_type_t type, dpo_proto_t proto, index_t index)
Set/create a DPO ID The DPO will be locked. 
 
vlib_main_t vlib_node_runtime_t * node
 
static index_t gbp_fwd_dpo_get_index(gbp_fwd_dpo_t *gfd)
 
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran. 
 
static void gbp_fwd_dpo_unlock(dpo_id_t *dpo)
 
static dpo_type_t gbp_fwd_dpo_type
DPO type registered for these GBP FWD. 
 
gbp_fwd_dpo_t * gbp_fwd_dpo_pool
pool of all interface DPOs 
 
static void gbp_fwd_dpo_lock(dpo_id_t *dpo)
 
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
 
static const char *const gbp_fwd_dpo_ip6_nodes[]
 
index_t dpoi_index
the index of objects of that type 
 
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
 
VLIB buffer representation. 
 
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data. 
 
u8 * format_dpo_proto(u8 *s, va_list *args)
format a DPO protocol 
 
static const char *const  *const gbp_fwd_dpo_nodes[DPO_PROTO_NUM]
 
#define FOR_EACH_DPO_PROTO(_proto)
 
dpo_proto_t gfd_proto
The protocol of packets using this DPO. 
 
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.