]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: Pass program and target_fd in flow_dissector_reattach
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 29 Jun 2020 09:56:29 +0000 (10:56 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 30 Jun 2020 17:46:39 +0000 (10:46 -0700)
commitfaac80c160e3c72fa9fbbbfbca4286f4030853d3
treed5cfaa7b7580ed7681739757633801b79f7bd216
parentf9b84cbb975f470dc5bba9a9b956850260e014e1
selftests: bpf: Pass program and target_fd in flow_dissector_reattach

Pass 0 as target_fd when attaching and detaching flow dissector.
Additionally, pass the expected program when detaching.

Fixes: ff7d1da057ac ("selftests/bpf: Add tests for attaching bpf_link to netns")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200629095630.7933-6-lmb@cloudflare.com
tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c