From: Eric Dumazet Date: Fri, 7 Mar 2014 20:02:33 +0000 (-0800) Subject: netlink: autosize skb lengthes X-Git-Tag: v3.15-rc1~113^2~198 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9063e21fb026c4966fc93261c18322214f9835eb;p=pandora-kernel.git netlink: autosize skb lengthes One known problem with netlink is the fact that NLMSG_GOODSIZE is really small on PAGE_SIZE==4096 architectures, and it is difficult to know in advance what buffer size is used by the application. This patch adds an automatic learning of the size. First netlink message will still be limited to ~4K, but if user used bigger buffers, then following messages will be able to use up to 16KB. This speedups dump() operations by a large factor and should be safe for legacy applications. Signed-off-by: Eric Dumazet Cc: Thomas Graf Acked-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed