diff options
author | Lawrence Brakmo <brakmo@fb.com> | 2017-06-30 23:02:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-01 19:15:13 -0400 |
commit | 8550f328f45db6d37981eb2041bc465810245c03 (patch) | |
tree | e3594097d7b3c9dc3176c8f9084431cf24d79cf6 /net/ipv4/tcp_output.c | |
parent | ae16189efb0fe2bdc5e702bd6221ed6d0ff5babd (diff) |
bpf: Support for per connection SYN/SYN-ACK RTOs
This patch adds support for setting a per connection SYN and
SYN_ACK RTOs from within a BPF_SOCK_OPS program. For example,
to set small RTOs when it is known both hosts are within a
datacenter.
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 1d79137f3795..47fe0759a877 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -3326,7 +3326,7 @@ static void tcp_connect_init(struct sock *sk) | |||
3326 | tp->rcv_wup = tp->rcv_nxt; | 3326 | tp->rcv_wup = tp->rcv_nxt; |
3327 | tp->copied_seq = tp->rcv_nxt; | 3327 | tp->copied_seq = tp->rcv_nxt; |
3328 | 3328 | ||
3329 | inet_csk(sk)->icsk_rto = TCP_TIMEOUT_INIT; | 3329 | inet_csk(sk)->icsk_rto = tcp_timeout_init(sk); |
3330 | inet_csk(sk)->icsk_retransmits = 0; | 3330 | inet_csk(sk)->icsk_retransmits = 0; |
3331 | tcp_clear_retrans(tp); | 3331 | tcp_clear_retrans(tp); |
3332 | } | 3332 | } |