Message ID | 1535608265-13323-3-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp419358ljw; Wed, 29 Aug 2018 22:53:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbBOlSGZIbeRKqMsq3QSc9SUymi195RmTt4dwOC4o3GKUzLCOWSYzrj+t09aHyxd4CmZoGc X-Received: by 2002:a1c:9f12:: with SMTP id i18-v6mr714098wme.124.1535608402225; Wed, 29 Aug 2018 22:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608402; cv=none; d=google.com; s=arc-20160816; b=Utn12mZS3JKRPLqIYT/Qs9F3nRV7ft8TX91oIQu1RovUe3akJWqeGPuz0bmWSs2Lf0 sisATrrn6hv3NkoOCysDzfjLwrG56e46qmHyDZ3uqLLPjnQr6nSl3b612wuk87AMf9tW T5wi1UJ+TyMSAgSwEa88auchmFyT2Qcav2mjPZJKYkeve3Rn/zubzbOBEbk+oyylytCp ijGsjAiJuYsEowZl0g9e9Cwrj/84qq0CZTGOE9U5xCp9gD8CD7YkUmiP9uG0iK0XWq9D zgSkp2AR9/rLV+ZRNChkcdXUyEOOJNM6XsZ2//V1aScfd34jbAarNcVlWlkhzRkp2+qn Hi+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature; bh=njtyMyNo/5R+1GX+NPjjxCIv+n3vFu36pynH949ahlU=; b=deO5E8XMjDcnVf6QS32PVMY3KoLV1qUqrrqyfgyv6scvSWF1njcXkMFP24954pmtjw /AOwK+1bOVRYwCd1S7VZjT8TJXcTX+21PP/m7OQr5XZL3XKyCeVcgkVyRzg/j+wH02y7 /PtrZJw37xGMhR4uioPhiFPpUZb9nJ8KoaPTuEzZzfr0XX59WRvQcgU3d3IzYbOSGidB aV+jW4fX08pFapPG4Wn+DcdSb+pjldFHoiyKqmDJOn24FeUk/U702Ry9z8nCktviJDSm EYCdrOTb8Vs1Y3zX5sBAMIEJS37+ZgoY+MKW4+gVO+hG7z539VSbN0pMP72DOKyFVWaJ TW9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=EQYWsfhf; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t62-v6si673362wmb.52.2018.08.29.22.53.22; Wed, 29 Aug 2018 22:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=EQYWsfhf; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58FD84CA0; Thu, 30 Aug 2018 07:53:14 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10071.outbound.protection.outlook.com [40.107.1.71]) by dpdk.org (Postfix) with ESMTP id 9871EF11 for <dev@dpdk.org>; Thu, 30 Aug 2018 07:53:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=njtyMyNo/5R+1GX+NPjjxCIv+n3vFu36pynH949ahlU=; b=EQYWsfhfVUPTCKRUHNgHrB7ZdRgeqCa6/xEa40E/JHtSwTnoMZU9dVSPxZSusKMKT6jIV+LDWXaVGCmBzIE6XRfe9i16xKL6xQZqihLRuqLnem4IDa6+3UJzK1eJQbZA2fDp05E6vpMsENkARbBz7F5p6pvl/1+1PR/uDozT38Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 05:53:10 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: akhil.goyal@nxp.com Date: Thu, 30 Aug 2018 11:20:57 +0530 Message-Id: <1535608265-13323-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535608265-13323-1-git-send-email-hemant.agrawal@nxp.com> References: <1535608265-13323-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR0101CA0049.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::11) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d8d1c083-152f-48c4-a56e-08d60e3cde1e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2541; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 3:QThJnEEShMl0IH0BffaToaDK+jEOQ2humPUbrz0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q8r7joDWkwwOysGUKRbDgwaR1CgX+r+TbqkmM0tQDnB4mZud3Y7do6tCXPCi8YF4i2zREBQuFumZs9C8weohDGtf5CvguMlVPk3ERT+a9jlKWQMbeOOGESU10sSzw5em31Y6rHXw6QubiN6wl2kqQYdUtAq4CVuhPOnnydCTQ2qVd+6GKFVHOn+YK9pQX09lZtWX8y0abHwJOrGg34yicOxdiU2IddLy2T8RP2oTatQ01zYPBY0Ts90bcNxgGfftJ+tF+vhzKCouHlRClDZqcOlQ6M81KB0hZlVu6s2ITwscUuQriX; 4:Z/hBqA5YuFDmp5Dt9OM+sFcdz9QSNPERkMeG3g8Std1T+X6qLi7cBLAws67ScZfFWHzm7DqEdwQBeDcsEBOCJBQ/tNTpvBZVqoSjfo7vBvFilg/EWIPjStJLTQm/pGspup/hAl1/2fU6D6Ounj70PyBP9GABsIPeo5yUiOFAG6D5Bu4xrpYEvK86nOspPQARj5POVuIpsNl1llxmufMEKLvF8cYxdNl3B3OJWbU/hDungURcZWzonnBoex5zxxKpL2XzAMEU01wtilyfZ/ZMlrhRcdnbIuarz6gRht0vU6R0pXdrE0oCnD6yxoVSmI3j X-Microsoft-Antispam-PRVS: <VI1PR0401MB2541B7CC46528666C69B449789080@VI1PR0401MB2541.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:VI1PR0401MB2541; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2541; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39860400002)(136003)(366004)(189003)(199004)(316002)(486006)(106356001)(47776003)(16526019)(53936002)(6916009)(6666003)(186003)(26005)(386003)(5009440100003)(6506007)(52116002)(2351001)(956004)(76176011)(66066001)(446003)(51416003)(6512007)(11346002)(6486002)(16586007)(97736004)(86362001)(4326008)(44832011)(25786009)(68736007)(105586002)(2616005)(305945005)(2906002)(14444005)(3846002)(6116002)(5660300001)(476003)(81166006)(478600001)(48376002)(8936002)(81156014)(7736002)(8676002)(50466002)(50226002)(2361001)(36756003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2541; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2541; 23:s7TyxVT0tCkfAQx7ZtSewisTzrV8cxmW/hltFrn?= w1TvDK2zJGumNfV8RiNK5EzTLQNtUd1qnsA3ZP5+XE3l2cmXnB1Lw5vgcVM/MtP06xAhnxksKrp8PxQYxEq9wL5CuPjuO6FUfqsmEXcUrvfWYxTVq4vK/MaZrt9s1uexkXegc2PJxIry0RrL43BS+kcm3Ay3QZw4VDKfj2Jva9zcG13q2E27f5UA0YqkglXyaemXJBfXjWTXcFwdJkvUWG03HDyMaagWMcqcyWX6F/vnvD1yHT7ZeOrXffW0NTbfqSmZuuwYbY6PtrVp2SO5+d+Ci07OSWCb5EHKyG42slEUajCo1cDGF0c3/LqHxJFmLzX1zvFRH9NfcJyqOKpJHPXSCe4l1b4IXB7g+H3hI80ievYoJFZnp/Uf28IXBBMpUTDfEH7gj7BXEw+sa6tDpVsgG4bxb9liJuBd1kItXTUc3I/nDJz1JsWDGF9MEQAq8EjN1Ch7ngBUlpZ7Uu1v7iyYlD67VcmbLlbc81Ptw6fU2aryXCw/3U8cOpNfXWhwq0LGxlQXlXjU31OXvJKp2+Qne/BjLcG7P1O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KEQ9ZjNkInIxrmrUwt13ehJ8= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 6:8NCwVXFJJb6PNtkN3JSSA4rnJMhwA+gE5Jb3kYEpPrabpbTq4TCMurefTJx5f529ghQxEn2L+ODBxvSW9wpADSPYmRMOBRkv3LktSFd53sP0T3LenP6AKRTrVflZoczra/sYgZMmER60FsR3f3tmnYXLKBmb0BAZhGHRQGJMaz18bU2YJUZPDBv+XIJV+5VmzPPtV5dbjPVhlmOe7SSJk5vPn1Ot6aAkzThnnk0FvmIkB1jqOFT/bwgzWg9hYqYWCFDfZ26rmchVd1rD6hH32PBkxYumkjwVrlvhPzDdY0y7k8zYlb0/4GO7wgTriIs0z5bw7MVmOPV7PGqM1oPH+knGGXsRrexw8NErQzEu0xRXcRTrN3yYyEnYEr+b6YH9NOeSFYAb5ndm83Rcdgb1SkQktdBanHAoVENZ5EmBxIESj26PoD9uN+qGO3fBDKbgdeNUWOxwqtFZQ09glOsHxQ==; 5:lhnVBMNj6O6RKjbTx6Y5pVg0pUlnlhiSJx5eAlb5KXKaXn9qkGR/mXs2rc9uLJR5jcpxIyJxpgpH3+Qcscl/fGJcL+Dz04xabvvNUB3V4V1ao+OCzJF7TtZBT+enG/9oVIgoDDntB/uBayg8un+9votVsZm9ABL+Xgt0T9US/fU=; 7:1l7OyQdz5VLnUefBzq6f/OG1f1fHd2uLReOgCbg9pxhOSxHvmyWV9jwKnm03JyllPOzNY2xtLb75yOO3R9058lMCJSmRoldiZR1gvkEIiEspdd5dHG5SW+N/FS0yikv15GmXmE1j3tZ4EJuLDaa4905O8e3SCWp0WvBSTOKttgljJxvC5saoXDQuh3jCeAFifgyH2qCC21P0TwyiA33EkJIPsMl5gRpxh4I8Tawpk7HFqGwJwWwdnr8SaZ8/guWG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 05:53:10.0575 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8d1c083-152f-48c4-a56e-08d60e3cde1e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2541 Subject: [dpdk-dev] [PATCH 02/10] crypto/dpaa_sec: session reset before init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
crypto: DPAA and DPAA2_SEC enhancements
|
expand
|
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index ac49029..27f2eca 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -2099,6 +2099,7 @@ dpaa2_sec_set_session_parameters(struct rte_cryptodev *dev, return -1; } + memset(session, 0, sizeof(dpaa2_sec_session)); /* Default IV length = 0 */ session->iv.length = 0; @@ -2156,6 +2157,7 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, PMD_INIT_FUNC_TRACE(); + memset(session, 0, sizeof(dpaa2_sec_session)); if (ipsec_xform->direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) { cipher_xform = &conf->crypto_xform->cipher; auth_xform = &conf->crypto_xform->next->auth; diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 8f183e9..95f317d 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -1762,6 +1762,7 @@ dpaa_sec_set_session_parameters(struct rte_cryptodev *dev, DPAA_SEC_ERR("invalid session struct"); return -EINVAL; } + memset(session, 0, sizeof(dpaa_sec_session)); /* Default IV length = 0 */ session->iv.length = 0; @@ -1896,6 +1897,7 @@ dpaa_sec_set_ipsec_session(__rte_unused struct rte_cryptodev *dev, PMD_INIT_FUNC_TRACE(); + memset(session, 0, sizeof(dpaa_sec_session)); if (ipsec_xform->direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS) { cipher_xform = &conf->crypto_xform->cipher; auth_xform = &conf->crypto_xform->next->auth;