diff options
| author | Paul Chaignon <paul.chaignon@orange.com> | 2019-09-17 15:22:43 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-09-17 20:38:59 +0200 |
| commit | 03e0d245596b0276ea0cdc8efe6120f51653a713 (patch) | |
| tree | 11e9dc186535727d46d593d5dd41ad9d1fb6bf56 /sys/linux/bpf_amd64.const | |
| parent | ad847b96aafa0316fd225183e53c742042032147 (diff) | |
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 <paul.chaignon@orange.com>
Diffstat (limited to 'sys/linux/bpf_amd64.const')
| -rw-r--r-- | sys/linux/bpf_amd64.const | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
