|WARNING| pw143404 [RFC 2/2] eal/lcore: add llc aware for each macro

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Aug 27 17:12:53 CEST 2024


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

_coding style issues_


WARNING:TYPO_SPELLING: 'availble' may be misspelled - perhaps 'available'?
#115: 
availble lcores.

WARNING:LONG_LINE: line length of 111 exceeds 100 columns
#168: FILE: lib/eal/include/rte_lcore.h:230:
+unsigned int rte_get_llc_lcore (unsigned int i, rte_cpuset_t *llc_cpu, unsigned int *start, unsigned int *end);

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#168: FILE: lib/eal/include/rte_lcore.h:230:
+unsigned int rte_get_llc_lcore (unsigned int i, rte_cpuset_t *llc_cpu, unsigned int *start, unsigned int *end);

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#169: FILE: lib/eal/include/rte_lcore.h:231:
+unsigned int rte_get_llc_first_lcores (rte_cpuset_t *llc_cpu);

WARNING:LONG_LINE: line length of 140 exceeds 100 columns
#170: FILE: lib/eal/include/rte_lcore.h:232:
+unsigned int rte_get_llc_n_lcore (unsigned int i, rte_cpuset_t *llc_cpu, unsigned int *start, unsigned int *end, unsigned int n, bool skip);

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#170: FILE: lib/eal/include/rte_lcore.h:232:
+unsigned int rte_get_llc_n_lcore (unsigned int i, rte_cpuset_t *llc_cpu, unsigned int *start, unsigned int *end, unsigned int n, bool skip);

WARNING:REPEATED_WORD: Possible repeated word: 'the'
#188: FILE: lib/eal/include/rte_lcore.h:252:
+/** Browse all the the cores in the provided llc domain **/

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#191: FILE: lib/eal/include/rte_lcore.h:255:
+	rte_cpuset_t llc_foreach_first_lcores;								\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#192: FILE: lib/eal/include/rte_lcore.h:256:
+	CPU_ZERO(&llc_foreach_first_lcores); i = 0;							\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#193: FILE: lib/eal/include/rte_lcore.h:257:
+	unsigned int llc_foreach_num_iter = rte_get_llc_first_lcores(&llc_foreach_first_lcores);	\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#194: FILE: lib/eal/include/rte_lcore.h:258:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#194: FILE: lib/eal/include/rte_lcore.h:258:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#195: FILE: lib/eal/include/rte_lcore.h:259:
+	for (; i < RTE_MAX_LCORE; i++)									\

ERROR:TRAILING_WHITESPACE: trailing whitespace
#197: FILE: lib/eal/include/rte_lcore.h:261:
+^I$

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#199: FILE: lib/eal/include/rte_lcore.h:263:
+	rte_cpuset_t llc_foreach_first_lcores;								\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#200: FILE: lib/eal/include/rte_lcore.h:264:
+	CPU_ZERO(&llc_foreach_first_lcores); i = 0;							\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#201: FILE: lib/eal/include/rte_lcore.h:265:
+	unsigned int llc_foreach_num_iter = rte_get_llc_first_lcores(&llc_foreach_first_lcores);	\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#203: FILE: lib/eal/include/rte_lcore.h:267:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#203: FILE: lib/eal/include/rte_lcore.h:267:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#204: FILE: lib/eal/include/rte_lcore.h:268:
+	for (; i < RTE_MAX_LCORE; i++)									\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#208: FILE: lib/eal/include/rte_lcore.h:272:
+	rte_cpuset_t llc_foreach_first_lcores;								\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#209: FILE: lib/eal/include/rte_lcore.h:273:
+	rte_cpuset_t llc_foreach_lcore;									\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#210: FILE: lib/eal/include/rte_lcore.h:274:
+        unsigned int start,end;										\

