16 #ifndef __GBP_ENDPOINT_GROUP_H__ 17 #define __GBP_ENDPOINT_GROUP_H__ 97 u32 uplink_sw_if_index,
153 return (&gg->
gg_dpo[fproto]);
EPG DB, key'd on EGP-ID.
gbp_itf_hdl_t gg_uplink_itf
void gbp_endpoint_group_walk(gbp_endpoint_group_cb_t bgpe, void *ctx)
#define FIB_PROTOCOL_IP_MAX
Definition outside of enum so it does not need to be included in non-defaulted switch statements...
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
index_t gg_rd
route-domain/IP-table ID the EPG is in
Endpoint Retnetion Policy.
int gbp_endpoint_group_add_and_lock(vnid_t vnid, u16 sclass, u32 bd_id, u32 rd_id, u32 uplink_sw_if_index, const gbp_endpoint_retention_t *retention)
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
struct gbp_endpoint_retention_t_ gbp_endpoint_retention_t
Endpoint Retnetion Policy.
struct gpb_endpoint_group_t_ gbp_endpoint_group_t
An Endpoint Group representation.
index_t gbp_endpoint_group_find(sclass_t sclass)
gbp_endpoint_group_t * gbp_endpoint_group_pool
Pool of GBP endpoint_groups.
u8 gg_is_ext
Is the EPG an external/NAT.
static const dpo_id_t * gbp_epg_dpo_lookup(sclass_t sclass, fib_protocol_t fproto)
int(* gbp_endpoint_group_cb_t)(gbp_endpoint_group_t *gbpe, void *ctx)
u8 * format_gbp_endpoint_group(u8 *s, va_list *args)
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.
gbp_endpoint_group_db_t gbp_endpoint_group_db
DP functions and databases.
u32 remote_ep_timeout
Aging timeout for remote endpoints.
An Endpoint Group representation.
gbp_endpoint_group_t * gbp_endpoint_group_get(index_t i)
u32 gbp_endpoint_group_get_bd_id(const gbp_endpoint_group_t *)
static u32 gbp_epg_itf_lookup_sclass(sclass_t sclass)
u32 gg_locks
Locks/references to this EPG.
struct gbp_endpoint_group_db_t_ gbp_endpoint_group_db_t
EPG DB, key'd on EGP-ID.
index_t gbp_endpoint_group_get_fib_index(const gbp_endpoint_group_t *gg, fib_protocol_t fproto)
dpo_id_t gg_dpo[FIB_PROTOCOL_IP_MAX]
The DPO used in the L3 path for forwarding internal subnets.
gbp_endpoint_retention_t gg_retention
EP retention policy.
int gbp_endpoint_group_delete(sclass_t sclass)
void gbp_endpoint_group_unlock(index_t index)
void gbp_endpoint_group_lock(index_t index)
uword * gbp_epg_sclass_db
Map sclass to EPG.
u32 gg_uplink_sw_if_index
the uplink interface dedicated to the EPG
index_t gg_gbd
Bridge-domain ID the EPG is in.