| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Improve behaviour of Netlink Sockets |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 24 Sep 2004 13:28:30 +1000 |
| Cc: | Pablo Neira <pablo@xxxxxxxxxxx>, hadi@xxxxxxxxxx, davem@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040923121651.51a58cf2.davem@xxxxxxxxxxxxx> |
| References: | <20040920025802.GA11567@xxxxxxxxxxxxxxxxxxx> <1095683660.1047.254.camel@xxxxxxxxxxxxxxxx> <414F1E12.6010808@xxxxxxxxxxx> <20040922000503.GA13218@xxxxxxxxxxxxxxxxxxx> <4150E7E5.2000001@xxxxxxxxxxx> <20040922045239.GA19573@xxxxxxxxxxxxxxxxxxx> <1095854920.1047.64.camel@xxxxxxxxxxxxxxxx> <20040922105221.59a67d4b.davem@xxxxxxxxxxxxx> <4152EE68.4030803@xxxxxxxxxxx> <20040923121651.51a58cf2.davem@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040722i |
On Thu, Sep 23, 2004 at 12:16:51PM -0700, David S. Miller wrote: > > Simpler would be: > > 1) For each netlink socket, allocate a page, much like TCP sockets > do. > > 2) Construct the netlink response in this page sized buffer, > keeping track of how much of the page is actually used. > > 3) At the end, allocate the skb with the necessary length, > copy into the skb from the page buffer. > > 4) Since the RTNL semaphore is held during the length of these > operations, the per-socket page needs no locking. Can someone please tell me why we need to do this at all? Most of the dump messages should be close to PAGE_SIZE anyway, no? -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| Previous by Date: | Re: [PATCH] Improve behaviour of Netlink Sockets, Herbert Xu |
|---|---|
| Next by Date: | Re: [1/1] connector: Kernel connector - userspace <-> kernelspace "linker"., Evgeniy Polyakov |
| Previous by Thread: | Re: [PATCH] Improve behaviour of Netlink Sockets, David S. Miller |
| Next by Thread: | Re: [PATCH] Improve behaviour of Netlink Sockets, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |