Skip to contentSkip to conversation

tcp: Add timewait recycling bits to ipv6 connect code.

PATCH New David Miller 1 participant 1 message Dec 2, 2010

Subsystems (4)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 6/7 tcp: Add timewait recycling bits to ipv6 connect code.

This will also improve handling of ipv6 tcp socket request backlog when syncookies are not enabled. When backlog becomes very deep, last quarter of backlog is limited to validated destinations. Previously only ipv4 implemented this logic, but now ipv6 does too.

Now we are only one step away from enabling timewait recycling for ipv6, and that step is simply filling in the implementation of tcp_v6_get_peer() and tcp_v6_tw_get_peer().

---
 net/core/request_sock.c |    1 +
 net/ipv6/tcp_ipv6.c     |  101 +++++++++++++++++++++++++++++++++++------------
 2 files changed, 77 insertions(+), 25 deletions(-)
net/core/request_sock.c +1 -0
index 7552495..41d9943 100644
@@ -33,6 +33,7 @@
  * Note : Dont forget somaxconn that may limit backlog too.
  */
 int sysctl_max_syn_backlog = 256;
+EXPORT_SYMBOL(sysctl_max_syn_backlog);
 
 int reqsk_queue_alloc(struct request_sock_queue *queue,
 		      unsigned int nr_table_entries)
net/ipv6/tcp_ipv6.c +76 -25

147 lines not on this page · raw message

Signature · 1 line
1.7.3.2