From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D9616A04C1; Fri, 22 Nov 2019 07:50:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AC4D258C3; Fri, 22 Nov 2019 07:50:46 +0100 (CET) Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720089.outbound.protection.outlook.com [40.107.72.89]) by dpdk.org (Postfix) with ESMTP id 2E3692BF9; Fri, 22 Nov 2019 07:50:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nel2EvOdntpnmBGQAR2542YGyWsl54nlLebcZiMUTZ0HKt2G0UK651S0qIdqnzAXQtr3NPewr5zGHSMeZeoG0G6iCJeE3+2T3Wte0iwcCurW3SrtVFRHMTGatOuxHXTOvLHhjgndhcFDGLc/fW71y+iGKG0e0UzTcJtHK3eeaedxzAE4fIDm+mABHJ5TadvB47WiCavWRZeqQegcISzlt9bAmwDTo23Q3DGP4QAH247LE6MZHYwqxT5jENXP2G7Mmv2RzpvH+BRIU76gmQcmQdvcJ+LtR63KgS5X3Wn1wWkRajJMVW0gL0zUheGgLFQzKFDOPnQEut/mag3Rc4ZYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SkJU3q2MV9ADc7zl37YRXOXikUQR9QHayEKF4/lB1qQ=; b=L9YywzeXg2h/AkH1/q/toz3AqQ7YxdY70xD9qTK6dqTRD5pDjGUsQ7B6d/6+g8htRmXVzbN3g04Zea3QHXHDeZI7dv0TdmTT6zuUfgcLwHS2EhehHJmsctvdGgT2Pqr5+clUzz5u/ccfPpHJpgkQ7yl66ik3mmhKVK2Y6etrMthu6AIybLT5wXCYK9yPkH29Sq9TZmgBAdcgIoJ5eFe85sk7p8cJPiZJnUArB3es5IvktqY+2zhSH2bcxZUCERzxy58odS/IhDbUVwgRHLSaXE76yAxd68PUdNx2bFokl+zkGG/IR5fVYn5I7BOZ8LKz1K7PWtB6bglrqinnBrtFfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SkJU3q2MV9ADc7zl37YRXOXikUQR9QHayEKF4/lB1qQ=; b=BsQK3ZYsIOjnvfXiAzNWYB5DqA2HgYq6fmB0T6/vgkXXXL3NgbmxtjLGvT7esxIVQU+My4jaH0Rtp5LJX9TRIJfeLKXNtZESjyXSU9t76bvexEaxys6LyiLQ/WGMhuFME1zkRAnVEHz9QNVAjixt8ZzR6LTsgzXfpzgw+NyDFa0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Amaranath.Somalapuram@amd.com; Received: from DM5PR1201MB2474.namprd12.prod.outlook.com (10.172.87.136) by DM5PR1201MB2473.namprd12.prod.outlook.com (10.172.87.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Fri, 22 Nov 2019 06:50:43 +0000 Received: from DM5PR1201MB2474.namprd12.prod.outlook.com ([fe80::3da8:4a0d:72f9:d41d]) by DM5PR1201MB2474.namprd12.prod.outlook.com ([fe80::3da8:4a0d:72f9:d41d%9]) with mapi id 15.20.2451.031; Fri, 22 Nov 2019 06:50:43 +0000 From: asomalap@amd.com To: dev@dpdk.org Cc: stable@dpdk.org Date: Fri, 22 Nov 2019 12:17:47 +0530 Message-Id: <20191122064747.94276-1-asomalap@amd.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: MAXPR01CA0096.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:5d::14) To DM5PR1201MB2474.namprd12.prod.outlook.com (2603:10b6:3:e3::8) MIME-Version: 1.0 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.157.251] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a7d6c66c-baf9-4f24-4e59-08d76f184ba3 X-MS-TrafficTypeDiagnostic: DM5PR1201MB2473: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2089; X-Forefront-PRVS: 02296943FF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(396003)(39860400002)(136003)(366004)(18543002)(199004)(189003)(16586007)(316002)(305945005)(81156014)(99286004)(8676002)(7736002)(2361001)(2351001)(2906002)(2616005)(6512007)(3846002)(4326008)(81166006)(450100002)(9686003)(36756003)(6436002)(66066001)(478600001)(47776003)(6116002)(48376002)(6916009)(66476007)(66946007)(186003)(50466002)(66556008)(6506007)(386003)(51416003)(52116002)(1076003)(14454004)(6486002)(5660300002)(8936002)(50226002)(25786009)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB2473; H:DM5PR1201MB2474.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q+UrPztKVmZ5QBZClR5Wz/5O9bDAoOZdhY/9B5CUKCScpxxMqyAR3gua0lSWSY+ArtuCRwlzPTgTlntK0BZ686RTKTXgTBszegU5PFwaHeu/Gipec23rfdNV8UUAAFlNMuoInJHmkY53Y7ouRLIsEu33NX4GWxdCsv+1h4YvvolPSIe8IXyayt6l48KCsk6UrMRjgFK37zEnkOJrubTPh0x80PxdoTIAXmWCYOVVbOlIHzblmXSNeg/4hGfDuSujQ80L9tb2I+a8dYB7y+TfxW2Az2kYHEhAlQ/XuwNPq3sIziVgbslTqHrMpUXwGbEO2TV/KHq7zxEBUpSg2V1zCE5ctLAIGoZf5mKDSl+P8dm0aAVCdyGiQf+lm4vCTyrqqiI9eOT/vxDJewONQbHXhJei+wAEteYTpRet3B/GfpPGSQ/WHERDd40nkiU30tmp X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7d6c66c-baf9-4f24-4e59-08d76f184ba3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2019 06:50:43.7055 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 00glsM/rkrp49KSK5U+K4O0fmBq48GZD3StJOlacS/B6zfavRLJ4QbUdc3iQa177vITJt1k1Fa0ahB4NunbKHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB2473 Subject: [dpdk-dev] [PATCH v2 5/5] crypto/ccp: fix capabilities for digest size 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: Amaranath Somalapuram CCP can support varied digest sizes ranging from 1 to some max value But the current code support only fixed max values. This patch updates the minimum digest sizes to 1 Fixes: e0d88a394e ("crypto/ccp: support run-time CPU based auth") Cc: stable@dpdk.org Signed-off-by: Amaranath Somalapuram --- drivers/crypto/ccp/ccp_pmd_ops.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/crypto/ccp/ccp_pmd_ops.c b/drivers/crypto/ccp/ccp_pmd_ops.c index d5041f0ec..a19e85ecb 100644 --- a/drivers/crypto/ccp/ccp_pmd_ops.c +++ b/drivers/crypto/ccp/ccp_pmd_ops.c @@ -47,9 +47,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 20, \ + .min = 1, \ .max = 20, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -89,9 +89,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 28, \ + .min = 1, \ .max = 28, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -173,9 +173,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 32, \ + .min = 1, \ .max = 32, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -257,9 +257,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 48, \ + .min = 1, \ .max = 48, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -341,9 +341,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 64, \ + .min = 1, \ .max = 64, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -383,9 +383,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 64, \ + .min = 1, \ .max = 64, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ @@ -536,9 +536,9 @@ .increment = 1 \ }, \ .digest_size = { \ - .min = 16, \ + .min = 1, \ .max = 16, \ - .increment = 0 \ + .increment = 1 \ }, \ .aad_size = { 0 } \ }, } \ -- 2.17.1