FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
gbp_endpoint.h File Reference
+ Include dependency graph for gbp_endpoint.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gbp_endpoint_key_t_
 The key for an Endpoint. More...
 
struct  gbp_endpoint_t_
 A Group Based Policy Endpoint. More...
 
struct  gbp_itf_t_
 Result of a interface to EPG mapping. More...
 
struct  gbp_itf_to_epg_db_t_
 Interface to source EPG DB - a per-interface vector. More...
 

Typedefs

typedef struct gbp_endpoint_key_t_ gbp_endpoint_key_t
 The key for an Endpoint. More...
 
typedef struct gbp_endpoint_t_ gbp_endpoint_t
 A Group Based Policy Endpoint. More...
 
typedef struct gbp_itf_t_ gbp_itf_t
 Result of a interface to EPG mapping. More...
 
typedef struct gbp_itf_to_epg_db_t_ gbp_itf_to_epg_db_t
 Interface to source EPG DB - a per-interface vector. More...
 
typedef int(* gbp_endpoint_cb_t) (gbp_endpoint_t *gbpe, void *ctx)
 

Functions

int gbp_endpoint_update (u32 sw_if_index, const ip46_address_t *ip, epg_id_t epg_id)
 
void gbp_endpoint_delete (u32 sw_if_index, const ip46_address_t *ip)
 
void gbp_endpoint_walk (gbp_endpoint_cb_t cb, void *ctx)
 
void gbp_itf_epg_update (u32 sw_if_index, epg_id_t src_epg, u8 do_policy)
 Port to EPG mapping management. More...
 
void gbp_itf_epg_delete (u32 sw_if_index)
 
static u32 gbp_port_to_epg (u32 sw_if_index)
 Get the source EPG for a port/interface. More...
 

Variables

gbp_itf_to_epg_db_t gbp_itf_to_epg_db
 DP functions and databases. More...
 

Typedef Documentation

typedef int(* gbp_endpoint_cb_t) (gbp_endpoint_t *gbpe, void *ctx)

Definition at line 79 of file gbp_endpoint.h.

The key for an Endpoint.

A Group Based Policy Endpoint.

This is typcially a VM on the local compute node for which policy must be locally applied

typedef struct gbp_itf_t_ gbp_itf_t

Result of a interface to EPG mapping.

multiple Endpoints can occur on the same interface, so this mapping needs to be reference counted.

Interface to source EPG DB - a per-interface vector.

Function Documentation

void gbp_endpoint_delete ( u32  sw_if_index,
const ip46_address_t *  ip 
)

Definition at line 192 of file gbp_endpoint.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int gbp_endpoint_update ( u32  sw_if_index,
const ip46_address_t *  ip,
epg_id_t  epg_id 
)

Definition at line 135 of file gbp_endpoint.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_endpoint_walk ( gbp_endpoint_cb_t  cb,
void *  ctx 
)

Definition at line 220 of file gbp_endpoint.c.

+ Here is the caller graph for this function:

void gbp_itf_epg_delete ( u32  sw_if_index)

Definition at line 117 of file gbp_endpoint.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gbp_itf_epg_update ( u32  sw_if_index,
epg_id_t  src_epg,
u8  do_policy 
)

Port to EPG mapping management.

Definition at line 98 of file gbp_endpoint.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 gbp_port_to_epg ( u32  sw_if_index)
inlinestatic

Get the source EPG for a port/interface.

Definition at line 98 of file gbp_endpoint.h.

+ Here is the caller graph for this function:

Variable Documentation

gbp_itf_to_epg_db_t gbp_itf_to_epg_db

DP functions and databases.

Definition at line 55 of file gbp_endpoint.c.