Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API.

Austin Zhang
2008-08-05T10:14:57Z

On Mon, 2008-08-04 at 10:27 -0700, Randy Dunlap wrote:
> On Mon, 04 Aug 2008 05:35:07 -0400 Austin Zhang wrote:
>
> > diff -Naurp linux-2.6/crypto/Kconfig linux-2.6-patch/crypto/Kconfig
> > --- linux-2.6/crypto/Kconfig 2008-08-04 01:08:00.000000000 -0400
> > +++ linux-2.6-patch/crypto/Kconfig 2008-08-04 01:59:00.000000000 -0400
> > @@ -221,6 +221,17 @@ config CRYPTO_CRC32C
> > See Castagnoli93. This implementation uses lib/libcrc32c.
> > Module will be crc32c.
> >
> > +config CRYPTO_CRC32C_INTEL
> > + tristate "CRC32c INTEL hardware acceleration"
> > + select CRYPTO_HASH
> > + help
> > + In Intel processor with SSE4.2 supported, the processor will
> > + support CRC32C implemetation using hardware accelerated CRC32
>
> implementation
>
> > + instruction. This option will create 'crc32c-intel' module,
> > + which will enable any routine to use the CRC32 instruction to
> > + gain performance compared with software implementation.
> > + Module will be crc32c-intel.
>
> and don't end lines with spaces...
>
>
Thanks a lot:)