<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=420223504-05122007><FONT face=Arial 
size=2>Oh, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=420223504-05122007><FONT face=Arial 
size=2>kernel version 2.6.23, since I forgot to mention it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=420223504-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=420223504-05122007><FONT face=Arial 
size=2>Leigh.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> lartc-bounces@mailman.ds9a.nl 
[mailto:lartc-bounces@mailman.ds9a.nl] <B>On Behalf Of </B>Leigh 
Sharpe<BR><B>Sent:</B> Wednesday, 5 December 2007 3:37 PM<BR><B>To:</B> 
lartc@mailman.ds9a.nl<BR><B>Subject:</B> [LARTC] Adding qdiscs crashes 
kernel??<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>Hi 
all,</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>&nbsp;I'm having 
some problems setting up qdiscs on a bridge.The config looks a little like 
this:</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>ifconfig ifb0 
up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Bring up the IFB for this 
bridge.</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>tc qdisc add dev 
eth2 ingress<BR>tc qdisc add dev eth3 ingress<BR>tc qdisc add dev ifb0 root 
handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8<BR># Raw qdiscs on each 
bridge port<BR>tc qdisc add dev eth2 root handle 1:0 cbq bandwidth 100Mbit avpkt 
1000 cell 8<BR>tc qdisc add dev eth3 root handle 1:0 cbq bandwidth 100Mbit avpkt 
1000 cell 8<BR></FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>tc filter add dev 
eth2 parent 1: protocol 0x8100 prio 5 u32 match u16 3000 0x0fff at 0 flowid 1:1 
action ipt -j MARK --or-mark 0x01000000 # mark packets for VLAN 3000.<BR>tc 
filter add dev eth3 parent 1: protocol 0x8100 prio 5 u32 match u16 3000 0x0fff 
at 0 flowid 1:1 action ipt -j MARK --or-mark 0x01000000 # mark packets&nbsp;for 
VLAN 3000.</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>tc class add dev 
eth2 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate 2000Kbit weight 200Kbit 
prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000&nbsp; bounded 
isolated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2000 Kbit rate limit on entry 
point.<BR>tc class add dev eth3 parent 1:0 classid 1:1 cbq bandwidth 100Mbit 
rate 2000Kbit weight 200Kbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 
1000&nbsp; bounded isolated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2000 Kbit rate 
limit on entry point.<BR></FONT></SPAN><SPAN class=464285603-05122007><FONT 
face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>tc qdisc add dev 
eth2 parent 1:1 handle 2: cbq bandwidth 100Mbit&nbsp; avpkt 1000 cell 8<BR>tc 
qdisc add dev eth3 parent 1:1 handle 2: cbq bandwidth 100Mbit&nbsp; avpkt 1000 
cell 8</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2>tc class add dev eth2 parent 2:0 classid 2:1 cbq 
bandwidth 100Mbit rate 2000Kbit weight 200Kbit prio 2 allot 1514 cell 8 maxburst 
20 avpkt 1000&nbsp; sharing<BR></FONT><FONT face=Arial size=2>tc filter add dev 
eth2 parent 2:0 protocol 0x8100 prio 2 u32 match u16 3000 0x0fff at 0 flowid 2:1 
action ipt -j MARK --or-mark 0x00100000 </FONT></DIV>
<DIV><FONT face=Arial size=2>tc qdisc add dev eth2 parent 2:1 handle 3: cbq 
bandwidth 100Mbit avpkt 1000 cell 8&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>tc filter add dev eth2 parent 3:0 protocol 0x8100 
prio 4 u32 match u32 0 0 flowid 
3:3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
# Traffic class 3 - catchall. Don't MARK further.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=464285603-05122007>(There's lot's more, 
mostly a repeat of the above with different criteria.)</SPAN></FONT></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>When I first boot 
the box, and apply the traffic shaping before any traffic flows, all is fine. 
However, if I apply this same config whilst the bridge is passing lots of 
traffic, it completely crashes the box. Everything freezes, I don't even get a 
kernel panic message on the console. Nothing responds and the only way to 
recover is by a power-cycle.</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>If I take the link 
down on the ethernet port (with ip link set ethx down), apply the configs, and 
then bring it back up again, all is OK. Obviously, though, this isn't really 
acceptable.</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>It always crashes 
immediately after a 'tc qdisc add...' line, but not always in the same place. 
Are there any known issues with adding qdiscs whilst traffic is being queued on 
it?</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>I've also tried it 
using HTB instead of CBQ, and I get the same results.</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial size=2>Anybody got any 
other ideas as to what might be going on?</FONT></SPAN></DIV>
<DIV><SPAN class=464285603-05122007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial 
size=2>Regards,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Leigh</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Leigh Sharpe<BR>Network Systems Engineer<BR>Pacific 
Wireless<BR>Ph +61 3 9584 8966<BR>Mob 0408 009 502</FONT></DIV>
<DIV><FONT face=Arial size=2>Helpdesk 1300 300 616<BR>email <A 
title=mailto:lsharpe@pacificwireless.com.au 
href="blocked::mailto:lsharpe@pacificwireless.com.au">lsharpe@pacificwireless.com.au</A><BR>web 
<A title=http://www.pacificwireless.com.au/ 
href="blocked::http://www.pacificwireless.com.au/">www.pacificwireless.com.au</A></FONT></DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>