login
Header Space

 
 

Re: SFQ qdisc crashes with limit of 2 packets

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Chuck Ebbert <cebbert@...>
Cc: Netdev <netdev@...>
Date: Tuesday, September 18, 2007 - 1:57 pm

Patrick McHardy wrote:


Never mind, I found the reason. When enqueuing the packet, sfq_enqueue
contains an off-by-one in the limit check (which IIRC is there for a
reason, but I can't remember right now) and drops the packet again.
dev_queue_xmit() calls qdisc_run() anyway and the empty qdisc is
dequeued, which is not handled by SFQ.

I see three possibilities to fix this (in my preferred order):

1) figure out why the off-by-one is there, if not needed remove
2) don't dequeue qdiscs even once if empty
3) check for NULL in sfq_dequeue

So I'll try to remeber why the off-by-one is there ..
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SFQ qdisc crashes with limit of 2 packets, Chuck Ebbert, (Tue Sep 18, 1:18 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 1:31 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 1:57 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 3:15 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Alexey Kuznetsov, (Wed Sep 19, 5:48 am)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Wed Sep 19, 9:08 am)
Re: SFQ qdisc crashes with limit of 2 packets, Alexey Kuznetsov, (Fri Sep 21, 11:55 am)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Sun Sep 30, 8:51 pm)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Wed Sep 19, 1:43 pm)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Tue Sep 18, 4:09 pm)
speck-geostationary