* [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner
@ 2014-04-16 16:25 Kenjiro Nakayama
2014-04-19 0:42 ` Neal Cardwell
2014-04-20 22:19 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Kenjiro Nakayama @ 2014-04-16 16:25 UTC (permalink / raw)
To: LKML; +Cc: Neal Cardwell, Netdev, Yuchung Cheng, Eric Dumazet
This patch adds a TCP_FASTOPEN socket option to get a max backlog on its
listener to getsockopt().
Signed-off-by: Kenjiro Nakayama <nakayamakenjiro@gmail.com>
---
net/ipv4/tcp.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 4bd6d52..eb1dde3 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2916,6 +2916,14 @@ static int do_tcp_getsockopt(struct sock *sk, int level,
case TCP_USER_TIMEOUT:
val = jiffies_to_msecs(icsk->icsk_user_timeout);
break;
+
+ case TCP_FASTOPEN:
+ if (icsk->icsk_accept_queue.fastopenq != NULL)
+ val = icsk->icsk_accept_queue.fastopenq->max_qlen;
+ else
+ val = 0;
+ break;
+
case TCP_TIMESTAMP:
val = tcp_time_stamp + tp->tsoffset;
break;
--
1.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner
2014-04-16 16:25 [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner Kenjiro Nakayama
@ 2014-04-19 0:42 ` Neal Cardwell
2014-04-20 22:19 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Neal Cardwell @ 2014-04-19 0:42 UTC (permalink / raw)
To: Kenjiro Nakayama; +Cc: LKML, Netdev, Yuchung Cheng, Eric Dumazet
On Wed, Apr 16, 2014 at 12:25 PM, Kenjiro Nakayama
<nakayamakenjiro@gmail.com> wrote:
> This patch adds a TCP_FASTOPEN socket option to get a max backlog on its
> listener to getsockopt().
>
> Signed-off-by: Kenjiro Nakayama <nakayamakenjiro@gmail.com>
> ---
> net/ipv4/tcp.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Acked-by: Neal Cardwell <ncardwell@google.com>
Seems fine to me. Thanks, Kenjiro.
neal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner
2014-04-16 16:25 [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner Kenjiro Nakayama
2014-04-19 0:42 ` Neal Cardwell
@ 2014-04-20 22:19 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-04-20 22:19 UTC (permalink / raw)
To: nakayamakenjiro; +Cc: linux-kernel, ncardwell, netdev, ycheng, edumazet
From: Kenjiro Nakayama <nakayamakenjiro@gmail.com>
Date: Thu, 17 Apr 2014 01:25:01 +0900
> This patch adds a TCP_FASTOPEN socket option to get a max backlog on its
> listener to getsockopt().
>
> Signed-off-by: Kenjiro Nakayama <nakayamakenjiro@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-20 22:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 16:25 [PATCH v3] tcp: Add a TCP_FASTOPEN socket option to get a max backlog on its listner Kenjiro Nakayama
2014-04-19 0:42 ` Neal Cardwell
2014-04-20 22:19 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).