ERROR:CODE_INDENT: code indent should use tabs where possible
#210: FILE: lib/eal/include/rte_lcore.h:274:
+        unsigned int start,end;^I^I^I^I^I^I^I^I^I^I\$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#210: FILE: lib/eal/include/rte_lcore.h:274:
+        unsigned int start,end;^I^I^I^I^I^I^I^I^I^I\$

ERROR:SPACING: space required after that ',' (ctx:VxV)
#210: FILE: lib/eal/include/rte_lcore.h:274:
+        unsigned int start,end;										\
                           ^

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#211: FILE: lib/eal/include/rte_lcore.h:275:
+	CPU_ZERO(&llc_foreach_first_lcores); i = 0;							\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#212: FILE: lib/eal/include/rte_lcore.h:276:
+	unsigned int llc_foreach_num_iter = rte_get_llc_first_lcores(&llc_foreach_first_lcores);	\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#213: FILE: lib/eal/include/rte_lcore.h:277:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#213: FILE: lib/eal/include/rte_lcore.h:277:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:LONG_LINE: line length of 137 exceeds 100 columns
#214: FILE: lib/eal/include/rte_lcore.h:278:
+	for (unsigned int llc_i = i; llc_i < RTE_MAX_LCORE; llc_i++)									\

WARNING:LONG_LINE: line length of 129 exceeds 100 columns
#215: FILE: lib/eal/include/rte_lcore.h:279:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && rte_get_llc_lcore (llc_i, &llc_foreach_lcore, &start, &end)) \

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#215: FILE: lib/eal/include/rte_lcore.h:279:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && rte_get_llc_lcore (llc_i, &llc_foreach_lcore, &start, &end)) \

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#216: FILE: lib/eal/include/rte_lcore.h:280:
+			for (i = start; (i <= end); i++)						\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#220: FILE: lib/eal/include/rte_lcore.h:284:
+	rte_cpuset_t llc_foreach_first_lcores;								\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#221: FILE: lib/eal/include/rte_lcore.h:285:
+	rte_cpuset_t llc_foreach_lcore;									\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#222: FILE: lib/eal/include/rte_lcore.h:286:
+        unsigned int start,end;										\

ERROR:CODE_INDENT: code indent should use tabs where possible
#222: FILE: lib/eal/include/rte_lcore.h:286:
+        unsigned int start,end;^I^I^I^I^I^I^I^I^I^I\$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#222: FILE: lib/eal/include/rte_lcore.h:286:
+        unsigned int start,end;^I^I^I^I^I^I^I^I^I^I\$

ERROR:SPACING: space required after that ',' (ctx:VxV)
#222: FILE: lib/eal/include/rte_lcore.h:286:
+        unsigned int start,end;										\
                           ^

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#223: FILE: lib/eal/include/rte_lcore.h:287:
+	CPU_ZERO(&llc_foreach_first_lcores); i = 0;							\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#224: FILE: lib/eal/include/rte_lcore.h:288:
+	unsigned int llc_foreach_num_iter = rte_get_llc_first_lcores(&llc_foreach_first_lcores);	\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#225: FILE: lib/eal/include/rte_lcore.h:289:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#225: FILE: lib/eal/include/rte_lcore.h:289:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : i;						\

WARNING:LONG_LINE: line length of 137 exceeds 100 columns
#226: FILE: lib/eal/include/rte_lcore.h:290:
+	for (unsigned int llc_i = i; llc_i < RTE_MAX_LCORE; llc_i++)									\

WARNING:LONG_LINE: line length of 129 exceeds 100 columns
#227: FILE: lib/eal/include/rte_lcore.h:291:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && rte_get_llc_lcore (llc_i, &llc_foreach_lcore, &start, &end)) \

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#227: FILE: lib/eal/include/rte_lcore.h:291:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && rte_get_llc_lcore (llc_i, &llc_foreach_lcore, &start, &end)) \

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#228: FILE: lib/eal/include/rte_lcore.h:292:
+			for (i = start + 1; (i <= end); i++)						\

