Re: invalid argument

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 loaded as well to use tc.
  
   I have a few question:
  1.  Is there any packages for CBQ or HTB that I can just compiled 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@xxxxxxxxxx> wrote:
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

I don't know what "arm" is.

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

First make sure that there is only one 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, then I can't help.  But if
all fail, your cross compile was bad.

Also try
modprobe sch_cbq
modprobe -r sch_cbq
modprobe sch_htb
modprobe -r sch_htb
and watch your logs.

gypsy

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux