diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-21 00:21:52 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-11-21 00:37:35 +0100 |
commit | 649f11dcd19a5f0d00fdbc760fbdccdd98e56a43 (patch) | |
tree | bcafe01fe371aa64a477440e4b9a30d1cffe158f /include/uapi | |
parent | bpf: offload: add comment warning developers about double destroy (diff) | |
download | linux-649f11dcd19a5f0d00fdbc760fbdccdd98e56a43.tar.xz linux-649f11dcd19a5f0d00fdbc760fbdccdd98e56a43.zip |
bpf: offload: limit offload to cls_bpf and xdp programs only
We are currently only allowing attachment of device-bound
cls_bpf and XDP programs. Make this restriction explicit in
the BPF offload code. This way we can potentially reuse the
ifindex field in the future.
Since XDP and cls_bpf programs can only be loaded by admin,
we can drop the explicit capability check from offload code.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions