selftests/bpf: fix ct status check in bpf_nf selftests
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 8 Sep 2022 08:06:12 +0000 (10:06 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 11 Sep 2022 00:40:46 +0000 (17:40 -0700)
commitf7c946f288e32fd8b5fd69825683420d473672bd
tree8ae67b0d6f0dd4f6876ed8912db6a685d523dc26
parentb8c62fe2025af081ea738a615c58d79d815f260f
selftests/bpf: fix ct status check in bpf_nf selftests

Check properly the connection tracking entry status configured running
bpf_ct_change_status kfunc.
Remove unnecessary IPS_CONFIRMED status configuration since it is
already done during entry allocation.

Fixes: 6eb7fba007a7 ("selftests/bpf: Add tests for new nf_conntrack kfuncs")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/813a5161a71911378dfac8770ec890428e4998aa.1662623574.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
tools/testing/selftests/bpf/progs/test_bpf_nf.c