Re: [PATCH] Extend lock less TX to real devices
From: David S. Miller <hidden>
Date: 2004-09-02 05:33:01
On Tue, 31 Aug 2004 14:38:20 +0200 Andi Kleen [off-list ref] wrote:
This patch extends the recently added NETIF_F_LLTX to real devices.
Well, it does a lot of other things too.
I added support for trylocking instead of spinning like sch_generic does - for that the driver has to return -1, then the packet is requeued. The check for a local device deadlock is lost for this case, but that doesn't seem to be a big loss (I've never seen this printk ever get triggered)
It is triggerable if you misconfigure your system. I'm totally against this change, because previously at least the user would find out in their logs. With your change the system explodes looping with no explanation why.
The patch looks bigger than it really is because i moved some code around and converted the macros into inlines.
..
I also did an additional micro optimization:
And for this reason you need to split this patch up. I would recommend: patch 1) Change macros into inlines patch 2) local_bh_disable() preemption count optimization patch 3) support for F_LLTX on real devices patch 4) locking changes Thanks Andi.