aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-12-17 17:05:10 -0500
committerRalf Baechle <ralf@linux-mips.org>2015-01-13 10:04:27 -0500
commit2f26c48824ece86ccc6e8d5889fbf338ebfc67e5 (patch)
tree84c44253dc981a8a094462ab39683efd5504e3ee /arch/mips/include
parentb4b5015a1c1450e008ccd414c760f4ef907a461b (diff)
MIPS: Use generic csum_tcpudp_magic for MIPS.
Its implementation is identical to MIPS. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/checksum.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/mips/include/asm/checksum.h b/arch/mips/include/asm/checksum.h
index 64ae32c082d1..5996252680c6 100644
--- a/arch/mips/include/asm/checksum.h
+++ b/arch/mips/include/asm/checksum.h
@@ -200,19 +200,6 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr,
200#define csum_tcpudp_nofold csum_tcpudp_nofold 200#define csum_tcpudp_nofold csum_tcpudp_nofold
201 201
202/* 202/*
203 * computes the checksum of the TCP/UDP pseudo-header
204 * returns a 16-bit checksum, already complemented
205 */
206static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
207 unsigned short len,
208 unsigned short proto,
209 __wsum sum)
210{
211 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum));
212}
213#define csum_tcpudp_magic csum_tcpudp_magic
214
215/*
216 * this routine is used for miscellaneous IP-like checksums, mainly 203 * this routine is used for miscellaneous IP-like checksums, mainly
217 * in icmp.c 204 * in icmp.c
218 */ 205 */