summaryrefslogtreecommitdiff
path: root/pkg/iproute2/patch/0015-Revert-change-of-BPF_F_-to-enum-constants.patch
blob: f19c9c08e6a3fd26865d4274ccfd5a5f2f773a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 7da0d09e39fc29878927b9e03bed68b1991c4150 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Tue, 2 Jun 2020 03:56:03 -0700
Subject: [PATCH] Revert change of BPF_F_* to enum constants

---
 include/uapi/linux/bpf.h | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 177cdc57..262001e4 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -5120,12 +5120,10 @@ enum {
 /* BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and
  * BPF_FUNC_perf_event_read_value flags.
  */
-enum {
-	BPF_F_INDEX_MASK		= 0xffffffffULL,
-	BPF_F_CURRENT_CPU		= BPF_F_INDEX_MASK,
+#define BPF_F_INDEX_MASK		0xffffffffULL
+#define BPF_F_CURRENT_CPU		BPF_F_INDEX_MASK
 /* BPF_FUNC_perf_event_output for sk_buff input context. */
-	BPF_F_CTXLEN_MASK		= (0xfffffULL << 32),
-};
+#define BPF_F_CTXLEN_MASK		(0xfffffULL << 32)
 
 /* Current network namespace */
 enum {
-- 
2.34.0