RE: Strange tc issue

Linux Advanced Routing and Traffic Control

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

 



I have been working on this problem and have tried MANY different things
to get it working.  So let me recap as best I can.

I have the following configuration working fine:

uClibc 0.9.26 built Linux 2.4.22 kernel system with
iproute2-2.4.7-now-ss010824 and bridge-utils-0.9.6.

When I move to Kernel 2.4.25 the tc shaping on the bridge interface does
not work.  It stops all ip traffic.  If I setup the bridge and bind the
ip to an Ethernet interface and run tc on that it works.

I guess what I need is the correct patches to apply against an iproute2
package with a 2.4.25 Kernel.  Can someone kick me some links?

Thanx,
Roy

-----Original Message-----
From: Nuutti Kotivuori [mailto:naked@xxxxxx] 
Sent: Monday, March 01, 2004 4:08 PM
To: Roy Walker
Cc: lartc@xxxxxxxxxxxxxxx
Subject: Re: Strange tc issue

Roy Walker wrote:
> I guess the issue centers around every linux box I have shows the
> pfifo_qdisc when I do an 'ip link show'.  But when I do a tc it does
> not do this.  This definitely tells me that tc is not reading the
> qdiscs properly which also probably means it is not setting them
> right either.  Problem is that is compiles properly and does not
> give me an errors during build.
>
> This is really starting to drive me crazy.  Appreciate your help.

The things you say seem partly contradictory, and it is really not
clear what is the problem - however, I will give an example of what
things do on *my* system so you can spot the discrepancy between your
systems.

,----
| ... no configuration ...
| shiro:~# ip link show dev eth0
| 7: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
|     link/ether 00:30:1b:ae:6a:66 brd ff:ff:ff:ff:ff:ff
| shiro:~# tc qdisc show dev eth0
| qdisc pfifo_fast 0: [Unknown qdisc, optlen=20] 
| shiro:~# tc class show dev eth0
| shiro:~# tc filter show dev eth0
|
| ... add a qdisc ...
| shiro:~# tc qdisc add dev eth0 root pfifo limit 100
|
| ... show configuration again ...
| shiro:~# ip link show eth0
| 7: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo qlen 100
|     link/ether 00:30:1b:ae:6a:66 brd ff:ff:ff:ff:ff:ff
| shiro:~# tc qdisc show dev eth0
| qdisc pfifo 8002: limit 100p
| shiro:~# tc class show dev eth0
| shiro:~# tc filter show dev eth0
`----

And no loss of connectivity to anywhere, or anything of the likes. If
this does not work for you, then there is something seriously wrong
either with your kernel or with tc. If this does work for you, I
suggest specifying exactly what you commands you are saying that cause
your problems - there might be something wrong there.

-- Naked

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


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