mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Tony Luck <[email protected]>
This commit is contained in:
parent
5b4d5681ff
commit
007d77d0c5
2 changed files with 59 additions and 2 deletions
|
|
@ -70,4 +70,10 @@ static inline __sum16 csum_fold(__wsum csum)
|
|||
return (__force __sum16)~sum;
|
||||
}
|
||||
|
||||
#define _HAVE_ARCH_IPV6_CSUM 1
|
||||
struct in6_addr;
|
||||
extern unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
|
||||
struct in6_addr *daddr, __u32 len, unsigned short proto,
|
||||
unsigned int csum);
|
||||
|
||||
#endif /* _ASM_IA64_CHECKSUM_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue