]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix error checking on reading the tcp_fastopen sysctl
authorMartin KaFai Lau <kafai@fb.com>
Tue, 11 Feb 2020 17:59:10 +0000 (09:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Feb 2020 16:44:37 +0000 (17:44 +0100)
commit24c505a64ff69244af8eab6f7509fb4b8c50c5ae
tree7ea21429a96895c05e3f8ecdd8c018a2641feacf
parent96b1a83e2785b3eea9e079ad140acae4a81bdabf
selftests/bpf: Fix error checking on reading the tcp_fastopen sysctl

There is a typo in checking the "saved_tcp_fo" and instead
"saved_tcp_syncookie" is checked again.  This patch fixes it
and also breaks them into separate if statements such that
the test will abort asap.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200211175910.3235321-1-kafai@fb.com
tools/testing/selftests/bpf/prog_tests/select_reuseport.c