From 03e0d245596b0276ea0cdc8efe6120f51653a713 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Tue, 17 Sep 2019 15:22:43 +0200 Subject: sys/linux: basic support for bpf-to-bpf function calls The BPF template currently only defines helper calls. BPF function calls (bpf-to-bpf calls) are however supported in Linux since v4.16. This patch defines bpf-to-bpf calls in the template. Signed-off-by: Paul Chaignon --- sys/linux/bpf_amd64.const | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/linux/bpf_amd64.const') diff --git a/sys/linux/bpf_amd64.const b/sys/linux/bpf_amd64.const index 5dc99bcc3..f37388cfd 100644 --- a/sys/linux/bpf_amd64.const +++ b/sys/linux/bpf_amd64.const @@ -148,6 +148,7 @@ BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 BPF_PROG_TYPE_TRACEPOINT = 5 BPF_PROG_TYPE_XDP = 6 +BPF_PSEUDO_CALL = 1 BPF_PSEUDO_MAP_FD = 1 BPF_PSEUDO_MAP_VALUE = 2 BPF_RAW_TRACEPOINT_OPEN = 17 -- cgit mrf-deployment