Cookiem - 2005-01-26

Hi i have created esfq patch:

--- htb.init-eth1 2005-01-27 16:09:14.000000000 +0200
+++ htb.init-eth0 2005-01-27 16:08:17.000000000 +0200
@@ -404,9 +404,7 @@
#############################################################################

export LC_ALL=C
-
devme="eth0"
-
### Command locations
TC=/sbin/tc
IP=/sbin/ip
@@ -429,14 +427,14 @@

### Modules to probe for. Uncomment the last HTB_PROBE
### line if you have QoS support compiled into kernel
-HTB_PROBE="sch_htb sch_sfq cls_fw cls_u32 cls_route"
+HTB_PROBE="sch_htb sch_sfq sch_esfq cls_fw cls_u32 cls_route"
#HTB_PROBE=""

### Config keywords
HTB_QDISC="DEFAULT\|DCACHE\|R2Q"
HTB_CLASS="RATE\|CEIL\|BURST\|CBURST\|PRIO\|LEAF\|MTU"
HTB_CLASS="$HTB_CLASS\|PRIO_RULE\|PRIO_MARK\|PRIO_REALM"
-HTB_CLASS="$HTB_CLASS\|LIMIT\|QUANTUM\|PERTURB"
+HTB_CLASS="$HTB_CLASS\|LIMIT\|QUANTUM\|PERTURB|HASH"

#############################################################################
@@ -608,15 +606,15 @@
### Display traffic control setup
htb_show () {
   [ `tc qdisc show dev $devme| wc -l` -eq 0 ] && continue
-  echo -e "### $devme: queueing disciplines\n"
+  echo -e "### $dev: queueing disciplines\n"
   tc $1 qdisc show dev $devme; echo

   [ `tc class show dev $devme| wc -l` -eq 0 ] && continue
-  echo -e "### $devme: traffic classes\n"
+  echo -e "### $dev: traffic classes\n"
   tc $1 class show dev $devme; echo

   [ `tc filter show dev $devme| wc -l` -eq 0 ] && continue
-  echo -e "### $devme: filtering rules\n"
+  echo -e "### $dev: filtering rules\n"
   tc $1 filter show dev $devme; echo
} # htb_show

@@ -646,7 +644,7 @@
  ### Set defaults & load class
  MTU=""; LEAF=none; PERTURB=10
  RATE=""; BURST=""; CEIL=""; CBURST=""
- PRIO=""; LIMIT=""; QUANTUM=""
+ PRIO=""; LIMIT=""; QUANTUM=""; HASH=""
 
  PRIO_RULE=$PRIO_RULE_DEFAULT
  PRIO_MARK=$PRIO_MARK_DEFAULT
@@ -801,6 +799,8 @@
    LEAFPARM="${PERTURB:+perturb $PERTURB} ${QUANTUM:+quantum $QUANTUM}"
   elif [ "$LEAF" = "pfifo" -o "$LEAF" = "bfifo" ]; then
    LEAFPARM="${LIMIT:+limit $LIMIT}"
+  elif [ "$LEAF" = "esfq" ]; then
+   LEAFPARM="${PERTURB:+perturb $PERTURB} ${QUANTUM:+QUANTUM $QUANTUM} ${HASH:+hash $HASH}"
   else
    htb_fail_off "unknown leaf qdisc ($LEAF) in $classfile!"
   fi