datapath: Check for backported skb_frag_page().
[openvswitch] / datapath / linux / compat / include / linux / rculist.h
index 4164c0e997c4baf6d0740d86a1024b4184fa43a5..64e3905914b21b3f65967641060926798470b35d 100644 (file)
@@ -9,4 +9,15 @@
 #include <linux/list.h>
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+#define hlist_del_init_rcu rpl_hlist_del_init_rcu
+static inline void hlist_del_init_rcu(struct hlist_node *n)
+{
+       if (!hlist_unhashed(n)) {
+               __hlist_del(n);
+               n->pprev = NULL;
+       }
+}
+#endif
+
 #endif