datapath: Remove netdev_alloc_skb_ip_align() compat code.
[openvswitch] / datapath / linux-2.6 / compat-2.6 / include / net / checksum.h
index c64c6bd0c934913d21d5b10c6c6e830f60ef7d92..3b6debb1d1c28741b2715bbade32b50be71d89e1 100644 (file)
@@ -3,14 +3,11 @@
 
 #include_next <net/checksum.h>
 
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
-
+#ifndef HAVE_CSUM_UNFOLD
 static inline __wsum csum_unfold(__sum16 n)
 {
        return (__force __wsum)n;
 }
-
-#endif /* linux kernel < 2.6.20 */
+#endif /* !HAVE_CSUM_UNFOLD */
 
 #endif /* checksum.h */