[dpdk-test-report] |WARNING| pw44329 [v2] net/pcap: physical interface MAC address support

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 6 18:10:12 CEST 2018


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

_coding style issues_


CHECK:CAMELCASE: Avoid CamelCase: <__FreeBSD__>
#51: FILE: drivers/net/pcap/rte_eth_pcap.c:14:
+#ifdef __FreeBSD__

ERROR:OPEN_BRACE: that open brace { should be on the previous line
#94: FILE: drivers/net/pcap/rte_eth_pcap.c:926:
+	if (if_fd != -1)
+	{

ERROR:SPACING: space required before the open parenthesis '('
#101: FILE: drivers/net/pcap/rte_eth_pcap.c:933:
+			if(mac_addrs) {

WARNING:BRACES: braces {} are not necessary for single statement blocks
#121: FILE: drivers/net/pcap/rte_eth_pcap.c:953:
+	if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0) {
+		goto cleanup;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#131: FILE: drivers/net/pcap/rte_eth_pcap.c:963:
+			if (sysctl(mib, 6, buf, &len, NULL, 0) < 0) {
+				goto cleanup;
+			}

total: 2 errors, 2 warnings, 1 checks, 212 lines checked


More information about the test-report mailing list