]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: fix SO_MAX_PACING_RATE to support TCP internal pacing
authorYuchung Cheng <ycheng@google.com>
Thu, 17 Jan 2019 16:51:01 +0000 (08:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:51 +0000 (10:09 +0100)
commit6a6ff44bac272c618e3c5956ceccc6528aa6b927
tree925d2ab1d51f977b1d50973f37e2da020d352efb
parent75412b414a7cd475dd4648f2777857ac8c844bb9
bpf: fix SO_MAX_PACING_RATE to support TCP internal pacing

[ Upstream commit e224c390a6259c529f7b2a6bd215a087b3344f5c ]

If sch_fq packet scheduler is not used, TCP can fallback to
internal pacing, but this requires sk_pacing_status to
be properly set.

Fixes: 8c4b4c7e9ff0 ("bpf: Add setsockopt helper function to bpf")
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/filter.c