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

Go to the source code of this file.

Data Structures

struct  red_stats
 
struct  red_parms
 
struct  red_vars
 

Macros

#define RED_ONE_PERCENT   ((u32)DIV_ROUND_CLOSEST(1ULL<<32, 100))
 
#define MAX_P_MIN   (1 * RED_ONE_PERCENT)
 
#define MAX_P_MAX   (50 * RED_ONE_PERCENT)
 
#define MAX_P_ALPHA(val)   min(MAX_P_MIN, val / 4)
 
#define RED_STAB_SIZE   256
 
#define RED_STAB_MASK   (RED_STAB_SIZE - 1)
 

Enumerations

enum  { RED_BELOW_MIN_THRESH, RED_BETWEEN_TRESH, RED_ABOVE_MAX_TRESH }
 
enum  { RED_DONT_MARK, RED_PROB_MARK, RED_HARD_MARK }
 

Macro Definition Documentation

#define MAX_P_ALPHA (   val)    min(MAX_P_MIN, val / 4)

Definition at line 113 of file red.h.

#define MAX_P_MAX   (50 * RED_ONE_PERCENT)

Definition at line 112 of file red.h.

#define MAX_P_MIN   (1 * RED_ONE_PERCENT)

Definition at line 111 of file red.h.

#define RED_ONE_PERCENT   ((u32)DIV_ROUND_CLOSEST(1ULL<<32, 100))

Definition at line 109 of file red.h.

#define RED_STAB_MASK   (RED_STAB_SIZE - 1)

Definition at line 116 of file red.h.

#define RED_STAB_SIZE   256

Definition at line 115 of file red.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
RED_BELOW_MIN_THRESH 
RED_BETWEEN_TRESH 
RED_ABOVE_MAX_TRESH 

Definition at line 332 of file red.h.

anonymous enum
Enumerator:
RED_DONT_MARK 
RED_PROB_MARK 
RED_HARD_MARK 

Definition at line 348 of file red.h.