Re: [PATCH]: was Re: LLTX and netif_stop_queue
From: Andi Kleen <hidden>
Date: 2005-01-27 07:16:45
From: Andi Kleen <hidden>
Date: 2005-01-27 07:16:45
On Wed, Jan 26, 2005 at 10:32:47PM -0800, David S. Miller wrote:
On Wed, 26 Jan 2005 14:25:12 +0100 Lennert Buytenhek [off-list ref] wrote:quoted
I've thought about this a bit, and the only sane way of doing recursion detection that doesn't involve 'struct net_device' would be to keep track of the recursion depth (perhaps per-CPU as you suggest) and tossing the packet when it exceeds some random value, right?Yes, that's the idea.
per CPU only works in preemptive kernel if you have preemption disabled all the time. Do you? Seems not likely to me. -Andi