* |WARNING| pw121199 [PATCH 4/4] event/cnxk: restructure for cn10k datapath
[not found] <20221221091549.967801-4-rbhansali@marvell.com>
@ 2022-12-21 9:17 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2022-12-21 9:17 UTC (permalink / raw)
To: test-report; +Cc: Rahul Bhansali
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/121199
_coding style issues_
WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon
#585: FILE: drivers/event/cnxk/cn10k_tx_worker.h:221:
+#define T(name, sz, flags) \
+ uint16_t __rte_hot cn10k_sso_hws_tx_adptr_enq_##name( \
+ void *port, struct rte_event ev[], uint16_t nb_events); \
+ uint16_t __rte_hot cn10k_sso_hws_tx_adptr_enq_seg_##name( \
+ void *port, struct rte_event ev[], uint16_t nb_events);
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#594: FILE: drivers/event/cnxk/cn10k_tx_worker.h:230:
+#define SSO_TX(fn, sz, flags) \
+ uint16_t __rte_hot fn(void *port, struct rte_event ev[], \
+ uint16_t nb_events) \
+ { \
+ struct cn10k_sso_hws *ws = port; \
+ uint64_t cmd[sz]; \
+ RTE_SET_USED(nb_events); \
+ return cn10k_sso_hws_event_tx( \
+ ws, &ev[0], cmd, (const uint64_t *)ws->tx_adptr_data, \
+ flags); \
+ }
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#606: FILE: drivers/event/cnxk/cn10k_tx_worker.h:242:
+#define SSO_TX_SEG(fn, sz, flags) \
+ uint16_t __rte_hot fn(void *port, struct rte_event ev[], \
+ uint16_t nb_events) \
+ { \
+ uint64_t cmd[(sz) + CNXK_NIX_TX_MSEG_SG_DWORDS - 2]; \
+ struct cn10k_sso_hws *ws = port; \
+ RTE_SET_USED(nb_events); \
+ return cn10k_sso_hws_event_tx( \
+ ws, &ev[0], cmd, (const uint64_t *)ws->tx_adptr_data, \
+ (flags) | NIX_TX_MULTI_SEG_F); \
+ }
total: 0 errors, 3 warnings, 2687 lines checked
^ permalink raw reply [flat|nested] only message in thread