summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/tcp_client.py
diff options
context:
space:
mode:
authorAlexander Duyck <alexanderduyck@fb.com>2020-11-03 13:34:48 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-11-03 17:52:37 -0800
commitaaf376bddf68d0afe5f4b5f25fc555da358e2287 (patch)
treeb012f3ecef72cec3a326d8f28dfda929f3da1fdf /tools/testing/selftests/bpf/tcp_client.py
parent8aaeed81fcb917b5cf4976932c5baefa1471128b (diff)
downloadlinux-aaf376bddf68d0afe5f4b5f25fc555da358e2287.tar.gz
linux-aaf376bddf68d0afe5f4b5f25fc555da358e2287.tar.bz2
linux-aaf376bddf68d0afe5f4b5f25fc555da358e2287.zip
selftests/bpf: Move test_tcppbf_user into test_progs
Recently a bug was missed due to the fact that test_tcpbpf_user is not a part of test_progs. In order to prevent similar issues in the future move the test functionality into test_progs. By doing this we can make certain that it is a part of standard testing and will not be overlooked. As a part of moving the functionality into test_progs it is necessary to integrate with the test_progs framework and to drop any redundant code. This patch: 1. Cleans up the include headers 2. Dropped a duplicate definition of bpf_find_map 3. Switched over to using test_progs specific cgroup functions 4. Renamed main to test_tcpbpf_user 5. Dropped return value in favor of CHECK_FAIL to check for errors The general idea is that I wanted to keep the changes as small as possible while moving the file into the test_progs framework. The follow-on patches are meant to clean up the remaining issues such as the use of CHECK_FAIL. Signed-off-by: Alexander Duyck <alexanderduyck@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/160443928881.1086697.17661359319919165370.stgit@localhost.localdomain
Diffstat (limited to 'tools/testing/selftests/bpf/tcp_client.py')
0 files changed, 0 insertions, 0 deletions