Linux Kernel
3.7.1
|
#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 } |
#define MAX_P_MAX (50 * RED_ONE_PERCENT) |
#define MAX_P_MIN (1 * RED_ONE_PERCENT) |
#define RED_ONE_PERCENT ((u32)DIV_ROUND_CLOSEST(1ULL<<32, 100)) |
#define RED_STAB_MASK (RED_STAB_SIZE - 1) |
anonymous enum |