configure: check for bpf_tc_attach() in libbpf

We want to be able to use the new bpf_tc_attach() function for attaching TC
programs, so check for it in configure.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
Toke Høiland-Jørgensen
2021-06-01 17:03:18 +02:00
parent 30a6d54da8
commit 3bc8e68636

1
configure vendored
View File

@@ -83,6 +83,7 @@ int main(int argc, char **argv) {
(void) bpf_program__name(ptr);
(void) bpf_map__set_initial_value(ptr, ptr, 0);
(void) bpf_set_link_xdp_fd_opts(0, 0, 0, &lopts);
(void) bpf_tc_attach(ptr, ptr);
return 0;
}
EOF