compat: Backport dev_recursion_level().
[cascardo/ovs.git] / datapath / linux / compat / include / linux / netdevice.h
index 576989d..19a7b8e 100644 (file)
@@ -199,6 +199,10 @@ struct pcpu_sw_netstats {
 })
 #endif
 
+#ifndef HAVE_DEV_RECURSION_LEVEL
+static inline bool dev_recursion_level(void) { return false; }
+#endif
+
 #ifndef NET_NAME_USER
 #define NET_NAME_USER 3
 #endif