From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by dpdk.org (Postfix) with ESMTP id 13E845F0F for ; Thu, 8 Mar 2018 14:27:19 +0100 (CET) Received: by mail-lf0-f67.google.com with SMTP id y19-v6so8292356lfd.4 for ; Thu, 08 Mar 2018 05:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=jWeRAxILXp+B7OFYVIIfuBwDGFMkf+OLARjO7zqawUY=; b=O2BptPdenqSEdKKZ25ckYEYt/leTloFm9E0rBY/FTXQ281WFJ+1N1jDxocqg8QPPw8 P0ZOjOG8xt86iz7YjmCKEdPSKLtV1oNOmeFIJAlpIhxaNacjuFZn749mR55A2Z+jRYZy LqexFB0N4tu5/9G0MVq+eegOm8G8ThpgyGtUT3pEip5u+LYcuz0G1m2xufJQBIP9R19y yM8PleFT6Xwlk6YA09IPoYWd2pit4gU91932kpXnfwqBnF/hiwPPUQ16GCEoLqtgAdbu Mb1cBiu+rqQSlQZu+VFjo47br+eq7UtVxqAb1H1AbribwUc/GoGHMGbnOWjKdc8NCorf wVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=jWeRAxILXp+B7OFYVIIfuBwDGFMkf+OLARjO7zqawUY=; b=SDwdTHE8/N2pdjPH+9GhNfAIs9ods3v3GjxELBKDAOWjJX7I2Kp89vQZR+YFWR5PaY 6fWeJ9pyNFLRl6O0LN6hYdHirHKh59sQLiVz1WIao7T8DC+3usb/6+wHB3z5PJlQHali NyZIqv5gex4OqN/luI74oTfWuCrnqKV7FdtjulocY0q0/cBIuBejyNjrAntcx5tVkIU4 LErobJncHLbn8rBMZp+UCVJetDVGeVPNDsHxgGLmD24qegSbtbQ5jueOiRWslEPpzqWm DcUkqySj+uOdAE8LrZErXprPfEluBeXvhII4xM/SaigbpCXRogBXnW5CWIh7qQ3s7xFs giRA== X-Gm-Message-State: APf1xPB/m5S/4tDrt+uFURScSC216QHhjQk0puvpN7v35fsOHKPPG+Xb otwKbovT7ojA99Ix5Yrm6Rz6HFUyLR4= X-Google-Smtp-Source: AG47ELuUJNDzBxj9oVB7ScJNrmw0UFTc7bJLrJOLLSKPsmc88vICkLXBVkDeIeudTtDe0hmVdkRTew== X-Received: by 10.46.80.92 with SMTP id v28mr19089107ljd.140.1520515638587; Thu, 08 Mar 2018 05:27:18 -0800 (PST) Received: from localhost (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id l27sm4261293lfk.75.2018.03.08.05.27.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 05:27:17 -0800 (PST) Date: Thu, 8 Mar 2018 14:27:17 +0100 From: Tomasz Duszynski To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, declan.doherty@intel.com, bruce.richardson@intel.com, Tomasz Duszynski , stable@dpdk.org Message-ID: <20180308132717.GB22443@sh> References: <1519829633-32295-1-git-send-email-tdu@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <1519829633-32295-1-git-send-email-tdu@semihalf.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH] crypto/mrvl: add MRVL to hash test cases X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 13:27:19 -0000 This patch has been here for a while already. Should I respin it? On Wed, Feb 28, 2018 at 03:53:53PM +0100, Tomasz Duszynski wrote: > MRVL Crypto PMD supports most of the hash algorithms covered > by test suites thus specific bits should be set in pmd_masks. > > Otherwise blockcipher authonly test returns success even though no > real tests have been executed. > > Fixes: 84e0ded38ac5 ("test/crypto: add mrvl crypto unit tests") > Cc: stable@dpdk.org > > Signed-off-by: Tomasz Duszynski > --- > test/test/test_cryptodev_hash_test_vectors.h | 66 ++++++++++++++++++----= ------ > 1 file changed, 44 insertions(+), 22 deletions(-) > > diff --git a/test/test/test_cryptodev_hash_test_vectors.h b/test/test/tes= t_cryptodev_hash_test_vectors.h > index 93dacb7..df9202f 100644 > --- a/test/test/test_cryptodev_hash_test_vectors.h > +++ b/test/test/test_cryptodev_hash_test_vectors.h > @@ -324,13 +324,15 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > .test_descr =3D "MD5 Digest", > .test_data =3D &md5_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "MD5 Digest Verify", > .test_data =3D &md5_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-MD5 Digest", > @@ -341,7 +343,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-MD5 Digest Verify", > @@ -352,19 +355,22 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA1 Digest", > .test_data =3D &sha1_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA1 Digest Verify", > .test_data =3D &sha1_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA1 Digest", > @@ -375,7 +381,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA1 Digest Scatter Gather", > @@ -394,7 +401,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA1 Digest Verify Scatter Gather", > @@ -408,13 +416,15 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > .test_descr =3D "SHA224 Digest", > .test_data =3D &sha224_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA224 Digest Verify", > .test_data =3D &sha224_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA224 Digest", > @@ -442,13 +452,15 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > .test_descr =3D "SHA256 Digest", > .test_data =3D &sha256_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA256 Digest Verify", > .test_data =3D &sha256_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA256 Digest", > @@ -459,7 +471,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA256 Digest Verify", > @@ -470,19 +483,22 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA384 Digest", > .test_data =3D &sha384_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA384 Digest Verify", > .test_data =3D &sha384_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA384 Digest", > @@ -493,7 +509,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA384 Digest Verify", > @@ -504,19 +521,22 @@ static const struct blockcipher_test_case hash_test= _cases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA512 Digest", > .test_data =3D &sha512_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_GEN, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "SHA512 Digest Verify", > .test_data =3D &sha512_test_vector, > .op_mask =3D BLOCKCIPHER_TEST_OP_AUTH_VERIFY, > - .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL > + .pmd_mask =3D BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA512 Digest", > @@ -527,7 +547,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > { > .test_descr =3D "HMAC-SHA512 Digest Verify", > @@ -538,7 +559,8 @@ static const struct blockcipher_test_case hash_test_c= ases[] =3D { > BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | > BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC | > - BLOCKCIPHER_TEST_TARGET_PMD_QAT > + BLOCKCIPHER_TEST_TARGET_PMD_QAT | > + BLOCKCIPHER_TEST_TARGET_PMD_MRVL > }, > }; > > -- > 2.7.4 > -- - Tomasz Duszy=C5=84ski