]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Adding a namespace reset for tc_redirect
authorYucong Sun <sunyucong@gmail.com>
Mon, 25 Oct 2021 22:33:45 +0000 (15:33 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 27 Oct 2021 18:59:02 +0000 (11:59 -0700)
commitbee89995df0bde40e622dcceebdb4a766584819d
tree91dd2e816fc29b6aa41bf87bf1c9619ca8980339
parentf15d3ad76bd00d7ca8ab638e8131b1484af110c2
selftests/bpf: Adding a namespace reset for tc_redirect

This patch delete ns_src/ns_dst/ns_redir namespaces before recreating
them, making the test more robust.

Signed-off-by: Yucong Sun <sunyucong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211025223345.2136168-5-fallentree@fb.com
tools/testing/selftests/bpf/prog_tests/tc_redirect.c