]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:04 +0000 (10:08 +0100)
commitb1bf951df56775f4401ece4101470936b47c27c1
tree38c6828f165a4abddbc887ffd998df350932b7c0
parentd6e33e07b8311764414969f5ddde93e052d226ea
bpf: correctly set initial window on active Fast Open sender

[ 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>
net/core/filter.c