|WARNING| pw155627 [v2] net/cksum: compute raw cksum for several segments

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Aug 1 17:27:54 CEST 2025


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

_coding style issues_


ERROR:CORRUPTED_PATCH: patch seems to be corrupt (line wrapped?)
#111: FILE: :176:
uint32_t off, uint32_t len,

WARNING:EMBEDDED_FILENAME: It's generally not useful to have the filename in the file
#116: FILE: :180:
+			tmp = rte_bswap32(tmp);

WARNING:EMBEDDED_FILENAME: It's generally not useful to have the filename in the file
#126: FILE: :192:
+	*cksum = __rte_raw_cksum_reduce_u64(sum);

WARNING:BLOCK_COMMENT_STYLE: Block comments use * on subsequent lines
#150: FILE: app/test/test_cksum.c:89:
+/* generated in scapy with
+static const char test_cksum_ipv4_tcp_multi_segs[] = {

WARNING:TYPO_SPELLING: 'lenght' may be misspelled - perhaps 'length'?
#178: FILE: app/test/test_cksum.c:117:
+	61,  /* the second seg lenght is odd, test byte order independent */

ERROR:TRAILING_WHITESPACE: trailing whitespace
#205: FILE: app/test/test_cksum.c:272:
+^I$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#210: FILE: app/test/test_cksum.c:277:
+^I^I$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#234: FILE: app/test/test_cksum.c:301:
+^I$

total: 4 errors, 4 warnings, 183 lines checked


More information about the test-report mailing list