* [dpdk-test-report] |WARNING| pw70648 [PATCH v2 3/5] bpf: add support for packet data load instructions
[not found] <20200527141653.15576-4-konstantin.ananyev@intel.com>
@ 2020-05-27 14:18 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-05-27 14:18 UTC (permalink / raw)
To: test-report; +Cc: Konstantin Ananyev
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/70648
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#151: FILE: lib/librte_bpf/bpf_exec.c:81:
+#define BPF_LD_ABS(bpf, reg, ins, type, op) do { \
+ const type *p = bpf_ld_mbuf(bpf, reg, ins, (ins)->imm, sizeof(type)); \
+ if (p == NULL) \
+ return 0; \
+ reg[EBPF_REG_0] = op(p[0]); \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#158: FILE: lib/librte_bpf/bpf_exec.c:88:
+#define BPF_LD_IND(bpf, reg, ins, type, op) do { \
+ uint32_t ofs = reg[ins->src_reg] + (ins)->imm; \
+ const type *p = bpf_ld_mbuf(bpf, reg, ins, ofs, sizeof(type)); \
+ if (p == NULL) \
+ return 0; \
+ reg[EBPF_REG_0] = op(p[0]); \
+} while (0)
total: 0 errors, 2 warnings, 223 lines checked
^ permalink raw reply [flat|nested] only message in thread