[Devel] Re: dynamically allocated dst_ops

Daniel Lezcano dlezcano at fr.ibm.com
Fri Oct 31 06:34:02 PDT 2008


Alexey Dobriyan wrote:
> They are bogus and should be implanted into struct net directly.

Why they are bogus ?

> In garbage collector hook, just use container_of() (once) to get struct net.
> ->dst_net is useless after that.

Yep, that looks like a better solution.

> I'm going to use this trick for xfrm.
> 
> And if someone has ideas on how to overcome header difficulties, please,
> submit a patch.

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list