Commit b4b5015a authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Use <asm-generic/checksum.h>

Right now the MIPS <asm/checksum.h> still overrides all functions.  This
will change in the future.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d0f0f63a
...@@ -99,6 +99,7 @@ __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len, ...@@ -99,6 +99,7 @@ __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len,
*/ */
__wsum csum_partial_copy_nocheck(const void *src, void *dst, __wsum csum_partial_copy_nocheck(const void *src, void *dst,
int len, __wsum sum); int len, __wsum sum);
#define csum_partial_copy_nocheck csum_partial_copy_nocheck
/* /*
* Fold a partial checksum without adding pseudo headers * Fold a partial checksum without adding pseudo headers
...@@ -114,6 +115,7 @@ static inline __sum16 csum_fold(__wsum csum) ...@@ -114,6 +115,7 @@ static inline __sum16 csum_fold(__wsum csum)
return (__force __sum16)~sum; return (__force __sum16)~sum;
} }
#define csum_fold csum_fold
/* /*
* This is a version of ip_compute_csum() optimized for IP headers, * This is a version of ip_compute_csum() optimized for IP headers,
...@@ -152,6 +154,7 @@ static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) ...@@ -152,6 +154,7 @@ static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
return csum_fold(csum); return csum_fold(csum);
} }
#define ip_fast_csum ip_fast_csum
static inline __wsum csum_tcpudp_nofold(__be32 saddr, static inline __wsum csum_tcpudp_nofold(__be32 saddr,
__be32 daddr, unsigned short len, unsigned short proto, __be32 daddr, unsigned short len, unsigned short proto,
...@@ -194,6 +197,7 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr, ...@@ -194,6 +197,7 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr,
return sum; return sum;
} }
#define csum_tcpudp_nofold csum_tcpudp_nofold
/* /*
* computes the checksum of the TCP/UDP pseudo-header * computes the checksum of the TCP/UDP pseudo-header
...@@ -206,6 +210,7 @@ static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, ...@@ -206,6 +210,7 @@ static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
{ {
return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
} }
#define csum_tcpudp_magic csum_tcpudp_magic
/* /*
* this routine is used for miscellaneous IP-like checksums, mainly * this routine is used for miscellaneous IP-like checksums, mainly
...@@ -281,4 +286,6 @@ static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, ...@@ -281,4 +286,6 @@ static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
return csum_fold(sum); return csum_fold(sum);
} }
#include <asm-generic/checksum.h>
#endif /* _ASM_CHECKSUM_H */ #endif /* _ASM_CHECKSUM_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment