From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511Ab2IYVu0 (ORCPT ); Tue, 25 Sep 2012 17:50:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:26095 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319Ab2IYVuS (ORCPT ); Tue, 25 Sep 2012 17:50:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,485,1344236400"; d="scan'208";a="212968824" Subject: [PATCH 3/3] Added speed test in tcrypt for crc32c From: Tim Chen To: Herbert Xu , "David S. Miller" , "H. Peter Anvin" Cc: linux-kernel , linux-crypto@vger.kernel.org, James Guilford , Wajdi Feghali , Suresh Siddha , David Cote , Austin Zhang , Chaohong Guo In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 25 Sep 2012 14:50:18 -0700 Message-ID: <1348609818.9977.208.camel@schen9-DESK> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a test case in tcrypt to perform speed test for crc32c checksum calculation. Tim Signed-off-by: Tim Chen --- crypto/tcrypt.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 581081d..6deb77f 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1437,6 +1437,10 @@ static int do_test(int m) test_hash_speed("ghash-generic", sec, hash_speed_template_16); if (mode > 300 && mode < 400) break; + case 319: + test_hash_speed("crc32c", sec, generic_hash_speed_template); + if (mode > 300 && mode < 400) break; + case 399: break; -- 1.7.7.6