From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grace Baldonasa Date: Fri, 29 Apr 2005 04:13:01 +0000 Subject: Re: [LARTC] invalid argument Message-Id: <7034e7b5050428211346dbcce7@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0968490225==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --===============0968490225== Content-Type: multipart/alternative; boundary="----=_Part_7_15670633.1114747981955" ------=_Part_7_15670633.1114747981955 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Thanks for the info. I cross compiled tc targeted to XSCALE platform. When i was trying to=20 execute the tc commands that's when I encountered this invalid argument=20 problem. So now I understand, CBQ, HTB are kernel modules that needs to be loaded as= =20 well to use tc.=20 I have a few question: 1. Is there any packages for CBQ or HTB that I can just compiled for ARM=20 again. I dont want to compile the kernel again, so if I could get the CBQ & HTB=20 packages, it'll make my life easier. 2. Aside from having these modules, what else should i add? (e.g.: config= =20 files, init scripts.. etc) 3. If at any case I uses both HTB & CBQ would it be okay if both of these= =20 modules are loaded? Thanks for the time. Grace On 4/27/05, gypsy wrote: >=20 > Grace Baldonasa wrote: > > > > Hi All, > > > > I cross compiled and run tc in arm platform. > > When I tried executing it I got this error. > > > > tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 > > mpu 64 > > RTNETLINK answers: Invalid argument > > > > Is there something I'm missing here... > > > > Thanks. > > > > Grace >=20 > I don't know what "arm" is. >=20 > Are you certain that the CBQ module loaded? Yes, it should be a module, > not built into the kernel. >=20 > First make sure that there is only one TC executable on your system. > Then try a few different TC commands: >=20 > tc -s qdisc ls dev eth0 > tc -s class ls dev eth0 > tc qdisc add dev eth0 root handle 1: htb default 30 >=20 > If the htb works then the problem is, of course, cbq. If both cbq and > htb fail but the "show" commands above work, then I can't help. But if > all fail, your cross compile was bad. >=20 > Also try > modprobe sch_cbq > modprobe -r sch_cbq > modprobe sch_htb > modprobe -r sch_htb > and watch your logs. >=20 > gypsy > ------=_Part_7_15670633.1114747981955 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
 Thanks for the info.
  I cross compiled tc targeted to XSCALE platform. When i was trying to execute the tc commands that's when I encountered this invalid argument problem.
  So now I understand, CBQ, HTB are kernel modules that needs to be lo= aded as well to use tc.
  
   I have a few question:
  1.  Is there any packages for CBQ or HTB that I can just compil= ed for ARM again.
       I dont want to compile the kernel again, so if I could get the CBQ & HTB packages, it'll make my life easier.
  2.  Aside from having these modules, what else should i add? (e= .g.: config files, init scripts.. etc)
  3. If at any case I uses both HTB & CBQ would it be okay if both= of these modules are loaded?

  Thanks for the time.

Grace
   



On 4/27/05, gypsy <gypsy@iswest.com<= /a>> wrote:
Grace Baldonasa wrote:
>
> Hi All,
>
> I cross comp= iled and run tc in arm platform.
> When I tried executing it I got th= is error.
>
> tc qdisc add dev eth0 root handle 1:0 cbq bandwid= th 100Mbit avpkt 1000
> mpu 64
> RTNETLINK answers: Invalid argument
>
>= Is there something I'm missing here...
>
> Thanks.
>
= > Grace

I don't know what "arm" is.

Are you cert= ain that the CBQ module loaded?  Yes, it should be a module,
not built into the kernel.

First make sure that there is only on= e TC executable on your system.
Then try a few different TC commands:
tc -s qdisc ls dev eth0
tc -s class ls dev eth0
tc qdisc add dev= eth0 root handle 1: htb default 30

If the htb works then the problem is, of course, cbq.  If= both cbq and
htb fail but the "show" commands above work, the= n I can't help.  But if
all fail, your cross compile was bad.<= br>
Also try
modprobe sch_cbq
modprobe -r sch_cbq
modprobe sch_htb
modprobe -r = sch_htb
and watch your logs.

gypsy

------=_Part_7_15670633.1114747981955-- --===============0968490225== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0968490225==--