]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_bpf/bpf_def.h
net/sfc: fix an Rx queue double release possibility
[dpdk.git] / lib / librte_bpf / bpf_def.h
index 6b69de345618caa08d2d933a0b986b803118982d..c10f3aec46e7de877696b0b09257333cbd0e4d28 100644 (file)
@@ -131,6 +131,11 @@ struct ebpf_insn {
        int32_t imm;
 };
 
+/*
+ * eBPF allows functions with R1-R5 as arguments.
+ */
+#define        EBPF_FUNC_MAX_ARGS      (EBPF_REG_6 - EBPF_REG_1)
+
 #ifdef __cplusplus
 }
 #endif