[dpdk-test-report] |WARNING| pw98676 [PATCH v7 04/11] bpf: add function to convert classic BPF to DPDK BPF
checkpatch at dpdk.org
checkpatch at dpdk.org
Fri Sep 10 20:20:35 CEST 2021
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/98676
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#451: FILE: lib/bpf/bpf_convert.c:343:
+#define BPF_EMIT_JMP \
+ do { \
+ if (target >= len) \
+ goto err; \
+ insn->off = addrs ? addrs[target] - addrs[i] - 1 : 0; \
+ /* Adjust pc relative offset for 2nd or 3rd insn. */ \
+ insn->off -= insn - tmp_insns; \
+ } while (0)
total: 0 errors, 1 warnings, 618 lines checked
More information about the test-report
mailing list