mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
MIPS: Use generic csum_tcpudp_magic for MIPS.
Its implementation is identical to MIPS. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
b4b5015a1c
commit
2f26c48824
@ -199,19 +199,6 @@ static inline __wsum csum_tcpudp_nofold(__be32 saddr,
|
||||
}
|
||||
#define csum_tcpudp_nofold csum_tcpudp_nofold
|
||||
|
||||
/*
|
||||
* computes the checksum of the TCP/UDP pseudo-header
|
||||
* returns a 16-bit checksum, already complemented
|
||||
*/
|
||||
static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
|
||||
unsigned short len,
|
||||
unsigned short proto,
|
||||
__wsum 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
|
||||
* in icmp.c
|
||||
|
Loading…
Reference in New Issue
Block a user