0002-Revert-change-of-BPF_F_-to-enum-constants.patch (993B)
1 From e373a645de1b2e57878dc17420dad3d0464694e6 Mon Sep 17 00:00:00 2001 2 From: Michael Forney <mforney@mforney.org> 3 Date: Tue, 2 Jun 2020 03:56:03 -0700 4 Subject: [PATCH] Revert change of BPF_F_* to enum constants 5 6 --- 7 include/uapi/linux/bpf.h | 8 +++----- 8 1 file changed, 3 insertions(+), 5 deletions(-) 9 10 diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h 11 index c994ff5b157c..ed8261560f2b 100644 12 --- a/include/uapi/linux/bpf.h 13 +++ b/include/uapi/linux/bpf.h 14 @@ -5850,12 +5850,10 @@ enum { 15 /* BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and 16 * BPF_FUNC_perf_event_read_value flags. 17 */ 18 -enum { 19 - BPF_F_INDEX_MASK = 0xffffffffULL, 20 - BPF_F_CURRENT_CPU = BPF_F_INDEX_MASK, 21 +#define BPF_F_INDEX_MASK 0xffffffffULL 22 +#define BPF_F_CURRENT_CPU BPF_F_INDEX_MASK 23 /* BPF_FUNC_perf_event_output for sk_buff input context. */ 24 - BPF_F_CTXLEN_MASK = (0xfffffULL << 32), 25 -}; 26 +#define BPF_F_CTXLEN_MASK (0xfffffULL << 32) 27 28 /* Current network namespace */ 29 enum { 30 -- 31 2.37.3 32