]> git.droids-corp.org - dpdk.git/commit
test/bpf: skip dump if conversion fails
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 10 Feb 2022 23:09:05 +0000 (15:09 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 08:19:41 +0000 (09:19 +0100)
commit78e7b29ff10c234b44f20fe7d031d60748920c2d
treea599e39dbe58852de03a3a9482af15c2cba368e1
parent442878db2e35ab276a1cd78cd836008e15eccd8b
test/bpf: skip dump if conversion fails

If conversion of cBPF to eBPF fails (in rte_bpf_convert)
then the test should not try and print the result.

Coverity issue: 373661
Fixes: 2eccf6afbea9 ("bpf: add function to convert classic BPF to DPDK BPF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_bpf.c