Hello, This is a question about diffserv on linux. We know, there is a file sch_dsmark in linux source code. Now, i want to add something in the function dsmark_enqueue, for example, i want to add a function which can add a class and queue automately in dsmark_enqueue. That is, not using the command tc. After adding one, it works well, but when add the second one, there is a kernel panic: kernel BUG at slab.c: 1128 Kernel panic: Aiee, killing interrupt handler! In interrupt handler -not syncing. I am wondering whether i add something in the interrupt handler, but i have not find it. Oh, can anyone tell me? Thanks Zhenyu _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Zhenyu Wu wrote:> Hello, > > This is a question about diffserv on linux. We know, there is a file sch_dsmark in > > linux source code. Now, i want to add something in the function dsmark_enqueue, > for > example, i want to add a function which can add a class and queue automately in > dsmark_enqueue. That is, not using the command tc. After adding one, it works > well, but > when add the second one, there is a kernel panic: > > kernel BUG at slab.c: 1128 > Kernel panic: Aiee, killing interrupt handler! > In interrupt handler -not syncing. > > I am wondering whether i add something in the interrupt handler, but i have not > find it. > Oh, can anyone tell me? > Thanks > ZhenyuWhich kernel are you using? 2.6.8.1 needs patching. Andy. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello, My linux kernel is 2.4.20. I think it is not because of the kernel version. In fact, I am confused on whether the dsmark_enqueue() is in interrupt indeed when it is called, do you know? But it seems isn''t the case as i can add the class and the queue at first time. Can you tell me if we add a qdisc (such as cbq) and a queue (such as gred), whether there will be any interrupts? I am just thinking now, as the kernel panic at the second adding, maybe there are interrupts after we add qdiscs. If looking up the slab.c and its line 1128, we can find there is a check in_interrupt(). Thank you very much! Merry Christmas! Zhenyu Wu>From: Andy Furniss <andy.furniss@dsl.pipex.com> >Reply-To: >To: Zhenyu Wu <y030729@njupt.edu.cn> >Subject: Re: [LARTC] About Diffserv on linux! >Date:Thu, 23 Dec 2004 12:40:05 +0000 > >Zhenyu Wu wrote: > > Hello, > > > > This is a question about diffserv on linux. We know, there is a filesch_dsmark in> > > > linux source code. Now, i want to add something in the functiondsmark_enqueue,> > for > > example, i want to add a function which can add a class and queue automatelyin> > dsmark_enqueue. That is, not using the command tc. After adding one, it works > > well, but > > when add the second one, there is a kernel panic: > > > > kernel BUG at slab.c: 1128 > > Kernel panic: Aiee, killing interrupt handler! > > In interrupt handler -not syncing. > > > > I am wondering whether i add something in the interrupt handler, but i havenot> > find it. > > Oh, can anyone tell me? > > Thanks > > Zhenyu > > Which kernel are you using? 2.6.8.1 needs patching. > > Andy. > > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Zhenyu Wu wrote:> Hello, > > My linux kernel is 2.4.20. I think it is not because of the kernel version. In > fact, I am confused on whether the dsmark_enqueue() is in interrupt indeed when it > is called, do you know? But it seems isn''t the case as i can add the class and the > queue at first time. Can you tell me if we add a qdisc (such as cbq) and a queue > (such as gred), whether there will be any interrupts? I am just thinking now, as > the kernel panic at the second adding, maybe there are interrupts after we add > qdiscs. If looking up the slab.c and its line 1128, we can find there is a check > in_interrupt().Ahh OK - I don''t know about the interrupts. Maybe you could ask on netdev/netfilterdev. Andy. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/