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

Go to the source code of this file.

Data Structures

struct  abf_policy_t_
 An ACL based Forwading 'policy'. More...
 

Macros

#define ABF_PLUGIN_VERSION_MAJOR   1
 
#define ABF_PLUGIN_VERSION_MINOR   0
 

Typedefs

typedef struct abf_policy_t_ abf_policy_t
 An ACL based Forwading 'policy'. More...
 
typedef int(* abf_policy_walk_cb_t) (index_t index, void *ctx)
 Callback function invoked during a walk of all policies. More...
 

Functions

abf_policy_tabf_policy_get (index_t index)
 Get an ABF object from its VPP index. More...
 
index_t abf_policy_find (u32 policy_id)
 Find a ABF object from the client's policy ID. More...
 
void abf_policy_update (u32 policy_id, u32 acl_index, const fib_route_path_t *rpaths)
 Create or update an ABF Policy. More...
 
int abf_policy_delete (u32 policy_id, const fib_route_path_t *rpaths)
 Delete paths from an ABF Policy. More...
 
void abf_policy_walk (abf_policy_walk_cb_t cb, void *ctx)
 Walk/visit each of the ABF policies. More...
 

Variables

fib_node_type_t abf_policy_fib_node_type
 The FIB node type for ABF policies. More...
 

Macro Definition Documentation

#define ABF_PLUGIN_VERSION_MAJOR   1

Definition at line 21 of file abf_policy.h.

#define ABF_PLUGIN_VERSION_MINOR   0

Definition at line 22 of file abf_policy.h.

Typedef Documentation

typedef struct abf_policy_t_ abf_policy_t

An ACL based Forwading 'policy'.

This comprises the ACL index to match against and the forwarding path to take if the match is successfull.

ABF policies are then 'attached' to interfaces. An input feature will run through the list of policies a match will divert the packet, if all miss then we continues down the interface's feature arc

typedef int(* abf_policy_walk_cb_t) (index_t index, void *ctx)

Callback function invoked during a walk of all policies.

Definition at line 102 of file abf_policy.h.

Function Documentation

int abf_policy_delete ( u32  policy_id,
const fib_route_path_t rpaths 
)

Delete paths from an ABF Policy.

If no more paths exist, the policy is deleted.

Parameters
policy_idUser defined Policy ID
rpathsThe set of paths to forward remove

Definition at line 175 of file abf_policy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

index_t abf_policy_find ( u32  policy_id)

Find a ABF object from the client's policy ID.

Parameters
policy_idClient's defined policy ID
Returns
VPP's object index

Definition at line 66 of file abf_policy.c.

+ Here is the caller graph for this function:

abf_policy_t* abf_policy_get ( index_t  index)

Get an ABF object from its VPP index.

Definition at line 41 of file abf_policy.c.

+ Here is the caller graph for this function:

void abf_policy_update ( u32  policy_id,
u32  acl_index,
const fib_route_path_t rpaths 
)

Create or update an ABF Policy.

Parameters
policy_idUser defined Policy ID
acl_indexThe ACL the policy with match on
rpathsThe set of paths to add to the forwarding set

Definition at line 80 of file abf_policy.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void abf_policy_walk ( abf_policy_walk_cb_t  cb,
void *  ctx 
)

Walk/visit each of the ABF policies.

Definition at line 328 of file abf_policy.c.

+ Here is the caller graph for this function:

Variable Documentation

fib_node_type_t abf_policy_fib_node_type

The FIB node type for ABF policies.

The FIB node type for ABF policies.

Definition at line 26 of file abf_policy.c.