Re: [LARTC] Limited number of bands in PRIO qdisc

2007-08-27 Thread Andy Furniss

Patrick Reinhardt wrote:

Hi!

Am Mittwoch, 22. August 2007 21:27:52 schrieb Andy Furniss:

Patrick Reinhardt wrote:

returns: 'RTNETLINK answers: Invalid argument'

I got a better error message than that -

"priomap" index > TC_PRIO_MAX=15

Greping for TC_PRIO_MAX shows it's in both kernel and iproute2's copy of
the headers - I don't know if you need to do both or not - but I would
and recompile kernel and tc
Thank you very much for this hint. Unfortunately my current idea would require 
about 1000 bands:


To emulate a wireless network I have to assign a packet loss depending on the 
target IP address. The idea was to use a PRIO qdisc with n bands for n nodes 
and use filters to assign packets to the appropriate band depending on the 
target address.


Since I am unsure about side-effects of an alteration of TC_PRIO_MAX to a 
signifficantly higher value, an alternative would be helpful.


I suppose you could try ifb - but there is probably a define somewhere 
needing to be changed if you want 1000, but then you could have 16 prio 
on each.


Andy.

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Limited number of bands in PRIO qdisc

2007-08-23 Thread Patrick Reinhardt
Hi!

Am Mittwoch, 22. August 2007 21:27:52 schrieb Andy Furniss:
> Patrick Reinhardt wrote:
> > returns: 'RTNETLINK answers: Invalid argument'
> I got a better error message than that -
>
> "priomap" index > TC_PRIO_MAX=15
>
> Greping for TC_PRIO_MAX shows it's in both kernel and iproute2's copy of
> the headers - I don't know if you need to do both or not - but I would
> and recompile kernel and tc
Thank you very much for this hint. Unfortunately my current idea would require 
about 1000 bands:

To emulate a wireless network I have to assign a packet loss depending on the 
target IP address. The idea was to use a PRIO qdisc with n bands for n nodes 
and use filters to assign packets to the appropriate band depending on the 
target address.

Since I am unsure about side-effects of an alteration of TC_PRIO_MAX to a 
signifficantly higher value, an alternative would be helpful.

Thanks in advance.

Patrick

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Limited number of bands in PRIO qdisc

2007-08-22 Thread Andy Furniss

Patrick Reinhardt wrote:

Hello,

is it possible that the number of bands for the PRIO qdisc is limited to 16?

tc qdisc add dev $DEVICE root handle 1: prio bands 16 priomap 1 2 2 2 1 2 0 0 
1 1 1 1 1 1 1 1


succeeds but

tc qdisc add dev $DEVICE root handle 1: prio bands 17 priomap 1 2 2 2 1 2 0 0 
1 1 1 1 1 1 1 1


returns: 'RTNETLINK answers: Invalid argument'

Is there any possibility to raise the number of bands to a higher value?

Thank you in advance.


I got a better error message than that -

"priomap" index > TC_PRIO_MAX=15

Greping for TC_PRIO_MAX shows it's in both kernel and iproute2's copy of 
the headers - I don't know if you need to do both or not - but I would 
and recompile kernel and tc


/include/linux/pkt_sched.h:#define TC_PRIO_MAX   15

Andy.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Limited number of bands in PRIO qdisc

2007-08-22 Thread Vincent Dautremont

I answer randomly but,
perhaps you have to give 17 parameters as well for the priomap. you  
have only 16 of them in your second example.

Vincent.
Le 22 août 07 à 13:24, Patrick Reinhardt a écrit :


Hello,

is it possible that the number of bands for the PRIO qdisc is  
limited to 16?


tc qdisc add dev $DEVICE root handle 1: prio bands 16 priomap 1 2 2  
2 1 2 0 0

1 1 1 1 1 1 1 1

succeeds but

tc qdisc add dev $DEVICE root handle 1: prio bands 17 priomap 1 2 2  
2 1 2 0 0

1 1 1 1 1 1 1 1

returns: 'RTNETLINK answers: Invalid argument'

Is there any possibility to raise the number of bands to a higher  
value?


Thank you in advance.

Patrick
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc