Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1501570 > unrolled thread

[PATCH 2/8] uapi linux bpf: add max value to enum

Started byEric Leblond <eric@regit.org>
First post2016-10-17 00:10 +0200
Last post2016-10-17 00:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/8] uapi linux bpf: add max value to enum Eric Leblond <eric@regit.org> - 2016-10-17 00:10 +0200

#1501570 — [PATCH 2/8] uapi linux bpf: add max value to enum

FromEric Leblond <eric@regit.org>
Date2016-10-17 00:10 +0200
Subject[PATCH 2/8] uapi linux bpf: add max value to enum
Message-ID<st1MZ-3dc-1@gated-at.bofh.it>
It will be used to detect userspace trying to set invalid value.

Signed-off-by: Eric Leblond <eric@regit.org>
---
 include/uapi/linux/bpf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index f09c70b..570287f 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -96,6 +96,7 @@ enum bpf_prog_type {
 	BPF_PROG_TYPE_TRACEPOINT,
 	BPF_PROG_TYPE_XDP,
 	BPF_PROG_TYPE_PERF_EVENT,
+	__MAX_BPF_PROG_TYPE,
 };
 
 #define BPF_PSEUDO_MAP_FD	1
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web