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