From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CAA6FA034E for ; Wed, 27 May 2020 16:18:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D072B1DAC3; Wed, 27 May 2020 16:18:02 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 8F4771DAB7; Wed, 27 May 2020 16:18:01 +0200 (CEST) In-Reply-To: <20200527141653.15576-4-konstantin.ananyev@intel.com> References: <20200527141653.15576-4-konstantin.ananyev@intel.com> To: test-report@dpdk.org Cc: Konstantin Ananyev Message-Id: <20200527141801.8F4771DAB7@dpdk.org> Date: Wed, 27 May 2020 16:18:01 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw70648 [PATCH v2 3/5] bpf: add support for packet data load instructions X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" 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