From: Lawrence Brakmo <brakmo@fb.com>
To: netdev <netdev@vger.kernel.org>
Cc: Kernel Team <kernel-team@fb.com>, Blake Matheny <bmatheny@fb.com>,
Alexei Starovoitov <ast@fb.com>,
Neal Cardwell <ncardwell@google.com>,
Yuchung Cheng <ycheng@google.com>,
Steve Ibanez <sibanez@stanford.edu>,
Eric Dumazet <eric.dumazet@gmail.com>
Subject: [PATCH net-next 1/2] tcp: notify when a delayed ack is sent
Date: Fri, 29 Jun 2018 18:48:14 -0700 [thread overview]
Message-ID: <20180630014815.2881895-2-brakmo@fb.com> (raw)
In-Reply-To: <20180630014815.2881895-1-brakmo@fb.com>
DCTCP depends on the CA_EVENT_NON_DELAYED_ACK and CA_EVENT_DELAYED_ACK
notifications to keep track if it needs to send an ACK for packets that
were received with a particular ECN state but whose ACK was delayed.
Under some circumstances, for example when a delayed ACK is sent with a
data packet, DCTCP state was not being updated due to a lack of
notification that the previously delayed ACK was sent. As a result, it
would sometimes send a duplicate ACK when a new data packet arrived.
This patch insures that DCTCP's state is correctly updated so it will
not send the duplicate ACK.
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
---
net/ipv4/tcp_output.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index f8f6129160dd..41f6ad7a21e4 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -172,6 +172,8 @@ static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts)
__sock_put(sk);
}
tcp_dec_quickack_mode(sk, pkts);
+ if (inet_csk_ack_scheduled(sk))
+ tcp_ca_event(sk, CA_EVENT_NON_DELAYED_ACK);
inet_csk_clear_xmit_timer(sk, ICSK_TIME_DACK);
}
--
2.17.1
next prev parent reply other threads:[~2018-06-30 1:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-30 1:48 [PATCH net-next 0/2] tcp: fix high tail latencies in DCTCP Lawrence Brakmo
2018-06-30 1:48 ` Lawrence Brakmo [this message]
2018-07-02 15:17 ` [PATCH net-next 1/2] tcp: notify when a delayed ack is sent Neal Cardwell
2018-07-02 21:24 ` Lawrence Brakmo
2018-06-30 1:48 ` [PATCH net-next 2/2] tcp: ack immediately when a cwr packet arrives Lawrence Brakmo
2018-06-30 18:23 ` Neal Cardwell
2018-07-01 1:46 ` Lawrence Brakmo
2018-07-02 14:57 ` Neal Cardwell
2018-07-02 21:24 ` Lawrence Brakmo
2018-07-01 0:26 ` [PATCH net-next 0/2] tcp: fix high tail latencies in DCTCP Neal Cardwell
2018-07-01 4:09 ` Lawrence Brakmo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180630014815.2881895-2-brakmo@fb.com \
--to=brakmo@fb.com \
--cc=ast@fb.com \
--cc=bmatheny@fb.com \
--cc=eric.dumazet@gmail.com \
--cc=kernel-team@fb.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=sibanez@stanford.edu \
--cc=ycheng@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).