[dpdk-test-report] |WARNING| pw48746 [v2] eventdev: fix eth Tx adapter queue count checks

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Dec 13 09:24:51 CET 2018


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/48746

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#44: 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


More information about the test-report mailing list