[dpdk-test-report] |WARNING| pw99626 [PATCH v11 04/12] bpf: add function to convert classic BPF to DPDK BPF
checkpatch at dpdk.org
checkpatch at dpdk.org
Fri Sep 24 17:24:12 CEST 2021
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/99626
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#461: FILE: lib/bpf/bpf_convert.c:348:
+#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, 623 lines checked
More information about the test-report
mailing list