[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f4845fc0806260839g45fa53e2w473684736e0cce56@mail.gmail.com>
Date: Thu, 26 Jun 2008 17:39:01 +0200
From: "Julius Volz" <juliusv@...gle.com>
To: "Patrick McHardy" <kaber@...sh.net>
Cc: "David Miller" <davem@...emloft.net>, tgraf@...g.ch,
netdev@...r.kernel.org, vbusam@...gle.com
Subject: Re: Sending big Netlink messages to userspace
On Thu, Jun 26, 2008 at 2:41 AM, Patrick McHardy <kaber@...sh.net> wrote:
>> Therefore userland need never have a buffer larger than 8K or
>> sysconf(_SC_PAGESIZE), whichever is smaller.
>
> For dumps the size is fine, for large unicast messages it
> might need to be increased though (like nfnetlink_queue).
Ok, I put everything that is a list of variable size into dumps now.
One object (list entry) per multipart message (but several multipart
messages are sent in the same skb until it fills up).
All the other reply messages are of a fixed size and very small, so
fortunately I don't need to increase buffer sizes anywhere.
Julius
--
Google Switzerland GmbH
--
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