<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: [LARTC] Adding qdiscs crashes kernel??</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText12663 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>&gt;<FONT 
face="Times New Roman">Please always report bugs to <A 
href="mailto:netdev@vger.kernel.org">netdev@vger.kernel.org</A>.</FONT><BR></FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Not entirely sure it's a bug 
yet. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>&nbsp;</DIV></FONT></DIV>
<DIV dir=ltr>&gt;<FONT size=2>Which qdisc add crashes it? Please post the full 
oops.</FONT><BR></DIV>
<DIV dir=ltr>I don't get an oops. Just a completely unresponsive system.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>It's not terribly consistent. It's always one of these:</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>&nbsp;tc qdisc add dev eth2 parent 1:1 handle 2: cbq 
bandwidth 100Mbit&nbsp; avpkt&nbsp;1000 cell 8<BR>&nbsp;tc qdisc add dev eth3 
parent 1:1 handle 2: cbq bandwidth 100Mbit&nbsp; avpkt&nbsp;1000 cell 
8</FONT><BR><BR>But there's no telling which.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Leigh.</DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> Patrick McHardy 
[mailto:kaber@trash.net]<BR><B>Sent:</B> Wed 5/12/2007 7:07 PM<BR><B>To:</B> 
Leigh Sharpe<BR><B>Cc:</B> lartc@mailman.ds9a.nl; Linux Netdev 
List<BR><B>Subject:</B> Re: [LARTC] Adding qdiscs crashes 
kernel??<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Please always report bugs to 
netdev@vger.kernel.org.<BR><BR>Leigh Sharpe wrote:<BR>&gt; Oh,<BR>&gt; kernel 
version 2.6.23, since I forgot to mention it.<BR>&gt;&nbsp;<BR>&gt; 
Leigh.<BR>&gt;<BR>&gt; ________________________________<BR>&gt;<BR>&gt; From: 
lartc-bounces@mailman.ds9a.nl<BR>&gt; [<A 
href="mailto:lartc-bounces@mailman.ds9a.nl">mailto:lartc-bounces@mailman.ds9a.nl</A>] 
On Behalf Of Leigh Sharpe<BR>&gt; Sent: Wednesday, 5 December 2007 3:37 
PM<BR>&gt; To: lartc@mailman.ds9a.nl<BR>&gt; Subject: [LARTC] Adding qdiscs 
crashes kernel??<BR>&gt;<BR>&gt;<BR>&gt; Hi all,<BR>&gt;&nbsp; I'm having some 
problems setting up qdiscs on a bridge.The config looks<BR>&gt; a little like 
this:<BR>&gt;&nbsp;<BR>&gt;&nbsp;<BR>&gt; ifconfig ifb0 
up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Bring up the IFB for this 
bridge.<BR>&gt; tc qdisc add dev eth2 ingress<BR>&gt; tc qdisc add dev eth3 
ingress<BR>&gt; tc qdisc add dev ifb0 root handle 1:0 cbq bandwidth 100Mbit 
avpkt 1000<BR>&gt; cell 8<BR>&gt; # Raw qdiscs on each bridge port<BR>&gt; tc 
qdisc add dev eth2 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000<BR>&gt; cell 
8<BR>&gt; tc qdisc add dev eth3 root handle 1:0 cbq bandwidth 100Mbit avpkt 
1000<BR>&gt; cell 8<BR>&gt;<BR>&gt; tc filter add dev eth2 parent 1: protocol 
0x8100 prio 5 u32 match u16<BR>&gt; 3000 0x0fff at 0 flowid 1:1 action ipt -j 
MARK --or-mark 0x01000000 #<BR>&gt; mark packets for VLAN 3000.<BR>&gt; tc 
filter add dev eth3 parent 1: protocol 0x8100 prio 5 u32 match u16<BR>&gt; 3000 
0x0fff at 0 flowid 1:1 action ipt -j MARK --or-mark 0x01000000 #<BR>&gt; mark 
packets for VLAN 3000.<BR>&gt;&nbsp;<BR>&gt; tc class add dev eth2 parent 1:0 
classid 1:1 cbq bandwidth 100Mbit rate<BR>&gt; 2000Kbit weight 200Kbit prio 1 
allot 1514 cell 8 maxburst 20 avpkt 1000<BR>&gt; bounded 
isolated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2000 Kbit rate limit on entry 
point.<BR>&gt; tc class add dev eth3 parent 1:0 classid 1:1 cbq bandwidth 
100Mbit rate<BR>&gt; 2000Kbit weight 200Kbit prio 1 allot 1514 cell 8 maxburst 
20 avpkt 1000<BR>&gt; bounded isolated&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
2000 Kbit rate limit on entry point.<BR>&gt;<BR>&gt; tc qdisc add dev eth2 
parent 1:1 handle 2: cbq bandwidth 100Mbit&nbsp; avpkt<BR>&gt; 1000 cell 
8<BR>&gt; tc qdisc add dev eth3 parent 1:1 handle 2: cbq bandwidth 100Mbit&nbsp; 
avpkt<BR>&gt; 1000 cell 8<BR>&gt; tc class add dev eth2 parent 2:0 classid 2:1 
cbq bandwidth 100Mbit rate<BR>&gt; 2000Kbit weight 200Kbit prio 2 allot 1514 
cell 8 maxburst 20 avpkt 1000<BR>&gt; sharing<BR>&gt; tc filter add dev eth2 
parent 2:0 protocol 0x8100 prio 2 u32 match u16<BR>&gt; 3000 0x0fff at 0 flowid 
2:1 action ipt -j MARK --or-mark 0x00100000<BR>&gt; tc qdisc add dev eth2 parent 
2:1 handle 3: cbq bandwidth 100Mbit avpkt<BR>&gt; 1000 cell 
8&nbsp;&nbsp;&nbsp;<BR>&gt; tc filter add dev eth2 parent 3:0 protocol 0x8100 
prio 4 u32 match u32 0<BR>&gt; 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<BR>&gt; class 3 - catchall. Don't MARK further.<BR>&gt;&nbsp;<BR>&gt; 
(There's lot's more, mostly a repeat of the above with different<BR>&gt; 
criteria.)<BR>&gt; When I first boot the box, and apply the traffic shaping 
before any<BR>&gt; traffic flows, all is fine. However, if I apply this same 
config whilst<BR>&gt; the bridge is passing lots of traffic, it completely 
crashes the box.<BR>&gt; Everything freezes, I don't even get a kernel panic 
message on the<BR>&gt; console. Nothing responds and the only way to recover is 
by a<BR>&gt; power-cycle.<BR>&gt;&nbsp;<BR>&gt; If I take the link down on the 
ethernet port (with ip link set ethx<BR>&gt; down), apply the configs, and then 
bring it back up again, all is OK.<BR>&gt; Obviously, though, this isn't really 
acceptable.<BR>&gt;&nbsp;<BR>&gt; It always crashes immediately after a 'tc 
qdisc add...' line, but not<BR>&gt; always in the same place. Are there any 
known issues with adding qdiscs<BR>&gt; whilst traffic is being queued on 
it?<BR>&gt; I've also tried it using HTB instead of CBQ, and I get the same 
results.<BR>&gt;&nbsp;<BR>&gt; Anybody got any other ideas as to what might be 
going on?<BR><BR><BR>Which qdisc add crashes it? Please post the full 
oops.<BR><BR></FONT></P></DIV>

</BODY>
</HTML>