X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_bpf%2Fbpf_def.h;h=d39992997a2cd48d2bb9c8e0d0aa4a6b57335713;hb=39de80b267e05d6f3322044e5851306acc84f892;hp=c10f3aec46e7de877696b0b09257333cbd0e4d28;hpb=60702e8c7cbbadd4d5e6ffe4d7f470db339b0a04;p=dpdk.git diff --git a/lib/librte_bpf/bpf_def.h b/lib/librte_bpf/bpf_def.h index c10f3aec46..d39992997a 100644 --- a/lib/librte_bpf/bpf_def.h +++ b/lib/librte_bpf/bpf_def.h @@ -120,6 +120,14 @@ enum { EBPF_REG_NUM, }; +/* + * When EBPF_CALL instruction has src_reg == EBPF_PSEUDO_CALL, + * it should be treated as pseudo-call instruction, where + * imm value contains pc-relative offset to another EBPF function. + * Right now DPDK EBPF library doesn't support it. + */ +#define EBPF_PSEUDO_CALL EBPF_REG_1 + /* * eBPF instruction format */