20 #ifndef __RECEIVE_DPO_H__ 21 #define __RECEIVE_DPO_H__ 54 const ip46_address_t *nh_addr,
void receive_dpo_add_or_lock(dpo_proto_t proto, u32 sw_if_index, const ip46_address_t *nh_addr, dpo_id_t *dpo)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
int dpo_is_receive(const dpo_id_t *dpo)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
required for pool_get_aligned.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
void receive_dpo_module_init(void)
static receive_dpo_t * receive_dpo_get(index_t index)
struct receive_dpo_t_ receive_dpo_t
The data-path object representing receiveing the packet, i.e.
u32 rd_sw_if_index
The Software interface index on which traffic is received.
The data-path object representing receiveing the packet, i.e.
ip46_address_t rd_addr
The address on the receive interface.
u16 rd_locks
number oflocks.
receive_dpo_t * receive_dpo_pool
pool of all receive DPOs