summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/patches/0008-add-back-old-gfp-this-node-define.patch
blob: ec7d3251712ccbb4fd2833ff4f29c7143ae367a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/datapath/flow.c b/datapath/flow.c
index a7a2063..8db8041 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -51,6 +51,14 @@
 
 #include "vlan.h"
 
+#ifndef GFP_THISNODE
+#ifdef CONFIG_NUMA  
+#define GFP_THISNODE    (__GFP_THISNODE | __GFP_NOWARN | __GFP_NORETRY)
+#else                             
+#define GFP_THISNODE    ((__force gfp_t)0)
+#endif 
+#endif
+
 u64 ovs_flow_used_time(unsigned long flow_jiffies)
 {
 	struct timespec cur_ts;