[dpdk-test-report] |WARNING| pw98965 [PATCH v9 04/12] bpf: add function to convert classic BPF to DPDK BPF

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 16 02:16:04 CEST 2021


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/98965

_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