From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 745B5A0C46 for ; Fri, 17 Sep 2021 10:04:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70E60410E3; Fri, 17 Sep 2021 10:04:23 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id BFA19406B4 for ; Fri, 17 Sep 2021 10:04:22 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id B91DA122EE7; Fri, 17 Sep 2021 10:04:22 +0200 (CEST) In-Reply-To: <20210917080121.329373-7-xuemingl@nvidia.com> References: <20210917080121.329373-7-xuemingl@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Xueming Li Message-Id: <20210917080422.B91DA122EE7@dpdk.org> Date: Fri, 17 Sep 2021 10:04:22 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw99074 [PATCH v3 6/8] app/testpmd: add common fwd wrapper X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 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/99074 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #631: FILE: app/test-pmd/testpmd.h:1031: +#define PKT_BURST_FWD(cb) \ +static void \ +pkt_burst_fwd(struct fwd_stream *fs) \ +{ \ + struct rte_mbuf *pkts_burst[nb_pkt_per_burst]; \ + uint16_t nb_rx; \ + uint64_t start_tsc = 0; \ + \ + get_start_cycles(&start_tsc); \ + nb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, \ + pkts_burst, nb_pkt_per_burst); \ + inc_rx_burst_stats(fs, nb_rx); \ + if (unlikely(nb_rx == 0)) \ + return; \ + fs->rx_packets += nb_rx; \ + cb(fs, nb_rx, pkts_burst); \ + get_end_cycles(fs, start_tsc); \ +} total: 0 errors, 1 warnings, 441 lines checked