aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChen, Kenneth W <kenneth.w.chen@intel.com>2006-11-10 16:17:50 -0500
committerTony Luck <tony.luck@intel.com>2006-12-07 14:17:26 -0500
commit007d77d0c5eb36555443ff273ce2a27f90da8837 (patch)
tree6d85a48be575cc8cda1bef7b7aa360ac8bcebde7 /include
parent5b4d5681ffaa6e1bf3b085beb701d87c7c7404da (diff)
[IA64] implement csum_ipv6_magic for ia64.
The asm version is 4.4 times faster than the generic C version and 10X smaller in code size. Signed-off-by: Ken Chen <kenneth.w.chen@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ia64/checksum.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-ia64/checksum.h b/include/asm-ia64/checksum.h
index bd40f4756ce1..2b78582cbd61 100644
--- a/include/asm-ia64/checksum.h
+++ b/include/asm-ia64/checksum.h
@@ -70,4 +70,10 @@ static inline __sum16 csum_fold(__wsum csum)
70 return (__force __sum16)~sum; 70 return (__force __sum16)~sum;
71} 71}
72 72
73#define _HAVE_ARCH_IPV6_CSUM 1
74struct in6_addr;
75extern unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
76 struct in6_addr *daddr, __u32 len, unsigned short proto,
77 unsigned int csum);
78
73#endif /* _ASM_IA64_CHECKSUM_H */ 79#endif /* _ASM_IA64_CHECKSUM_H */