From: Holger Eitzenberger Date: Wed, 25 Mar 2009 20:50:59 +0000 (+0100) Subject: netfilter: ctnetlink: allocate right-sized ctnetlink skb X-Git-Tag: v2.6.30-rc1~642^2~51^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2732c4e45bb67006fdc9ae6669be866762711ab5;p=pandora-kernel.git netfilter: ctnetlink: allocate right-sized ctnetlink skb Try to allocate a Netlink skb roughly the size of the actual message, with the help from the l3 and l4 protocol helpers. This is all to prevent a reallocation in netlink_trim() later. The overhead of allocating the right-sized skb is rather small, with ctnetlink_alloc_skb() actually being inlined away on my x86_64 box. The size of the per-proto space is determined at registration time of the protocol helper. Signed-off-by: Holger Eitzenberger Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed