* [PATCH bpf-next] selftests/bpf: Initialize tc in xdp_synproxy
@ 2023-02-02 23:53 Ilya Leoshkevich
2023-02-03 4:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Ilya Leoshkevich @ 2023-02-02 23:53 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
Cc: bpf, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
Ilya Leoshkevich, Joanne Koong
xdp_synproxy/xdp fails in CI with:
Error: bpf_tc_hook_create: File exists
The XDP version of the test should not be calling bpf_tc_hook_create();
the reason it's happening anyway is that if we don't specify --tc on the
command line, tc variable remains uninitialized.
Fixes: 784d5dc0efc2 ("selftests/bpf: Add selftests for raw syncookie helpers in TC mode")
Reported-by: Alexei Starovoitov <ast@kernel.org>
Reported-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
tools/testing/selftests/bpf/xdp_synproxy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/bpf/xdp_synproxy.c b/tools/testing/selftests/bpf/xdp_synproxy.c
index 410a1385a01d..6dbe0b745198 100644
--- a/tools/testing/selftests/bpf/xdp_synproxy.c
+++ b/tools/testing/selftests/bpf/xdp_synproxy.c
@@ -116,6 +116,7 @@ static void parse_options(int argc, char *argv[], unsigned int *ifindex, __u32 *
*tcpipopts = 0;
*ports = NULL;
*single = false;
+ *tc = false;
while (true) {
int opt;
--
2.39.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] selftests/bpf: Initialize tc in xdp_synproxy
2023-02-02 23:53 [PATCH bpf-next] selftests/bpf: Initialize tc in xdp_synproxy Ilya Leoshkevich
@ 2023-02-03 4:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-02-03 4:20 UTC (permalink / raw)
To: Ilya Leoshkevich
Cc: ast, daniel, andrii, bpf, hca, gor, agordeev, joannelkoong
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Fri, 3 Feb 2023 00:53:35 +0100 you wrote:
> xdp_synproxy/xdp fails in CI with:
>
> Error: bpf_tc_hook_create: File exists
>
> The XDP version of the test should not be calling bpf_tc_hook_create();
> the reason it's happening anyway is that if we don't specify --tc on the
> command line, tc variable remains uninitialized.
>
> [...]
Here is the summary with links:
- [bpf-next] selftests/bpf: Initialize tc in xdp_synproxy
https://git.kernel.org/bpf/bpf-next/c/354bb4a0e0b6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-03 4:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 23:53 [PATCH bpf-next] selftests/bpf: Initialize tc in xdp_synproxy Ilya Leoshkevich
2023-02-03 4:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.