Hello!

> The patch is as follows:

Seems, it should look like:

if (pmap_mode) {
        for (; idx < TC_PRIO_MAX; idx++)
        opt.priomap[idx] = opt.priomap[TC_PRIO_BESTEFFORT];
}

At least, it looks like this in my current tree. Please, check,
I do not remember that I tested it.

> band 1: highest priority - packets of type A up to 10% of link bandwidth.
> band 2: second highest priority - packets of type B up to 10% of link
>       bandwidth.
> band 3: default priority: packets of type A and B over
>       the 10% of link bandwidth, packets of type C.
> band 4: packets of type D. Lowest priority, no reserved bandwidth.
> 
>       Can this be done using fwmark classifier and prio qdisc (maybe with
> TBF attached to band 1 and 2?

No. You may achive it only with classifier supporting multiple
policing filters. fwmark is the only one, which does not undesratnd them.

It is something sort of:

tc filter add ....... handle A fwmark classid 1 \
  police rate <10%> burst 10K action continue
tc filter add ....... handle A fwmark classid 3

tc filter add ....... handle B fwmark classid 2
  police rate <10%> burst 10K action continue
tc filter add ....... handle B fwmark classid 3 \

With default set to 4.

But fwmark will not eat this.


Try the following: mark all the packet but A and B with a third fwmark XXX
and make:

tc filter add ....... handle A fwmark classid 1 \
  police rate <10%> burst 10K action continue
tc filter add ....... handle B fwmark classid 2 \
  police rate <10%> burst 10K action continue
tc filter add ....... handle XXX fwmark classid 4

And set default to 3. Seems, it should work.



You may get the effect with CBQ, if create hierarchy sort of:

root-------|
|          |
AB-|--|    D 
|  |  |
A  B  C

and tell him to reclassify exess packets from A and B to C
(look at cbqinit.eth1, it makes exactly this for RSVP,
class AB is :7FFF there, and class C is :7FFE.) 
Then you replace "continue" with "reclassofy" in policers
setup above and that's all.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to