diff options
author | Patrick McHardy <kaber@trash.net> | 2008-11-20 13:10:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 13:10:00 +0100 |
commit | 13d2a1d2b032de08d7dcab6a1edcd47802681f96 (patch) | |
tree | a60915e015f1dc7a9b5681ef5c5135c59167edb3 /include | |
parent | netlink: avoid memset of 0 bytes sparse warning (diff) | |
download | linux-13d2a1d2b032de08d7dcab6a1edcd47802681f96.tar.xz linux-13d2a1d2b032de08d7dcab6a1edcd47802681f96.zip |
pkt_sched: add DRR scheduler
Add classful DRR scheduler as a more flexible replacement for SFQ.
The main difference to the algorithm described in "Efficient Fair Queueing
using Deficit Round Robin" is that this implementation doesn't drop packets
from the longest queue on overrun because its classful and limits are
handled by each individual child qdisc.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pkt_sched.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h index 5d921fa91a5b..e3f133adba78 100644 --- a/include/linux/pkt_sched.h +++ b/include/linux/pkt_sched.h @@ -500,4 +500,20 @@ struct tc_netem_corrupt #define NETEM_DIST_SCALE 8192 +/* DRR */ + +enum +{ + TCA_DRR_UNSPEC, + TCA_DRR_QUANTUM, + __TCA_DRR_MAX +}; + +#define TCA_DRR_MAX (__TCA_DRR_MAX - 1) + +struct tc_drr_stats +{ + u32 deficit; +}; + #endif |