ERROR:SPACING: space required after that ',' (ctx:VxV)
#231: FILE: lib/eal/include/rte_lcore.h:295:
+#define RTE_LCORE_FOREACH_LLC_FIRST_N_WORKER(i,n)	\
                                               ^

ERROR:SPACING: space required after that ',' (ctx:VxV)
#234: FILE: lib/eal/include/rte_lcore.h:298:
+	unsigned int start,end, temp_count;	\
 	                  ^

WARNING:LONG_LINE: line length of 106 exceeds 100 columns
#236: FILE: lib/eal/include/rte_lcore.h:300:
+	unsigned int llc_foreach_num_iter = rte_get_llc_first_lcores(&llc_foreach_first_lcores);	 \

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#237: FILE: lib/eal/include/rte_lcore.h:301:
+	i = (0 == llc_foreach_num_iter) ? RTE_MAX_LCORE : 0;	\

WARNING:LONG_LINE: line length of 153 exceeds 100 columns
#239: FILE: lib/eal/include/rte_lcore.h:303:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && (rte_get_llc_n_lcore (llc_i, &llc_foreach_lcore, &start, &end, n, false) >= n))	\

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#239: FILE: lib/eal/include/rte_lcore.h:303:
+		if (CPU_ISSET(llc_i, &llc_foreach_first_lcores) && (rte_get_llc_n_lcore (llc_i, &llc_foreach_lcore, &start, &end, n, false) >= n))	\

WARNING:LONG_LINE: line length of 118 exceeds 100 columns
#241: FILE: lib/eal/include/rte_lcore.h:305:
+				if (CPU_ISSET(i, &llc_foreach_lcore) && (i != rte_get_main_lcore()) && (temp_count--))

ERROR:SPACING: space required after that ',' (ctx:VxV)
#243: FILE: lib/eal/include/rte_lcore.h:307:
+#define RTE_LCORE_FOREACH_LLC_SKIP_N_WORKER(i,n)	\
                                              ^

ERROR:SPACING: space required after that ',' (ctx:VxV)
#246: FILE: lib/eal/include/rte_lcore.h:310:
+	unsigned int start_skip,end_skip,llc_skip_i;	\
 	                       ^

ERROR:SPACING: space required after that ',' (ctx:VxV)
#246: FILE: lib/eal/include/rte_lcore.h:310:
+	unsigned int start_skip,end_skip,llc_skip_i;	\
 	                                ^

WARNING:LONG_LINE: line length of 113 exceeds 100 columns
#248: FILE: lib/eal/include/rte_lcore.h:312:
+	unsigned int llc_foreach_skip_num_iter = rte_get_llc_first_lcores(&llc_foreach_skip_first_lcores);	\

WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test
#249: FILE: lib/eal/include/rte_lcore.h:313:
+	i = (0 == llc_foreach_skip_num_iter) ? RTE_MAX_LCORE : 0;	\

WARNING:LONG_LINE: line length of 177 exceeds 100 columns
#251: FILE: lib/eal/include/rte_lcore.h:315:
+		if (CPU_ISSET(llc_skip_i, &llc_foreach_skip_first_lcores) && (rte_get_llc_n_lcore (llc_skip_i, &llc_foreach_skip_lcore, &start_skip, &end_skip, n, true) > 0))	\

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#251: FILE: lib/eal/include/rte_lcore.h:315:
+		if (CPU_ISSET(llc_skip_i, &llc_foreach_skip_first_lcores) && (rte_get_llc_n_lcore (llc_skip_i, &llc_foreach_skip_lcore, &start_skip, &end_skip, n, true) > 0))	\

WARNING:LONG_LINE: line length of 105 exceeds 100 columns
#253: FILE: lib/eal/include/rte_lcore.h:317:
+				if (CPU_ISSET(i, &llc_foreach_skip_lcore) && (i != rte_get_main_lcore()))

total: 10 errors, 53 warnings, 119 lines checked


More information about the test-report mailing list