]> git.baikalelectronics.ru Git - 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)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 9 Jan 2019 23:17:46 +0000 (15:17 -0800)
commit8b83cb2d16841077ff8121c842cafb6cf6eff429
treec178cabac27fe84159c2385fa85a2e282b048832
parent5e8a6e21ae104a2f6af8ad96933f9d1c68ace939
bpf: correctly set initial window on active Fast Open sender

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: 9d34bc207e12 ("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>
net/core/filter.c