Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755694AbcJPV7B (ORCPT ); Sun, 16 Oct 2016 17:59:01 -0400 Received: from home.regit.org ([37.187.126.138]:45527 "EHLO home.regit.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754153AbcJPV7A (ORCPT ); Sun, 16 Oct 2016 17:59:00 -0400 X-Greylist: delayed 2268 seconds by postgrey-1.27 at vger.kernel.org; Sun, 16 Oct 2016 17:59:00 EDT From: Eric Leblond To: netdev@vger.kernel.org, wangnan0@huawei.com Cc: linux-kernel@vger.kernel.org, ast@fb.com, Eric Leblond Subject: [PATCH 2/8] uapi linux bpf: add max value to enum Date: Sun, 16 Oct 2016 23:18:28 +0200 Message-Id: <20161016211834.11732-3-eric@regit.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161016211834.11732-1-eric@regit.org> References: <20161016211834.11732-1-eric@regit.org> X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 521 Lines: 21 It will be used to detect userspace trying to set invalid value. Signed-off-by: Eric Leblond --- 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