aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pkt_sched.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-05 15:14:25 -0500
committerThomas Graf <tgr@axs.localdomain>2005-11-05 16:02:28 -0500
commit1e4dfaf9b99a8b652e8421936fd5fe2459da8265 (patch)
treec2ecbf7558fcd34b054f28a797d6f3e88ab468a2 /include/linux/pkt_sched.h
parent6214e653cc578947bf83d6766339a18a41c5b923 (diff)
[PKT_SCHED]: GRED: Cleanup and remove unnecessary code
Removes unnecessary includes, initializers, and simplifies the code a bit. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'include/linux/pkt_sched.h')
-rw-r--r--include/linux/pkt_sched.h48
1 files changed, 22 insertions, 26 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index 60ffcb9c5791..d053add3dca7 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -194,38 +194,34 @@ enum
194 194
195#define TCA_GRED_MAX (__TCA_GRED_MAX - 1) 195#define TCA_GRED_MAX (__TCA_GRED_MAX - 1)
196 196
197#define TCA_SET_OFF TCA_GRED_PARMS
198struct tc_gred_qopt 197struct tc_gred_qopt
199{ 198{
200 __u32 limit; /* HARD maximal queue length (bytes) 199 __u32 limit; /* HARD maximal queue length (bytes) */
201*/ 200 __u32 qth_min; /* Min average length threshold (bytes) */
202 __u32 qth_min; /* Min average length threshold (bytes) 201 __u32 qth_max; /* Max average length threshold (bytes) */
203*/ 202 __u32 DP; /* upto 2^32 DPs */
204 __u32 qth_max; /* Max average length threshold (bytes) 203 __u32 backlog;
205*/ 204 __u32 qave;
206 __u32 DP; /* upto 2^32 DPs */ 205 __u32 forced;
207 __u32 backlog; 206 __u32 early;
208 __u32 qave; 207 __u32 other;
209 __u32 forced; 208 __u32 pdrop;
210 __u32 early; 209 __u8 Wlog; /* log(W) */
211 __u32 other; 210 __u8 Plog; /* log(P_max/(qth_max-qth_min)) */
212 __u32 pdrop; 211 __u8 Scell_log; /* cell size for idle damping */
213 212 __u8 prio; /* prio of this VQ */
214 unsigned char Wlog; /* log(W) */ 213 __u32 packets;
215 unsigned char Plog; /* log(P_max/(qth_max-qth_min)) */ 214 __u32 bytesin;
216 unsigned char Scell_log; /* cell size for idle damping */
217 __u8 prio; /* prio of this VQ */
218 __u32 packets;
219 __u32 bytesin;
220}; 215};
216
221/* gred setup */ 217/* gred setup */
222struct tc_gred_sopt 218struct tc_gred_sopt
223{ 219{
224 __u32 DPs; 220 __u32 DPs;
225 __u32 def_DP; 221 __u32 def_DP;
226 __u8 grio; 222 __u8 grio;
227 __u8 pad1; 223 __u8 pad1;
228 __u16 pad2; 224 __u16 pad2;
229}; 225};
230 226
231/* HTB section */ 227/* HTB section */