[dpdk-test-report] |WARNING| pw99074 [PATCH v3 6/8] app/testpmd: add common fwd wrapper

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Sep 17 10:04:22 CEST 2021


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


More information about the test-report mailing list