Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Use generic csum_tcpudp_magic for MIPS.

Its implementation is identical to MIPS.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

-13
-13
arch/mips/include/asm/checksum.h
··· 200 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 - */ 206 - static 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 203 * this routine is used for miscellaneous IP-like checksums, mainly 217 204 * in icmp.c 218 205 */