* [dpdk-test-report] |WARNING| pw48400 eventdev: fix eth Tx adapter queue count checks
[not found] <1543489908-60688-1-git-send-email-nikhil.rao@intel.com>
@ 2018-11-29 11:13 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-11-29 11:13 UTC (permalink / raw)
To: test-report; +Cc: Nikhil Rao
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/48400
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#42: FILE: lib/librte_eventdev/rte_event_eth_tx_adapter.c:62:
+#define TXA_CHECK_TXQ(dev, queue) \
+do {\
+ if ((dev)->data->nb_tx_queues == 0) { \
+ RTE_EDEV_LOG_ERR("No tx queues configured"); \
+ return -EINVAL; \
+ } \
+ if (queue != -1 && (uint16_t)queue >= (dev)->data->nb_tx_queues) { \
+ RTE_EDEV_LOG_ERR("Invalid tx queue_id %" PRIu16, \
+ (uint16_t)queue); \
+ return -EINVAL; \
+ } \
+} while (0)
total: 0 errors, 1 warnings, 84 lines checked
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-29 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1543489908-60688-1-git-send-email-nikhil.rao@intel.com>
2018-11-29 11:13 ` [dpdk-test-report] |WARNING| pw48400 eventdev: fix eth Tx adapter queue count checks 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).