From: Andi Kleen <[EMAIL PROTECTED]>
Date: Mon, 22 Aug 2005 05:00:17 +0200

> > Another approach would be:
> > 
> > 1) Determine that we don't care about the callback (ie. it gets
> >    reset to NULL) when the skb->dev changes, as would occur for
> >    forwarding, and certain kinds of firewalling and classification
> >    actions.
> > 
> > 2) As a result of #1 we can put the callback into the netdev struct,
> >    the opaque "ARG" becomes superfluous since the thing you'd pass
> >    there (the device pointer) is implicit.
> 
> It would be better to still pass it the netdev so that the driver
> can figure out what instance of its device it is for.

We would know, because the args would be:

   netdev->skb_free_callback(skb, netdev);

So there is no question about which device it arrived on.
-
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