/[gentoo-x86]/net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch
Gentoo

Contents of /net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Nov 15 00:47:32 2005 UTC (14 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Clean up ebuild, add a patch from Fedora, and add back in missing KEYWORDS along with arm love.
(Portage version: 2.0.53_rc7)

1 Use Gentoo friendly config paths and incorporate
2 cbq-0.7.1-avpkt-enhancement.patch from Fedora
3
4 --- cbqinit
5 +++ cbqinit
6 @@ -484,8 +484,8 @@
7 PRIO_REALM_DEFAULT=${PRIO_REALM:-300}
8
9 ### Default CBQ_PATH & CBQ_CACHE settings
10 -CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq}
11 -CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}
12 +CBQ_PATH=${CBQ_PATH:-/etc/cbqinit}
13 +CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbqinit}
14
15 ### Uncomment to enable logfile for debugging
16 #CBQ_DEBUG="/var/run/cbq-$1"
17 @@ -501,6 +501,9 @@
18 CBQ_WORDS="$CBQ_WORDS|PRIO_MARK|PRIO_RULE|PRIO_REALM|BUFFER"
19 CBQ_WORDS="$CBQ_WORDS|LIMIT|PEAK|MTU|QUANTUM|PERTURB"
20
21 +### Source AVPKT if it exists
22 +[ -r "${CBQ_PATH}/avpkt" ] && . "${CBQ_PATH}/avpkt"
23 +AVPKT=${AVPKT:-1000}
24
25 #############################################################################
26 ############################# SUPPORT FUNCTIONS #############################
27 @@ -749,7 +752,7 @@
28
29 ### Setup root qdisc + class for device
30 tc qdisc add dev $dev root handle 1 cbq \
31 - bandwidth $DEVBWDT avpkt 1000 cell 8
32 + bandwidth $DEVBWDT avpkt $AVPKT cell 8
33
34 ### Set weight of the root class if set
35 [ -n "$DEVWGHT" ] &&
36 @@ -766,7 +769,7 @@
37 ### Create the class
38 tc class add dev $DEVICE parent 1:$PARENT classid 1:$CLASS cbq \
39 bandwidth $BANDWIDTH rate $RATE weight $WEIGHT prio $PRIO \
40 - allot 1514 cell 8 maxburst 20 avpkt 1000 $BOUNDED $ISOLATED ||
41 + allot 1514 cell 8 maxburst 20 avpkt $AVPKT $BOUNDED $ISOLATED ||
42 cbq_fail_off "failed to add class $CLASS with parent $PARENT on $DEVICE!"
43
44 ### Create leaf qdisc if set
45 @@ -940,7 +943,7 @@
46 ### Replace CBQ class
47 tc class replace dev $DEVICE classid 1:$CLASS cbq \
48 bandwidth $BANDWIDTH rate $NEW_RATE weight $NEW_WGHT prio $PRIO \
49 - allot 1514 cell 8 maxburst 20 avpkt 1000 $BOUNDED $ISOLATED
50 + allot 1514 cell 8 maxburst 20 avpkt $AVPKT $BOUNDED $ISOLATED
51
52 ### Replace leaf qdisc (if any)
53 if [ "$LEAF" = "tbf" ]; then

  ViewVC Help
Powered by ViewVC 1.1.20