summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_cls.h
diff options
context:
space:
mode:
authorDaniel Borkmann2017-06-21 20:16:11 +0200
committerDavid S. Miller2017-06-21 21:14:23 +0200
commite86283071fb0eed28136adb52997888f4beb202b (patch)
tree83111eeb6166417c89287659f2014e8cd2fb79d6 /include/uapi/linux/pkt_cls.h
parentsock: avoid dirtying incoming_cpu if not needed (diff)
downloadkernel-qcow2-linux-e86283071fb0eed28136adb52997888f4beb202b.tar.gz
kernel-qcow2-linux-e86283071fb0eed28136adb52997888f4beb202b.tar.xz
kernel-qcow2-linux-e86283071fb0eed28136adb52997888f4beb202b.zip
bpf: expose prog id for cls_bpf and act_bpf
In order to be able to retrieve the attached programs from cls_bpf and act_bpf, we need to expose the prog ids via netlink so that an application can later on get an fd based on the id through the BPF_PROG_GET_FD_BY_ID command, and dump related prog info via BPF_OBJ_GET_INFO_BY_FD command for bpf(2). Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/pkt_cls.h')
-rw-r--r--include/uapi/linux/pkt_cls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 2055783e6ee9..d5e2bf68d0d4 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -369,6 +369,7 @@ enum {
TCA_BPF_FLAGS,
TCA_BPF_FLAGS_GEN,
TCA_BPF_TAG,
+ TCA_BPF_ID,
__TCA_BPF_MAX,
};