Re: [PATCH 17/56] microblaze_v2: checksum support

Arnd Bergmann
2008-05-04T20:00:30Z

On Sunday 04 May 2008, monstr@seznam.cz wrote:
> + *
> + * INET                An implementation of the TCP/IP protocol suite for the LINUX
> + *             operating system.  INET is implemented using the  BSD Socket
> + *             interface as the means of communication with the user level.
> + *
> + *             IP/TCP/UDP checksumming routines
> + *
> + * Authors:    Jorge Cwik, <jorge@laser.satlink.net>
> + *             Arnt Gulbrandsen, <agulbra@nvg.unit.no>
> + *             Tom May, <ftom@netcom.com>
> + *             Andreas Schwab, <schwab@issan.informatik.uni-dortmund.de>
> + *             Lots of code moved from tcp.c and ip.c; see those files
> + *             for more names.

This is a pretty generic implementation, and you copied it from another
architecture. How about moving it from arch/microblaze/lib/ to lib/?
I'd suggest building it conditionally under CONFIG_GENERIC_CSUM,
which you def_bool in your architecture Kconfig.