- 19 Jun, 2009 1 commit
-
-
Arnd Bergmann authored
The new generic checksum code has a small dependency on endianess and worked only on big-endian systems. I could not find a nice efficient way to express this, so I added an #ifdef. Using 'result += le16_to_cpu(*buff);' would have worked as well, but would be slightly less efficient on big-endian systems and IMHO would not be clearer. Also fix a bug that prevents this from working on 64-bit machines. If you have a 64-bit CPU and want to use the generic checksum code, you should probably do some more optimizations anyway, but at least the code should not break. Reported-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
- 11 Jun, 2009 1 commit
-
-
Arnd Bergmann authored
Add a generic (unoptimized) implementation of checksum.c in pure C for use by all architectures that cannot be bother with implementing their own version. Based on microblaze code by Michal Simek <monstr@monstr.eu> Cc: Michal Simek <monstr@monstr.eu> Signed-off-by:
Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
- 21 May, 2009 1 commit
-
-
Arnd Bergmann authored
This changes the function prototypes in the checksum code to have the usual prototypes, typically by turning int arguments into __wsum. Also change csum_partial_copy_from_user() to operate on the right address space and export ip_fast_csum, which is used in modular networking code. The new version is now sparse-clean including endianess checks. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Michal Simek <monstr@monstr.eu>
-
- 27 Mar, 2009 1 commit
-
-
Michal Simek authored
Reviewed-by:
Ingo Molnar <mingo@elte.hu> Acked-by:
Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> Acked-by:
John Linn <john.linn@xilinx.com> Acked-by:
John Williams <john.williams@petalogix.com> Signed-off-by:
Michal Simek <monstr@monstr.eu>
-
- 03 Dec, 2006 1 commit
-
-
Al Viro authored
* sanitize prototypes, annotated * collapsed csum_partial_copy() Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 16 Apr, 2005 1 commit
-
-
Linus Torvalds authored
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
-