<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/include/net/request_sock.h, branch v2.6.13</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.13</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.13'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2005-06-19T05:48:55Z</updated>
<entry>
<title>[NET] rename struct tcp_listen_opt to struct listen_sock</title>
<updated>2005-06-19T05:48:55Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@ghostprotocols.net</email>
</author>
<published>2005-06-19T05:48:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2ad69c55a282315e6119cf7fd744f26a925bdfd2'/>
<id>urn:sha1:2ad69c55a282315e6119cf7fd744f26a925bdfd2</id>
<content type='text'>
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@ghostprotocols.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] Generalise tcp_listen_opt</title>
<updated>2005-06-19T05:47:59Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@ghostprotocols.net</email>
</author>
<published>2005-06-19T05:47:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0e87506fcc734647c7b2497eee4eb81e785c857a'/>
<id>urn:sha1:0e87506fcc734647c7b2497eee4eb81e785c857a</id>
<content type='text'>
This chunks out the accept_queue and tcp_listen_opt code and moves
them to net/core/request_sock.c and include/net/request_sock.h, to
make it useful for other transport protocols, DCCP being the first one
to use it.

Next patches will rename tcp_listen_opt to accept_sock and remove the
inline tcp functions that just call a reqsk_queue_ function.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@ghostprotocols.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] Rename open_request to request_sock</title>
<updated>2005-06-19T05:47:21Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@ghostprotocols.net</email>
</author>
<published>2005-06-19T05:47:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=60236fdd08b2169045a3bbfc5ffe1576e6c3c17b'/>
<id>urn:sha1:60236fdd08b2169045a3bbfc5ffe1576e6c3c17b</id>
<content type='text'>
Ok, this one just renames some stuff to have a better namespace and to
dissassociate it from TCP:

struct open_request  -&gt; struct request_sock
tcp_openreq_alloc    -&gt; reqsk_alloc
tcp_openreq_free     -&gt; reqsk_free
tcp_openreq_fastfree -&gt; __reqsk_free

With this most of the infrastructure closely resembles a struct
sock methods subset.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@ghostprotocols.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET] Generalise TCP's struct open_request minisock infrastructure</title>
<updated>2005-06-19T05:46:52Z</updated>
<author>
<name>Arnaldo Carvalho de Melo</name>
<email>acme@ghostprotocols.net</email>
</author>
<published>2005-06-19T05:46:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2e6599cb899ba4b133f42cbf9d2b1883d2dc583a'/>
<id>urn:sha1:2e6599cb899ba4b133f42cbf9d2b1883d2dc583a</id>
<content type='text'>
Kept this first changeset minimal, without changing existing names to
ease peer review.

Basicaly tcp_openreq_alloc now receives the or_calltable, that in turn
has two new members:

-&gt;slab, that replaces tcp_openreq_cachep
-&gt;obj_size, to inform the size of the openreq descendant for
  a specific protocol

The protocol specific fields in struct open_request were moved to a
class hierarchy, with the things that are common to all connection
oriented PF_INET protocols in struct inet_request_sock, the TCP ones
in tcp_request_sock, that is an inet_request_sock, that is an
open_request.

I.e. this uses the same approach used for the struct sock class
hierarchy, with sk_prot indicating if the protocol wants to use the
open_request infrastructure by filling in sk_prot-&gt;rsk_prot with an
or_calltable.

Results? Performance is improved and TCP v4 now uses only 64 bytes per
open request minisock, down from 96 without this patch :-)

Next changeset will rename some of the structs, fields and functions
mentioned above, struct or_calltable is way unclear, better name it
struct request_sock_ops, s/struct open_request/struct request_sock/g,
etc.

Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@ghostprotocols.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
