Subject: Re: dynamically allocated dst_ops

From: Daniel Lezcano <[email-masked]>
Date: Fri, 31 Oct 2008 14:34:02 +0100

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.