iproute: add DRR support
Subsystems (2)
This patch adds support for the DRR scheduler I just sent to iproute.
commit 2d51cb0c3bd75c92ddedf4114568af57ab277bf6
Author: Patrick McHardy <[email protected]> Date: Wed Nov 19 16:03:25 2008 +0100
iproute: add DRR support
include/linux/pkt_sched.h +16 -0
@@ -493,4 +493,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
tc/Makefile +1 -0
@@ -25,6 +25,7 @@ TCMODULES += f_tcindex.o TCMODULES += q_ingress.o TCMODULES += q_hfsc.o TCMODULES += q_htb.o +TCMODULES += q_drr.o TCMODULES += m_gact.o TCMODULES += m_mirred.o TCMODULES += m_ipt.o
tc/q_drr.c new file +124 -0
124 lines not on this page · raw message
Quoted 11 lines · Patrick McHardy
This patch adds support for the DRR scheduler I just sent to iproute.
+ *
q_drr.cWRR.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ *
+ * Authors: Martin Devera <[email protected]>
I forgot to remove left-overs from my template :)
Fixed version attached.
commit 4b029a05be7f9101a6f0c2fd19e06f6af0ce5419
Author: Patrick McHardy <[email protected]> Date: Wed Nov 19 16:07:08 2008 +0100
iproute: add DRR support
include/linux/pkt_sched.h +16 -0
@@ -493,4 +493,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
tc/Makefile +1 -0
@@ -25,6 +25,7 @@ TCMODULES += f_tcindex.o TCMODULES += q_ingress.o TCMODULES += q_hfsc.o TCMODULES += q_htb.o +TCMODULES += q_drr.o TCMODULES += m_gact.o TCMODULES += m_mirred.o TCMODULES += m_ipt.o
tc/q_drr.c new file +124 -0
124 lines not on this page · raw message