mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]Clean-up for crypto Intel CRC32 code.
@ 2008-08-12 10:23 Austin Zhang
  2008-08-13 11:59 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Austin Zhang @ 2008-08-12 10:23 UTC (permalink / raw)
  To: herbert, drepper; +Cc: linux-kernel

Herbert and Ulrich, sorry for late reply.
see below.
This patch was created against cryptodev-2.6


Clean-up by new MACRO;

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
---
 crc32c-intel.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -Naurp cryptodev-2.6/arch/x86/crypto/crc32c-intel.c cryptodev-2.6-patch/arch/x86/crypto/crc32c-intel.c
--- cryptodev-2.6/arch/x86/crypto/crc32c-intel.c	2008-08-12 04:44:00.000000000 -0400
+++ cryptodev-2.6-patch/arch/x86/crypto/crc32c-intel.c	2008-08-12 05:58:56.000000000 -0400
@@ -26,12 +26,12 @@
 #define CHKSUM_BLOCK_SIZE	1
 #define CHKSUM_DIGEST_SIZE	4
 
+#define SCALE_F	sizeof(unsigned long)
+
 #ifdef CONFIG_X86_64
 #define REX_PRE "0x48, "
-#define SCALE_F 8
 #else
 #define REX_PRE
-#define SCALE_F 4
 #endif
 
 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length)



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH]Clean-up for crypto Intel CRC32 code.
  2008-08-12 10:23 [PATCH]Clean-up for crypto Intel CRC32 code Austin Zhang
@ 2008-08-13 11:59 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2008-08-13 11:59 UTC (permalink / raw)
  To: Austin Zhang; +Cc: drepper, linux-kernel

On Tue, Aug 12, 2008 at 06:23:13AM -0400, Austin Zhang wrote:
> Herbert and Ulrich, sorry for late reply.
> see below.
> This patch was created against cryptodev-2.6
> 
> 
> Clean-up by new MACRO;
> 
> Signed-off-by: Austin Zhang <austin.zhang@intel.com>

Patch applied.  Thanks Austin.
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-13 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-12 10:23 [PATCH]Clean-up for crypto Intel CRC32 code Austin Zhang
2008-08-13 11:59 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®