FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
mma_template.h File Reference
+ Include dependency graph for mma_template.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RTT
 
struct  RTT
 
struct  RTT
 

Macros

#define RT(a)   __rt(a, MMA_RT_TYPE)
 
#define RTT(a)   __rtt(a, MMA_RT_TYPE)
 
#define MMA_TABLE_INVALID_INDEX   ((u32)~0)
 

Typedefs

typedef int(*)(RTT(mma_rule) *rule1, RTT(mma_rule) *rule2 RTT) (rule_cmp_fn)
 

Functions

u32 RT() mma_table_lookup (RTT(mma_rules_table) *srt, RTT(mma_mask_or_match) *key, u32 rule_index)
 
u32 RT() mma_table_lookup_rule (RTT(mma_rules_table) *srt, RTT(mma_mask_or_match) *key, u32 rule_index)
 
int RT() mma_table_add_rule (RTT(mma_rules_table) *srt, RTT(mma_rule) *rule)
 
int RT() mma_table_del_rule (RTT(mma_rules_table) *srt, RTT(mma_rule) *rule, u32 rule_index)
 
 RTT (mma_rule) *RT(mma_rules_table_rule_alloc)(RTT(mma_rules_table) *srt)
 
u32 RT() mma_rules_table_rule_index (RTT(mma_rules_table) *srt, RTT(mma_rule) *sr)
 

Variables

u32 srt_index
 

Macro Definition Documentation

◆ MMA_TABLE_INVALID_INDEX

#define MMA_TABLE_INVALID_INDEX   ((u32)~0)

Definition at line 33 of file mma_template.h.

◆ RT

#define RT (   a)    __rt(a, MMA_RT_TYPE)

Definition at line 27 of file mma_template.h.

◆ RTT

#define RTT (   a)    __rtt(a, MMA_RT_TYPE)

Definition at line 31 of file mma_template.h.

Typedef Documentation

◆ RTT

RTT

Definition at line 51 of file mma_template.h.

Function Documentation

◆ mma_rules_table_rule_index()

u32 RT() mma_rules_table_rule_index ( RTT(mma_rules_table) *  srt,
RTT(mma_rule) *  sr 
)

Definition at line 77 of file mma_template.c.

+ Here is the caller graph for this function:

◆ mma_table_add_rule()

int RT() mma_table_add_rule ( RTT(mma_rules_table) *  srt,
RTT(mma_rule) *  rule 
)

◆ mma_table_del_rule()

int RT() mma_table_del_rule ( RTT(mma_rules_table) *  srt,
RTT(mma_rule) *  rule,
u32  rule_index 
)

◆ mma_table_lookup()

u32 RT() mma_table_lookup ( RTT(mma_rules_table) *  srt,
RTT(mma_mask_or_match) *  key,
u32  rule_index 
)

◆ mma_table_lookup_rule()

u32 RT() mma_table_lookup_rule ( RTT(mma_rules_table) *  srt,
RTT(mma_mask_or_match) *  key,
u32  rule_index 
)

◆ RTT()

RTT ( mma_rule  )

Variable Documentation

◆ srt_index

u32 srt_index

Definition at line 80 of file mma_template.h.