From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Xueming Li <xuemingl@nvidia.com>
Subject: [dpdk-test-report] |WARNING| pw99074 [PATCH v3 6/8] app/testpmd: add common fwd wrapper
Date: Fri, 17 Sep 2021 10:04:22 +0200 (CEST) [thread overview]
Message-ID: <20210917080422.B91DA122EE7@dpdk.org> (raw)
In-Reply-To: <20210917080121.329373-7-xuemingl@nvidia.com>
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
parent reply other threads:[~2021-09-17 8:04 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20210917080121.329373-7-xuemingl@nvidia.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210917080422.B91DA122EE7@dpdk.org \
--to=checkpatch@dpdk.org \
--cc=test-report@dpdk.org \
--cc=xuemingl@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).