FD.io VPP  v16.09
Vector Packet Processing
spp_timers.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  d_list_el_
 
struct  spp_timer_wheel_t
 
struct  spp_timer_axle_t
 
struct  spp_timer_t
 

Macros

#define TIMER_BKTS_PER_WHEEL   128 /* power of 2, please */
 
#define TIMER_NWHEELS   4
 
#define SPP_TIMER_RUNNING   0x0001
 

Typedefs

typedef struct d_list_el_ d_list_el_t
 

Functions

static void d_list_init (d_list_el_t *headp)
 
static void d_list_add_head (d_list_el_t *headp, d_list_el_t *elp)
 
static void d_list_add_tail (d_list_el_t *headp, d_list_el_t *elp)
 
static d_list_el_td_list_rem_head (d_list_el_t *headp)
 
static void d_list_rem_elem (d_list_el_t *elp)
 
void spp_timer_set_ticks_per_ms (u64)
 
void spp_timer_axle_init (spp_timer_axle_t *ta)
 
void spp_timer_expire (spp_timer_axle_t *ta, u64 now)
 
void spp_timer_final_init (void)
 
void spp_timer_start (spp_timer_t *tp)
 
void spp_timer_start_axle (spp_timer_axle_t *ta, spp_timer_t *tp)
 
void spp_timer_stop (spp_timer_t *tp)
 
u16 spp_timer_register_callback (void(*fp)(spp_timer_t *))
 

Macro Definition Documentation

#define SPP_TIMER_RUNNING   0x0001

Definition at line 123 of file spp_timers.h.

#define TIMER_BKTS_PER_WHEEL   128 /* power of 2, please */

Definition at line 101 of file spp_timers.h.

#define TIMER_NWHEELS   4

Definition at line 102 of file spp_timers.h.

Typedef Documentation

typedef struct d_list_el_ d_list_el_t

Function Documentation

static void d_list_add_head ( d_list_el_t headp,
d_list_el_t elp 
)
inlinestatic

Definition at line 41 of file spp_timers.h.

static void d_list_add_tail ( d_list_el_t headp,
d_list_el_t elp 
)
inlinestatic

Definition at line 56 of file spp_timers.h.

static void d_list_init ( d_list_el_t headp)
inlinestatic

Definition at line 32 of file spp_timers.h.

static void d_list_rem_elem ( d_list_el_t elp)
inlinestatic

Definition at line 90 of file spp_timers.h.

static d_list_el_t* d_list_rem_head ( d_list_el_t headp)
inlinestatic

Definition at line 73 of file spp_timers.h.

void spp_timer_axle_init ( spp_timer_axle_t ta)
void spp_timer_expire ( spp_timer_axle_t ta,
u64  now 
)
void spp_timer_final_init ( void  )
u16 spp_timer_register_callback ( void(*)(spp_timer_t *)  fp)
void spp_timer_set_ticks_per_ms ( u64  )
void spp_timer_start ( spp_timer_t tp)
void spp_timer_start_axle ( spp_timer_axle_t ta,
spp_timer_t tp 
)
void spp_timer_stop ( spp_timer_t tp)