[dpdk-test-report] |WARNING| pw51815 [PATCH] meter: replace color definitions with rte_color values

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Mar 27 16:45:43 CET 2019


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

_coding style issues_


WARNING:LONG_LINE: line over 90 characters
#767: FILE: drivers/net/softnic/rte_eth_softnic_flow.c:1628:
+				softnic_table_action_policer(m->params.action[RTE_COLOR_GREEN]);

WARNING:LONG_LINE: line over 90 characters
#769: FILE: drivers/net/softnic/rte_eth_softnic_flow.c:1630:
+				softnic_table_action_policer(m->params.action[RTE_COLOR_YELLOW]);

WARNING:LONG_LINE: line over 90 characters
#771: FILE: drivers/net/softnic/rte_eth_softnic_flow.c:1632:
+				softnic_table_action_policer(m->params.action[RTE_COLOR_RED]);

WARNING:LONG_LINE: line over 90 characters
#1061: FILE: examples/qos_meter/rte_policer.c:19:
+	if ((pre_meter > RTE_COLOR_RED) || (post_meter > RTE_COLOR_RED) || (pre_meter > post_meter)) {

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1061: FILE: examples/qos_meter/rte_policer.c:19:
+	if ((pre_meter > RTE_COLOR_RED) || (post_meter > RTE_COLOR_RED) || (pre_meter > post_meter)) {
 		return -2;
 	}

WARNING:LONG_LINE: line over 90 characters
#1094: FILE: examples/qos_meter/rte_policer.h:27:
+policer_run(struct rte_phb *phb_table, uint32_t phb_table_index, enum rte_color pre_meter, enum rte_color post_meter)

WARNING:LONG_LINE_COMMENT: line over 90 characters
#1774: FILE: lib/librte_sched/rte_sched.h:208:
+	struct rte_red_params red_params[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE][RTE_COLORS]; /**< RED parameters */

total: 0 errors, 7 warnings, 1518 lines checked


More information about the test-report mailing list