From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 442C6A0C4C for ; Mon, 12 Jul 2021 15:14:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B24C4069E; Mon, 12 Jul 2021 15:14:14 +0200 (CEST) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 74DB9411A0 for ; Mon, 12 Jul 2021 15:14:13 +0200 (CEST) Received: by mail-wm1-f50.google.com with SMTP id j34so11382501wms.5 for ; Mon, 12 Jul 2021 06:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=THG8aWg1Z/HfQuZk7iVbFk1vXQdAcIV64l6Ut/DW1i4=; b=FOlOFJ522rFQtSB2S3nw5izKcp8gMXqDl5vwTOvTUaYFPIjkyqX0JPaxNsPdkjvd+8 OVFcL/dP8DSAA78/i6/FInBfa4tfxKmqwfknFUvGkbOSS0c3XKY5fOeYYAlf/CrsFBc8 ZlTTpO57fFhkvSBcVIC93Qz7WAyR9qPHK62mcEAvvN0in0zOz3R3g6c0/BRf1QX13lj0 S9t3TLqtLG4tH56PEX7zVMvQWGEWZjV5rpjd6U27sRXbNYJASsb2QgFDoW0gRX/OrtHx LiPnXgBuw83kj2EAp1w5MMA9OEp0oTGFrXC52KWgljOTlT+mA65xNFj1I7Sm9PUgcgjq V/XQ== 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:mime-version:content-transfer-encoding; bh=THG8aWg1Z/HfQuZk7iVbFk1vXQdAcIV64l6Ut/DW1i4=; b=Pfsnl1WCJfzBnnyTxgf85qhYqg1266NDs7DddcnanY8mYuau9EJaRnPo+sGMsY4/qV rKfZkMJCCDgMGvGcUL037yY4JP/x8JbhI474BBcJLZdVd5TI9pDkE/w/W4jBE4CHo+wd jCutNaTE7OKDTy61RiApROVz0GPiWUrKWk2DlPVjKHiJslm2AteyNbsuzCx1MveHXLvW JPLSe+PMFIXbmvCGJYuVYRGgLKedvxu8W8cnrrXphLWMrodRt6w9J7nrj0NHGOEVveQx 1uF/JuIBzYsa/Rfuae/QQb9S9+PTSJfGn91KbMBpP3GtKtd1O+gMkCxU23tpJKBi1m5l GydA== X-Gm-Message-State: AOAM531dgJthM8gymlTsM7yEuci5FOHR/iFMWKRjyDEhtWtq5XJ6uRGl JBThkjU8jRbJi3C6L7AmxGc= X-Google-Smtp-Source: ABdhPJylDWhwKgjgIaD5NZaGDRGW+IiDyJXsLDm5lrJeO851c4vy8/G+Tyfi1baO7FZZb2G48ohD7g== X-Received: by 2002:a1c:143:: with SMTP id 64mr16648894wmb.187.1626095653291; Mon, 12 Jul 2021 06:14:13 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id t16sm14452217wrp.44.2021.07.12.06.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 06:14:12 -0700 (PDT) From: luca.boccassi@gmail.com To: Michael Shamis Cc: Liron Himi , dpdk stable Date: Mon, 12 Jul 2021 14:05:15 +0100 Message-Id: <20210712130551.2462159-80-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210712130551.2462159-1-luca.boccassi@gmail.com> References: <20210712130551.2462159-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'crypto/mvsam: fix capabilities' has been queued to stable release 20.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/14/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/79eb8ffc7d22e27cc181acb3b494b05179fc2005 Thanks. Luca Boccassi --- >From 79eb8ffc7d22e27cc181acb3b494b05179fc2005 Mon Sep 17 00:00:00 2001 From: Michael Shamis Date: Thu, 1 Jul 2021 09:58:53 +0300 Subject: [PATCH] crypto/mvsam: fix capabilities [ upstream commit 62f7513e2a2a7677b1f335e53c44316f171511e0 ] Increased AAD max size up to 64B and allowed AAD increment step 1B according to EIP197 token HW limitation. In addition, some capabilities were found incorrect due to running FIPS tests. The patch fix the capabilities. Fixes: 8a61c83af2f ("crypto/mrvl: add mrvl crypto driver") Fixes: 2c22aa4f8f6 ("crypto/mvsam: update hash digest sizes") Fixes: a84226fc055 ("crypto/mvsam: support HMAC SHA224") Signed-off-by: Michael Shamis Reviewed-by: Liron Himi Tested-by: Liron Himi --- drivers/crypto/mvsam/rte_mrvl_pmd_ops.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c index c61bdca369..527ddef0cf 100644 --- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c +++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c @@ -111,7 +111,7 @@ static const struct rte_cryptodev_capabilities .increment = 1 }, .digest_size = { - .min = 28, + .min = 12, .max = 28, .increment = 0 }, @@ -232,7 +232,7 @@ static const struct rte_cryptodev_capabilities }, .digest_size = { .min = 12, - .max = 48, + .max = 64, .increment = 4 }, }, } @@ -252,7 +252,7 @@ static const struct rte_cryptodev_capabilities }, .digest_size = { .min = 12, - .max = 48, + .max = 64, .increment = 0 }, }, } @@ -336,9 +336,9 @@ static const struct rte_cryptodev_capabilities .increment = 0 }, .aad_size = { - .min = 8, - .max = 12, - .increment = 4 + .min = 0, + .max = 64, + .increment = 1 }, .iv_size = { .min = 12, -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-07-12 13:41:40.794609912 +0100 +++ 0080-crypto-mvsam-fix-capabilities.patch 2021-07-12 13:41:36.694126860 +0100 @@ -1 +1 @@ -From 62f7513e2a2a7677b1f335e53c44316f171511e0 Mon Sep 17 00:00:00 2001 +From 79eb8ffc7d22e27cc181acb3b494b05179fc2005 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 62f7513e2a2a7677b1f335e53c44316f171511e0 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org