diff options
| author | 2025-03-03 09:22:49 +0100 | |
|---|---|---|
| committer | 2025-03-15 11:48:26 -0700 | |
| commit | 5d6aa606c157c94d785624aae1fd9e5df57745d7 (patch) | |
| tree | 0a969d5f2f2ce7fb4ee4837bf4040b2dcc6d2157 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | Merge branch 'veristat-files-list-txt-notation-for-object-files-list' (diff) | |
selftests/bpf: test_tunnel: Add generic_attach* helpers
A fair amount of code duplication is present among tests to attach BPF
programs.
Create generic_attach* helpers that attach BPF programs to a given
interface.
Use ASSERT_OK_FD() instead of ASSERT_GE() to check fd's validity.
Use these helpers in all the available tests.
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250303-tunnels-v2-1-8329f38f0678@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
