16 #ifndef __GBP_ENDPOINT_H__ 17 #define __GBP_ENDPOINT_H__ 95 const ip46_address_t * ip,
u32 ge_sw_if_index
The interface on which the EP is connected.
static gbp_endpoint_t * gbp_endpoint_get(index_t gbpei)
Get the endpoint from a port/interface.
A Group Based Policy Endpoint.
struct gbp_ep_by_ip_itf_db_t_ gbp_ep_by_ip_itf_db_t
gbp_ep_by_itf_db_t gbp_ep_by_itf_db
DP functions and databases.
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_delete(u32 handle)
mac_address_t ge_mac
MAC address of the endpoint.
gbp_endpoint_flags_t_
Flags for each endpoint.
enum walk_rc_t_ walk_rc_t
Walk return code.
gbp_ep_by_mac_itf_db_t gbp_ep_by_mac_itf_db
clib_bihash_24_8_t gte_table
gbp_endpoint_t * gbp_endpoint_pool
Pool of GBP endpoints.
struct gbp_ep_by_itf_db_t_ gbp_ep_by_itf_db_t
Interface to source EPG DB - a per-interface vector.
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
clib_bihash_16_8_t gte_table
Interface to source EPG DB - a per-interface vector.
u8 * format_gbp_endpoint(u8 *s, va_list *args)
ip46_address_t * ge_ips
A vector of ip addresses that below to the endpoint.
static gbp_endpoint_t * gbp_endpoint_get_itf(u32 sw_if_index)
struct gbp_ep_by_mac_itf_db_t_ gbp_ep_by_mac_itf_db_t
walk_rc_t(* gbp_endpoint_cb_t)(gbp_endpoint_t *gbpe, void *ctx)
struct gbp_endpoint_t_ gbp_endpoint_t
A Group Based Policy Endpoint.
enum gbp_endpoint_flags_t_ gbp_endpoint_flags_t
Flags for each endpoint.
void gbp_endpoint_walk(gbp_endpoint_cb_t cb, void *ctx)
epg_id_t ge_epg_id
The endpoint's designated EPG.
gbp_ep_by_ip_itf_db_t gbp_ep_by_ip_itf_db
gbp_endpoint_flags_t ge_flags
Endpoint flags.
int gbp_endpoint_update(u32 sw_if_index, const ip46_address_t *ip, const mac_address_t *mac, epg_id_t epg_id, u32 *handle)