Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
codel.h File Reference
#include <linux/types.h>
#include <linux/ktime.h>
#include <linux/skbuff.h>
#include <net/pkt_sched.h>
#include <net/inet_ecn.h>
#include <linux/reciprocal_div.h>

Go to the source code of this file.

Data Structures

struct  codel_skb_cb
 
struct  codel_params
 
struct  codel_vars
 
struct  codel_stats
 

Macros

#define CODEL_SHIFT   10
 
#define MS2TIME(a)   ((a * NSEC_PER_MSEC) >> CODEL_SHIFT)
 
#define codel_time_after(a, b)   ((s32)(a) - (s32)(b) > 0)
 
#define codel_time_after_eq(a, b)   ((s32)(a) - (s32)(b) >= 0)
 
#define codel_time_before(a, b)   ((s32)(a) - (s32)(b) < 0)
 
#define codel_time_before_eq(a, b)   ((s32)(a) - (s32)(b) <= 0)
 
#define REC_INV_SQRT_BITS   (8 * sizeof(u16)) /* or sizeof_in_bits(rec_inv_sqrt) */
 
#define REC_INV_SQRT_SHIFT   (32 - REC_INV_SQRT_BITS)
 

Typedefs

typedef u32 codel_time_t
 
typedef s32 codel_tdiff_t
 
typedef struct sk_buff *(* codel_skb_dequeue_t )(struct codel_vars *vars, struct Qdisc *sch)
 

Macro Definition Documentation

#define CODEL_SHIFT   10

Definition at line 65 of file codel.h.

#define codel_time_after (   a,
  b 
)    ((s32)(a) - (s32)(b) > 0)

Definition at line 75 of file codel.h.

#define codel_time_after_eq (   a,
  b 
)    ((s32)(a) - (s32)(b) >= 0)

Definition at line 76 of file codel.h.

#define codel_time_before (   a,
  b 
)    ((s32)(a) - (s32)(b) < 0)

Definition at line 77 of file codel.h.

#define codel_time_before_eq (   a,
  b 
)    ((s32)(a) - (s32)(b) <= 0)

Definition at line 78 of file codel.h.

#define MS2TIME (   a)    ((a * NSEC_PER_MSEC) >> CODEL_SHIFT)

Definition at line 66 of file codel.h.

#define REC_INV_SQRT_BITS   (8 * sizeof(u16)) /* or sizeof_in_bits(rec_inv_sqrt) */

Definition at line 143 of file codel.h.

#define REC_INV_SQRT_SHIFT   (32 - REC_INV_SQRT_BITS)

Definition at line 145 of file codel.h.

Typedef Documentation

typedef struct sk_buff*(* codel_skb_dequeue_t)(struct codel_vars *vars, struct Qdisc *sch)
read

Definition at line 245 of file codel.h.

typedef s32 codel_tdiff_t

Definition at line 64 of file codel.h.

typedef u32 codel_time_t

Definition at line 63 of file codel.h.