Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
[cascardo/ovs.git] / datapath / linux-2.6 / compat-2.6 / include / net / checksum.h
1 #ifndef __NET_CHECKSUM_WRAPPER_H
2 #define __NET_CHECKSUM_WRAPPER_H 1
3
4 #include_next <net/checksum.h>
5
6 #include <linux/version.h>
7 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
8
9 static inline __wsum csum_unfold(__sum16 n)
10 {
11         return (__force __wsum)n;
12 }
13
14 #endif /* linux kernel < 2.6.20 */
15
16 #endif /* checksum.h */