diff options
| author | Kuniyuki Iwashima <[email protected]> | 2021-06-12 12:32:24 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-06-15 16:01:06 +0000 |
| commit | c9d0bdef89a6c943e98c851e8cc10c9c534329e6 (patch) | |
| tree | 1263403fb5a2a63e658a809ac74d75ef8480dc31 /tools/testing/selftests/bpf/network_helpers.c | |
| parent | libbpf: Set expected_attach_type for BPF_PROG_TYPE_SK_REUSEPORT. (diff) | |
| download | kernel-c9d0bdef89a6c943e98c851e8cc10c9c534329e6.tar.gz kernel-c9d0bdef89a6c943e98c851e8cc10c9c534329e6.zip | |
bpf: Test BPF_SK_REUSEPORT_SELECT_OR_MIGRATE.
This patch adds a test for BPF_SK_REUSEPORT_SELECT_OR_MIGRATE and
removes 'static' from settimeo() in network_helpers.c.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/network_helpers.c')
| -rw-r--r-- | tools/testing/selftests/bpf/network_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/network_helpers.c b/tools/testing/selftests/bpf/network_helpers.c index 12ee40284da0..2060bc122c53 100644 --- a/tools/testing/selftests/bpf/network_helpers.c +++ b/tools/testing/selftests/bpf/network_helpers.c @@ -40,7 +40,7 @@ struct ipv6_packet pkt_v6 = { .tcp.doff = 5, }; -static int settimeo(int fd, int timeout_ms) +int settimeo(int fd, int timeout_ms) { struct timeval timeout = { .tv_sec = 3 }; |
