|WARNING| pw159574 [RFC] bsd_pbf: introduce new driver using FreeBSD /dev/bpf

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Jan 5 07:55:31 CET 2026


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

_coding style issues_


WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#372: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:87:
+	unsigned nb_queues;

WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably be static const char * const
#388: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:103:
+static const char *valid_arguments[] = {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#490: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:205:
+	unsigned i;

CHECK:BRACES: Unbalanced braces around else statement
#518: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:233:
+		} else

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#689: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:404:
+	unsigned i;

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#770: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:485:
+	unsigned i;

CHECK:BRACES: Unbalanced braces around else statement
#810: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:525:
+			} else

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#1085: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:800:
+		       const unsigned nb_queues,

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1206: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:921:
+	if (zerocopy) {
+		PMD_LOG(WARNING, "Zero-copy BPF not supported on this platform");
+	}

CHECK:BRACES: Unbalanced braces around else statement
#1325: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:1040:
+		} else

CHECK:BRACES: Unbalanced braces around else statement
#1382: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:1097:
+			} else

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#1406: FILE: drivers/net/bsd_bpf/rte_eth_bpf.c:1121:
+	unsigned k_idx;

total: 0 errors, 8 warnings, 4 checks, 1405 lines checked
Warning in drivers/net/bsd_bpf/rte_eth_bpf.c:
Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer rte_atomic_xxx/rte_memory_order_xxx


More information about the test-report mailing list