diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-21 00:21:59 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-11-21 00:37:35 +0100 |
commit | 1ee640095f049e7ac4ec36b985abada497b98cc2 (patch) | |
tree | 8cc464b6d7f56efb6a355caba80631ebca2c078a /kernel/bpf/syscall.c | |
parent | bpftool: revert printing program device bound info (diff) | |
download | linux-1ee640095f049e7ac4ec36b985abada497b98cc2.tar.xz linux-1ee640095f049e7ac4ec36b985abada497b98cc2.zip |
bpf: revert report offload info to user space
This reverts commit bd601b6ada11 ("bpf: report offload info to user
space"). The ifindex by itself is not sufficient, we should provide
information on which network namespace this ifindex belongs to.
After considering some options we concluded that it's best to just
remove this API for now, and rework it in -next.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 41509cf825d8..2c4cfeaa8d5e 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -1616,11 +1616,6 @@ static int bpf_prog_get_info_by_fd(struct bpf_prog *prog, return -EFAULT; } - if (bpf_prog_is_dev_bound(prog->aux)) { - info.status |= BPF_PROG_STATUS_DEV_BOUND; - info.ifindex = bpf_prog_offload_ifindex(prog); - } - done: if (copy_to_user(uinfo, &info, info_len) || put_user(info_len, &uattr->info.info_len)) |