* [dpdk-test-report] |WARNING| pw94438 [PATCH v3 29/62] net/cnxk: add Tx multi-segment version for cn10k
[not found] <20210618103741.26526-30-ndabilpuram@marvell.com>
@ 2021-06-18 10:43 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-06-18 10:43 UTC (permalink / raw)
To: test-report; +Cc: Nithin Dabilpuram
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/94438
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'flags' - possible side-effects?
#336: FILE: drivers/net/cnxk/cn10k_tx_mseg.c:8:
+#define T(name, f4, f3, f2, f1, f0, sz, flags) \
+ uint16_t __rte_noinline __rte_hot \
+ cn10k_nix_xmit_pkts_mseg_##name(void *tx_queue, \
+ struct rte_mbuf **tx_pkts, \
+ uint16_t pkts) \
+ { \
+ uint64_t cmd[(sz)]; \
+ \
+ /* For TSO inner checksum is a must */ \
+ if (((flags) & NIX_TX_OFFLOAD_TSO_F) && \
+ !((flags) & NIX_TX_OFFLOAD_L3_L4_CSUM_F)) \
+ return 0; \
+ return cn10k_nix_xmit_pkts_mseg(tx_queue, tx_pkts, pkts, cmd, \
+ (flags) | NIX_TX_MULTI_SEG_F); \
+ }
total: 0 errors, 0 warnings, 1 checks, 253 lines checked
^ permalink raw reply [flat|nested] only message in thread