diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2020-01-22 23:04:53 +0100 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-01-22 23:05:08 +0100 |
| commit | 1b2fd38de9fcc73d6994f8f6c7c23ee3435b6a12 (patch) | |
| tree | 99bc088a4cd4e27b6c5befcbae2ade0ea72a7f1d /include/uapi/linux | |
| parent | 2a67a6ccb01f21b854715d86ff6432a18b97adb3 (diff) | |
| parent | 7805fe843964f81f98592bf580b9cd736ac4ad4c (diff) | |
| download | talos-op-linux-1b2fd38de9fcc73d6994f8f6c7c23ee3435b6a12.tar.gz talos-op-linux-1b2fd38de9fcc73d6994f8f6c7c23ee3435b6a12.zip | |
Merge branch 'bpf-dynamic-relinking'
Alexei Starovoitov says:
====================
The last few month BPF community has been discussing an approach to call
chaining, since exiting bpt_tail_call() mechanism used in production XDP
programs has plenty of downsides. The outcome of these discussion was a
conclusion to implement dynamic re-linking of BPF programs. Where rootlet XDP
program attached to a netdevice can programmatically define a policy of
execution of other XDP programs. Such rootlet would be compiled as normal XDP
program and provide a number of placeholder global functions which later can be
replaced with future XDP programs. BPF trampoline, function by function
verification were building blocks towards that goal. The patch 1 is a final
building block. It introduces dynamic program extensions. A number of
improvements like more flexible function by function verification and better
libbpf api will be implemented in future patches.
v1->v2:
- addressed Andrii's comments
- rebase
====================
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 033d90a2282d..e81628eb059c 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -180,6 +180,7 @@ enum bpf_prog_type { BPF_PROG_TYPE_CGROUP_SOCKOPT, BPF_PROG_TYPE_TRACING, BPF_PROG_TYPE_STRUCT_OPS, + BPF_PROG_TYPE_EXT, }; enum bpf_attach_type { |

