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

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Sep 13 20:16:02 CEST 2021


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#452: 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