[dpdk-test-report] |WARNING| pw98310 [PATCH 29/32] net/ngbe: create and destroy security session

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Sep 8 10:39:50 CEST 2021


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'a' - possible side-effects?
#113: FILE: drivers/net/ngbe/ngbe_ipsec.c:14:
+#define CMP_IP(a, b) (\
+	(a).ipv6[0] == (b).ipv6[0] && \
+	(a).ipv6[1] == (b).ipv6[1] && \
+	(a).ipv6[2] == (b).ipv6[2] && \
+	(a).ipv6[3] == (b).ipv6[3])

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects?
#113: FILE: drivers/net/ngbe/ngbe_ipsec.c:14:
+#define CMP_IP(a, b) (\
+	(a).ipv6[0] == (b).ipv6[0] && \
+	(a).ipv6[1] == (b).ipv6[1] && \
+	(a).ipv6[2] == (b).ipv6[2] && \
+	(a).ipv6[3] == (b).ipv6[3])

CHECK:CAMELCASE: Avoid CamelCase: <IPv6>
#187: FILE: drivers/net/ngbe/ngbe_ipsec.c:88:
+		if (ic_session->dst_ip.type == IPv6) {

CHECK:CAMELCASE: Avoid CamelCase: <IPv4>
#190: FILE: drivers/net/ngbe/ngbe_ipsec.c:91:
+		} else if (ic_session->dst_ip.type == IPv4) {

total: 0 errors, 0 warnings, 4 checks, 493 lines checked


More information about the test-report mailing list