git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Check for backported sctp_compute_cksum().
[sliver-openvswitch.git]
/
datapath
/
linux
/
compat
/
include
/
net
/
sctp
/
checksum.h
diff --git
a/datapath/linux/compat/include/net/sctp/checksum.h
b/datapath/linux/compat/include/net/sctp/checksum.h
index
59d209b
..
7832abc
100644
(file)
--- a/
datapath/linux/compat/include/net/sctp/checksum.h
+++ b/
datapath/linux/compat/include/net/sctp/checksum.h
@@
-1,10
+1,9
@@
#ifndef __SCTP_CHECKSUM_WRAPPER_H
#define __SCTP_CHECKSUM_WRAPPER_H 1
#ifndef __SCTP_CHECKSUM_WRAPPER_H
#define __SCTP_CHECKSUM_WRAPPER_H 1
-#include <linux/version.h>
#include_next <net/sctp/checksum.h>
#include_next <net/sctp/checksum.h>
-#if
LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
+#if
ndef HAVE_SCTP_COMPUTE_CKSUM
static inline __le32 sctp_compute_cksum(const struct sk_buff *skb,
unsigned int offset)
{
static inline __le32 sctp_compute_cksum(const struct sk_buff *skb,
unsigned int offset)
{