]> git.pld-linux.org Git - packages/iproute2.git/commitdiff
- added part of htb2_2.2.17.diff to htb2_tc patch so iproute2 can be built
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 3 Mar 2002 20:29:25 +0000 (20:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  with kernel-headers without htb2 patch

Changed files:
    iproute2-htb2_tc.patch -> 1.2
    iproute2.spec -> 1.56

iproute2-htb2_tc.patch

index 2e6ec3737f3aa730098c553a3ea1b750f688cefa..446bdb03545d56f9c2669b129b2cc7c34fe14b36 100644 (file)
@@ -1,6 +1,6 @@
 --- iproute2/tc/q_htb.c        Sun Oct 21 22:07:29 2001
 +++ iproute2new/tc/q_htb.c     Wed Dec 19 16:51:41 2001
-@@ -0,0 +1,291 @@
+@@ -0,0 +1,342 @@
 +/*
 + * q_htb.c            HTB.
 + *
 +#include "utils.h"
 +#include "tc_util.h"
 +
++#ifndef TC_HTB_NUMPRIO
++/* HTB section */
++#define TC_HTB_NUMPRIO                4
++#define TC_HTB_MAXDEPTH               4
++
++struct tc_htb_opt
++{
++      struct tc_ratespec      rate;
++      struct tc_ratespec      ceil;
++      __u32   buffer;
++      __u32   cbuffer;
++      __u32   quantum;        /* out only */
++      __u32   level;          /* out only */
++      __u8    prio;
++      __u8    injectd;        /* inject class distance */
++      __u8    pad[2];
++};
++struct tc_htb_glob
++{
++      __u32 rate2quantum;     /* bps->quantum divisor */
++      __u32 defcls;           /* default class number */
++      __u32 use_dcache;       /* use dequeue cache ? */
++      __u32 debug;            /* debug flags */
++
++
++      /* stats */
++      __u32 deq_rate; /* dequeue rate */
++      __u32 utilz;    /* dequeue utilization */
++      __u32 trials;   /* deq_prio trials per dequeue */
++      __u32 dcache_hits;
++      __u32 direct_pkts; /* count of non shapped packets */
++};
++enum
++{
++      TCA_HTB_UNSPEC,
++      TCA_HTB_PARMS,
++      TCA_HTB_INIT,
++      TCA_HTB_CTAB,
++      TCA_HTB_RTAB,
++};
++struct tc_htb_xstats
++{
++      __u32 lends;
++      __u32 borrows;
++      __u32 giants;   /* too big packets (rate will not be accurate) */
++      __u32 injects;  /* how many times leaf used injected bw */      
++      __u32 tokens;
++      __u32 ctokens;
++};
++#endif
++
 +static void explain(void)
 +{
 +      fprintf(stderr, "Usage: ... qdisc add ... htb [default N] [r2q N]\n"
This page took 0.030693 seconds and 4 git commands to generate.