From: Jamal Hadi Salim <[EMAIL PROTECTED]>
Date: Sat, 23 Jul 2005 09:32:07 -0400

> This is part of mission skb diet. 
> Against  git/davem/2.6.14 that was on vger 30 minutes back: It changes
> input_dev to be an ifindex so we dont bother holding devices. 
> Would only cut a 4 byte fat on 64 bit machines.
> 
> Signed-off-by: Jamal Hadi Salim <[EMAIL PROTECTED]>

I have a better change in the wings that totally eliminates
real_dev _AND_ input_dev completely, and passes them as
parameters into pt->func() and ->enqueue() as it should have
been from the beginning.

input_dev is "skb->dev at time netif_receive_skb()" was called,
and also, this is pretty much what the "real_dev" code wants too,
it wants the device before skb_bond() was invoked.

So both cases want the same exact device pointer, and we can pass
them around as parameters instead of all of the current bogus
stuff.  And the mere act of passing this "orig_dev" in as a parameter
makes it easier to verify that references to it will not escape
from the softirq input packet processing context.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to