projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: compat: fix udp checksum calculation
[cascardo/ovs.git]
/
datapath
/
linux
/
compat
/
include
/
net
/
udp.h
diff --git
a/datapath/linux/compat/include/net/udp.h
b/datapath/linux/compat/include/net/udp.h
index
fa49fa5
..
266e70a
100644
(file)
--- a/
datapath/linux/compat/include/net/udp.h
+++ b/
datapath/linux/compat/include/net/udp.h
@@
-54,7
+54,7
@@
static inline __sum16 udp_v4_check(int len, __be32 saddr,
}
#endif
-#if
ndef HAVE_UDP_SET_CSUM
+#if
LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0)
#define udp_set_csum rpl_udp_set_csum
void rpl_udp_set_csum(bool nocheck, struct sk_buff *skb,
__be32 saddr, __be32 daddr, int len);