Thread (88 messages) 88 messages, 4 authors, 2004-09-29

Re: [PATCH] Improve behaviour of Netlink Sockets

From: "David S. Miller" <davem@davemloft.net>
Date: 2004-09-29 04:02:25

On Wed, 29 Sep 2004 13:27:24 +1000
Herbert Xu [off-list ref] wrote:
On Tue, Sep 28, 2004 at 10:52:05PM -0400, jamal wrote:
quoted
quoted
You're right.  rtmsg_info() is using GOODISZE unnecessarily.  I'll
write up a patch.
But why? ;->
So that the alloc_skb() is slightly less likely to fail.  The dumpers
gain a lot by using GOODSIZE since they can fill it up.  As rtmsg_info
has no chance of getting anywhere near GOODSIZE we should provide a
more accruate estimate.

It also means that with netlink_trim() you'll save a realloc/copy.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Dave, you can stop reading now :)
Hehe, ok.  Patch applied :-)

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help