X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Fnet%2Fchecksum.h;h=a40de4019c24773a2724078bedb1f2338e09ff2c;hb=237c4f2a01e35e70869f9f58ec68e23d62701eb4;hp=502d02d8797f5244a8431dd0783bf4fe844b1f88;hpb=3025a772a1ab6cc364a87b481b6e66b703d7bd46;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/net/checksum.h b/datapath/linux/compat/include/net/checksum.h index 502d02d87..a40de4019 100644 --- a/datapath/linux/compat/include/net/checksum.h +++ b/datapath/linux/compat/include/net/checksum.h @@ -32,14 +32,13 @@ static inline void csum_replace2(__sum16 *sum, __be16 from, __be16 to) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) -#define inet_proto_csum_replace2(sum, skb, from, to, pseudohdr) \ - inet_proto_csum_replace4(sum, skb, (__force __be32)(from), \ - (__force __be32)(to), pseudohdr) -#endif - #ifndef CSUM_MANGLED_0 #define CSUM_MANGLED_0 ((__force __sum16)0xffff) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) +void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, + const __be32 *from, const __be32 *to, + int pseudohdr); +#endif #endif /* checksum.h */