]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bpf: correctly set initial window on active Fast Open sender
authorYuchung Cheng <ycheng@google.com>
Wed, 9 Jan 2019 02:12:24 +0000 (18:12 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitcba19026c777205f39cf073869f33c01a70cffc7
tree56ec6b1f3c392dfa782d7c16b315a9f2175399af
parent8b5f14e043ffe9dab34790cad22578ad95d87da0
bpf: correctly set initial window on active Fast Open sender

BugLink: https://bugs.launchpad.net/bugs/1837813
[ Upstream commit 31aa6503a15ba00182ea6dbbf51afb63bf9e851d ]

The existing BPF TCP initial congestion window (TCP_BPF_IW) does not
to work on (active) Fast Open sender. This is because it changes the
(initial) window only if data_segs_out is zero -- but data_segs_out
is also incremented on SYN-data.  This patch fixes the issue by
proerly accounting for SYN-data additionally.

Fixes: fc7478103c84 ("bpf: Adds support for setting initial cwnd")
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/core/filter.c