[Top] [All Lists]

Re: csum_ipv6_magic()

To: Machida Hiroyuki <>
Subject: Re: csum_ipv6_magic()
From: Ralf Baechle <>
Date: Mon, 22 Oct 2001 22:48:28 +0200
In-reply-to: <>; from on Mon, Oct 22, 2001 at 08:33:24PM +0900
References: <> <> <> <>
User-agent: Mutt/1.2.5i
On Mon, Oct 22, 2001 at 08:33:24PM +0900, Machida Hiroyuki wrote:

> I found bugs in checksum.h. A sample fix is attached below.
> I perfer to use generic csum_ipv6_magic() in net/checksum.h
> than this fix. Please someone show me improvements for this asm
> version of csum_ipv6_magic(). 

The C version should produce code that performs identically on MIPS.  As
such we have no good reason to keep the assembler version.

> * (csum_ipv6_magic): Have same paramter types as net/checksum.h.
>   Correct carry computation.  Add a final carry.

The len argument of that prototype should be __u32 because of IPv6


<Prev in Thread] Current Thread [Next in Thread>