[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070403.122708.116354009.davem@davemloft.net>
Date: Tue, 03 Apr 2007 12:27:08 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: randy.dunlap@...cle.com
Cc: andi@...stfloor.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, sam@...nborg.org
Subject: Re: [PATCH] make csum_partial obj-y
From: Randy Dunlap <randy.dunlap@...cle.com>
Date: Tue, 03 Apr 2007 12:09:33 -0700
> How does the networking code work across multiple architectures?
This has been discussed before.
The csum_partial() result value is only well defined modulo 0xffff.
The networking does csum_fold() or similar on the results, and so the
right thing always happens there.
The reiserfs case is the worst because even ignoring the differences
in csum_partial() return values, it always feeds this into
cpu_to_le32() which basically means that it is putting a cpu-endian
dependent value onto disk. csum_partial() returns a fixed-endian,
not cpu endian, value. So feeding it into cpu_to_anything() is
quite wrong.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists