From: Alexey Dobriyan Date: Mon, 25 Jan 2010 06:47:53 +0000 (-0800) Subject: netns xfrm: deal with dst entries in netns X-Git-Tag: v2.6.33-rc6~29^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7c7544c3d5f59033d1bf3236bc7b289f5f26b75;p=pandora-kernel.git netns xfrm: deal with dst entries in netns GC is non-existent in netns, so after you hit GC threshold, no new dst entries will be created until someone triggers cleanup in init_net. Make xfrm4_dst_ops and xfrm6_dst_ops per-netns. This is not done in a generic way, because it woule waste (AF_MAX - 2) * sizeof(struct dst_ops) bytes per-netns. Reorder GC threshold initialization so it'd be done before registering XFRM policies. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- Reading git-diff-tree failed