datapath: Check for backported sctp_compute_cksum().
[sliver-openvswitch.git] / datapath / linux / compat / include / net / sctp / checksum.h
index 11fb0b6..7832abc 100644 (file)
@@ -1,15 +1,9 @@
 #ifndef __SCTP_CHECKSUM_WRAPPER_H
 #define __SCTP_CHECKSUM_WRAPPER_H 1
 
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
-#include <net/sctp/sctp.h>
-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) */
 #include_next <net/sctp/checksum.h>
-#endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
+#ifndef HAVE_SCTP_COMPUTE_CKSUM
 static inline __le32 sctp_compute_cksum(const struct sk_buff *skb,
                                        unsigned int offset)
 {