From: Andy Furniss Date: Wed, 22 Aug 2007 19:27:52 +0000 Subject: Re: [LARTC] Limited number of bands in PRIO qdisc Message-Id: <46CC8E38.1010605@andyfurniss.entadsl.com> List-Id: References: <200708221324.23380.pr-ml@reinhardtweb.de> In-Reply-To: <200708221324.23380.pr-ml@reinhardtweb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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 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