]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf, flow_dissector: Close TAP device FD after the test
authorJakub Sitnicki <jakub@cloudflare.com>
Sun, 31 May 2020 08:28:44 +0000 (10:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:21:03 +0000 (15:21 -0700)
commit988bd31675aa1362a108f15caf94e1e0f2c3f501
treecb8e6982e4ecc845169d2c6ab7a51055ebf6f104
parent1d1d72041d4abb4fc674d3960b7cfbb22ae6f61a
selftests/bpf, flow_dissector: Close TAP device FD after the test

test_flow_dissector leaves a TAP device after it's finished, potentially
interfering with other tests that will run after it. Fix it by closing the
TAP descriptor on cleanup.

Fixes: 3d2f95444896 ("selftests/bpf: run flow dissector tests in skb-less mode")
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200531082846.2117903-11-jakub@cloudflare.com
tools/testing/selftests/bpf/prog_tests/flow_dissector.c