[dpdk-test-report] |WARNING| pw94054 [RFC PATCH v1 1/3] sched: add PIE based congestion management

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jun 9 12:55:10 CEST 2021


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

_coding style issues_


WARNING:BRACES: braces {} are not necessary for single statement blocks
#177: FILE: lib/sched/rte_pie.c:45:
+	if (pie_cfg == NULL) {
+		return -1;
+	}

WARNING:LONG_LINE_COMMENT: line length of 107 exceeds 100 columns
#241: FILE: lib/sched/rte_pie.h:24:
+#define RTE_DQ_THRESHOLD   16384   /**< Queue length threshold (2^14) to start measurement cycle (bytes) */

WARNING:LONG_LINE_COMMENT: line length of 101 exceeds 100 columns
#265: FILE: lib/sched/rte_pie.h:48:
+	uint64_t dp_update_interval;    /**< Update interval for drop probability (in CPU cycles.) */

WARNING:LONG_LINE_COMMENT: line length of 101 exceeds 100 columns
#276: FILE: lib/sched/rte_pie.h:59:
+	uint32_t departed_bytes_count;  /**< Number of bytes departed in current measurement cycle */

WARNING:TYPO_SPELLING: 'milliseonds' may be misspelled - perhaps 'milliseconds'?
#306: FILE: lib/sched/rte_pie.h:89:
+ * @param max_burst [in] maximum burst allowance (milliseonds)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#548: FILE: lib/sched/rte_pie.h:331:
+	const unsigned qlen,

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#555: FILE: lib/sched/rte_pie.h:338:
+	if (qlen != 0) {
[...]
+	} else {
[...]

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#571: FILE: lib/sched/rte_pie.h:354:
+rte_pie_dequeue (struct rte_pie *pie,

WARNING:LONG_LINE: line length of 116 exceeds 100 columns
#586: FILE: lib/sched/rte_pie.h:369:
+				pie->avg_dq_time = dq_time * RTE_DQ_WEIGHT + pie->avg_dq_time * (1 - RTE_DQ_WEIGHT);

total: 0 errors, 9 warnings, 935 lines checked


More information about the test-report mailing list