FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
pw_cw.h File Reference
+ Include dependency graph for pw_cw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pw_cw_dpo_t
 A representation of a Psuedo Wire Control Word pop DPO. More...
 

Typedefs

typedef u32 pw_cw_t
 A Psuedo Wire Control Word is 4 bytes. More...
 
typedef struct pw_cw_dpo_t pw_cw_dpo_t
 A representation of a Psuedo Wire Control Word pop DPO. More...
 

Functions

 STATIC_ASSERT_SIZEOF (pw_cw_dpo_t, 2 *sizeof(u64))
 Assert that the MPLS label object is less than a cache line in size. More...
 
void pw_cw_dpo_create (const dpo_id_t *paremt, dpo_id_t *dpo)
 Create an PW CW pop. More...
 
u8format_pw_cw_dpo (u8 *s, va_list *args)
 
static pw_cw_dpo_tpw_cw_dpo_get (index_t index)
 
void pw_cw_dpo_module_init (void)
 

Variables

pw_cw_dpo_tpw_cw_dpo_pool
 

Typedef Documentation

◆ pw_cw_dpo_t

typedef struct pw_cw_dpo_t pw_cw_dpo_t

A representation of a Psuedo Wire Control Word pop DPO.

◆ pw_cw_t

typedef u32 pw_cw_t

A Psuedo Wire Control Word is 4 bytes.

Definition at line 26 of file pw_cw.h.

Function Documentation

◆ format_pw_cw_dpo()

u8* format_pw_cw_dpo ( u8 s,
va_list *  args 
)

Definition at line 68 of file pw_cw.c.

+ Here is the call graph for this function:

◆ pw_cw_dpo_create()

void pw_cw_dpo_create ( const dpo_id_t paremt,
dpo_id_t dpo 
)

Create an PW CW pop.

Parameters
parentThe parent of the created MPLS label object
dpoThe PW CW DPO created

Definition at line 43 of file pw_cw.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pw_cw_dpo_get()

static pw_cw_dpo_t* pw_cw_dpo_get ( index_t  index)
inlinestatic

Definition at line 73 of file pw_cw.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pw_cw_dpo_module_init()

void pw_cw_dpo_module_init ( void  )

Definition at line 310 of file pw_cw.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ STATIC_ASSERT_SIZEOF()

STATIC_ASSERT_SIZEOF ( pw_cw_dpo_t  ,
2 *  sizeofu64 
)

Assert that the MPLS label object is less than a cache line in size.

Should this get any bigger then we will need to reconsider how many labels can be pushed in one object.

Variable Documentation

◆ pw_cw_dpo_pool

pw_cw_dpo_t* pw_cw_dpo_pool

Definition at line 24 of file pw_cw.c.