[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140310.135655.564901006977885920.davem@davemloft.net>
Date: Mon, 10 Mar 2014 13:56:55 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, tgraf@...g.ch
Subject: Re: [PATCH net-next] netlink: autosize skb lengthes
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 07 Mar 2014 12:02:33 -0800
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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 <edumazet@...gle.com>
> Cc: Thomas Graf <tgraf@...g.ch>
This looks great, applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists