automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw99074 [PATCH v3 6/8] app/testpmd: add common fwd wrapper
       [not found] <20210917080121.329373-7-xuemingl@nvidia.com>
@ 2021-09-17  8:04 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-09-17  8:04 UTC (permalink / raw)
  To: test-report; +Cc: Xueming Li

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-17  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210917080121.329373-7-xuemingl@nvidia.com>
2021-09-17  8:04 ` [dpdk-test-report] |WARNING| pw99074 [PATCH v3 6/8] app/testpmd: add common fwd wrapper checkpatch

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).