From patchwork Fri Sep 21 14:53:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 45110 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44A8454AE; Fri, 21 Sep 2018 16:54:08 +0200 (CEST) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 29AB54CA6 for ; Fri, 21 Sep 2018 16:54:04 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id j19-v6so11908006ljc.7 for ; Fri, 21 Sep 2018 07:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gwvprQbqgHJ9etgssxQPnUp2e5BCF1j26ey+g6tp0rc=; b=JXvToEp3Z/D6C5XOIO+JAqzye6MGIkkHsboVvrqGrK0HWkZywvTWxMiX1SdvT8vY87 VhBmkyqScMqzBb1ayvWOuMpuhKndtmZS8qVEDQ9vSwZmSasl2aLNUym5pyzrM6KHTNAU 7iHFK6GaczRv5zfRDeLpwSzt5SyboxHL0W27UVHIVvTc2Fhyn79phJxlKrt4MBIomMld ZWDCu9DfE+BdoTVgIfiFsBLq/kZ7Xgn+zVTQ5cZKgjU+T8SgOZCs+D5c57X4qkswCmC7 TDd1AWNAHC/GttcFo5C/n20iZMSsOL1poZCWeKBdTm5W5QxzzxTBmiX07xGSZ9veOq9Y 3OGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gwvprQbqgHJ9etgssxQPnUp2e5BCF1j26ey+g6tp0rc=; b=mlxX3wwi90aeywwWDKAWHYXU2pqPnwANDJvJ2AsszZRr9/CsJ0kL+7lwFzt3JEFBHH TMxU9VziuSfsueJAi46KbYn7n9oy7nZOp+eKVZJ5pr25EvzBYf94bPFKFSWa9CMLbyi6 X08YYYP15T+uMFjE+yL5im4+fBZiSfjjefTBtZTC277npJNK10T7WI5nRN1KUD7rCZCy d7/V4RTNxSF/HEa2wsbkaS0FGjifi5nPOxVe3YL/clzEhvaGQBt/UfxiDNwZaf50LVzP 378It7bm5ASDHpP1BPPpGmsFYU6o/929v0Vc3iBVC/BIgvF7s6nggksNHbssVqUq0Kzx WmDA== X-Gm-Message-State: ABuFfoik6ommUJZyDdrUWvy1xIqy9yY9/hTgoeXybRj1jKN2bLpGbuVo HV3Az48yv4iQIHl4aZ/fqCx8zJzbTwA= X-Google-Smtp-Source: ACcGV63JsnObopRMNLK/hh4L4S9q/v8YGuWNtZAWIr8pSqp65YXUGtFzqQiO9AhxBhDUSFLnK8yweA== X-Received: by 2002:a2e:550b:: with SMTP id j11-v6mr2251288ljb.124.1537541643359; Fri, 21 Sep 2018 07:54:03 -0700 (PDT) Received: from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id d13-v6sm2268744lfi.74.2018.09.21.07.54.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 21 Sep 2018 07:54:02 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: mw@semihalf.com, nadavh@marvell.com, Szymon Sliwa , stable@dpdk.org Date: Fri, 21 Sep 2018 16:53:55 +0200 Message-Id: <1537541639-22764-3-git-send-email-amo@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537541639-22764-1-git-send-email-amo@semihalf.com> References: <1535118895-6505-1-git-send-email-tdu@semihalf.com> <1537541639-22764-1-git-send-email-amo@semihalf.com> Subject: [dpdk-dev] [PATCH v2 2/6] crypto/mvsam: update hash digest sizes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Szymon Sliwa Update hash digest sizes to match hardware capabilities. Cc: stable@dpdk.org Signed-off-by: Szymon Sliwa Reviewed-by: Yelena Krivosheev Reviewed-by: Natalie Samsonov --- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 46 ++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index c045562..e2cfc07 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -30,9 +30,9 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 16, + .min = 12, .max = 16, - .increment = 0 + .increment = 4 }, }, } }, } @@ -50,9 +50,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 16, + .min = 12, .max = 16, - .increment = 0 + .increment = 4 }, }, } }, } @@ -70,9 +70,9 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 20, + .min = 12, .max = 20, - .increment = 0 + .increment = 4 }, }, } }, } @@ -90,9 +90,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 20, + .min = 12, .max = 20, - .increment = 0 + .increment = 4 }, }, } }, } @@ -110,9 +110,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 28, + .min = 12, .max = 28, - .increment = 0 + .increment = 4 }, }, } }, } @@ -130,9 +130,9 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 32, + .min = 12, .max = 32, - .increment = 0 + .increment = 4 }, }, } }, } @@ -150,9 +150,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 32, + .min = 12, .max = 32, - .increment = 0 + .increment = 4 }, }, } }, } @@ -170,9 +170,9 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 48, + .min = 12, .max = 48, - .increment = 0 + .increment = 4 }, }, } }, } @@ -190,9 +190,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 48, + .min = 12, .max = 48, - .increment = 0 + .increment = 4 }, }, } }, } @@ -210,9 +210,9 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 64, - .max = 64, - .increment = 0 + .min = 12, + .max = 48, + .increment = 4 }, }, } }, } @@ -230,8 +230,8 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .digest_size = { - .min = 64, - .max = 64, + .min = 12, + .max = 48, .increment = 0 }, }, }