From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140070.outbound.protection.outlook.com [40.107.14.70]) by dpdk.org (Postfix) with ESMTP id 9E4AF1B205 for ; Wed, 27 Mar 2019 12:53:35 +0100 (CET) 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=LHJk1E18lSs7qce0e86bZpiRS/2VSSmB8f2mUpqKiFs=; b=eV7lWhrG4f0yxjBjW1ZoVvHbnPVtEAbRkJ3Vo4R3iISGyo3yg0+d9qPgYWsL7fujaVf059gR+tqNZvR5Z2VUUTtVmBdU/W62YQ6JadvwodtHDwvHw0vYQ4m67DHe2ZBsvV3omRuS4KKL20JSPq/h3JJPVDpNxDG+jgKtKO3yRu8= Received: from VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) by VI1PR04MB3261.eurprd04.prod.outlook.com (10.170.231.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.19; Wed, 27 Mar 2019 11:53:34 +0000 Received: from VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::d81a:c2cb:6bce:30bb]) by VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::d81a:c2cb:6bce:30bb%4]) with mapi id 15.20.1750.014; Wed, 27 Mar 2019 11:53:34 +0000 From: Akhil Goyal To: "dev@dpdk.org" CC: Hemant Agrawal , Akhil Goyal Thread-Topic: [PATCH 4/6] crypto/dpaa2_sec: remove unnecessary flc configurations Thread-Index: AQHU5JO0PYsKVA6NbEGIJNRxP2AaVQ== Date: Wed, 27 Mar 2019 11:53:34 +0000 Message-ID: <20190327114407.13697-5-akhil.goyal@nxp.com> References: <20190327114407.13697-1-akhil.goyal@nxp.com> In-Reply-To: <20190327114407.13697-1-akhil.goyal@nxp.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::25) To VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23745369-6e98-4f95-9372-08d6b2aad735 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3261; x-ms-traffictypediagnostic: VI1PR04MB3261: x-microsoft-antispam-prvs: x-forefront-prvs: 0989A7979C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(346002)(39860400002)(136003)(189003)(199004)(478600001)(6512007)(1076003)(52116002)(76176011)(44832011)(6486002)(50226002)(2501003)(14454004)(6916009)(36756003)(6436002)(305945005)(99286004)(7736002)(186003)(3846002)(2906002)(6116002)(97736004)(102836004)(25786009)(386003)(6506007)(26005)(4326008)(446003)(71190400001)(1730700003)(256004)(68736007)(8676002)(71200400001)(5660300002)(2616005)(476003)(316002)(11346002)(81156014)(486006)(8936002)(5640700003)(86362001)(2351001)(53936002)(66066001)(105586002)(106356001)(81166006)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3261; H:VI1PR04MB4893.eurprd04.prod.outlook.com; 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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Gau7KdL3ac7w+hdFfSkdsmHgwU9IG5D1Rs2gp3bCCS3RvF/PkhKfncdBTRsTJu/sdtBovPpp302+g6zDAjQ3yexWbzzxvT6wRmwX90P6po8cus71/oGJ/UREpY8YtA72gfdO5e6HV1AmbPJRekk9kMOEMnQlbK5NQQ8IvW5bwOsfC9ZNair3H9JzPBhQUdvGLhmrUi2jarulDrsIfGp4uh9LjA1WU/MueeF+PXNxuQ3kZMiPQkV0xFb+BpYt5Dju04cJ7sd4iiivfq7Gx27SN+P8xPWJTiaNSMxdEV3LSQRvQbSuddkjnDqOwEirNI926fyGZcp+uMYY8grhiL5un+jgwQNJCSj4UmO+ji4IPhwDjhwZelPDh2m5b9ew59/BxnKKFTN8KxmIVs6jTnHcBQOX9mG6RhbIjxGHWcQ6epo= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23745369-6e98-4f95-9372-08d6b2aad735 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2019 11:53:34.7233 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3261 Subject: [dpdk-dev] [PATCH 4/6] crypto/dpaa2_sec: remove unnecessary flc configurations 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: , X-List-Received-Date: Wed, 27 Mar 2019 11:53:36 -0000 The removed fields are required in case the SEC block allocates the buffer from bman pool. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 27 --------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/d= paa2_sec/dpaa2_sec_dpseci.c index 9c7f2da04..31b7de679 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1679,17 +1679,8 @@ dpaa2_sec_cipher_init(struct rte_cryptodev *dev, DPAA2_SEC_ERR("Crypto: Descriptor build failed"); goto error_out; } - flc->dhr =3D 0; - flc->bpv0 =3D 0x1; - flc->mode_bits =3D 0x8000; =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; =20 for (i =3D 0; i < bufsize; i++) @@ -1812,12 +1803,6 @@ dpaa2_sec_auth_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x", @@ -1937,12 +1922,6 @@ dpaa2_sec_aead_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x\n", @@ -2168,12 +2147,6 @@ dpaa2_sec_aead_chain_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x", --=20 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 718D6A05D3 for ; Wed, 27 Mar 2019 12:54:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 13ECF1B399; Wed, 27 Mar 2019 12:53:45 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140070.outbound.protection.outlook.com [40.107.14.70]) by dpdk.org (Postfix) with ESMTP id 9E4AF1B205 for ; Wed, 27 Mar 2019 12:53:35 +0100 (CET) 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=LHJk1E18lSs7qce0e86bZpiRS/2VSSmB8f2mUpqKiFs=; b=eV7lWhrG4f0yxjBjW1ZoVvHbnPVtEAbRkJ3Vo4R3iISGyo3yg0+d9qPgYWsL7fujaVf059gR+tqNZvR5Z2VUUTtVmBdU/W62YQ6JadvwodtHDwvHw0vYQ4m67DHe2ZBsvV3omRuS4KKL20JSPq/h3JJPVDpNxDG+jgKtKO3yRu8= Received: from VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) by VI1PR04MB3261.eurprd04.prod.outlook.com (10.170.231.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.19; Wed, 27 Mar 2019 11:53:34 +0000 Received: from VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::d81a:c2cb:6bce:30bb]) by VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::d81a:c2cb:6bce:30bb%4]) with mapi id 15.20.1750.014; Wed, 27 Mar 2019 11:53:34 +0000 From: Akhil Goyal To: "dev@dpdk.org" CC: Hemant Agrawal , Akhil Goyal Thread-Topic: [PATCH 4/6] crypto/dpaa2_sec: remove unnecessary flc configurations Thread-Index: AQHU5JO0PYsKVA6NbEGIJNRxP2AaVQ== Date: Wed, 27 Mar 2019 11:53:34 +0000 Message-ID: <20190327114407.13697-5-akhil.goyal@nxp.com> References: <20190327114407.13697-1-akhil.goyal@nxp.com> In-Reply-To: <20190327114407.13697-1-akhil.goyal@nxp.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::25) To VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 23745369-6e98-4f95-9372-08d6b2aad735 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3261; x-ms-traffictypediagnostic: VI1PR04MB3261: x-microsoft-antispam-prvs: x-forefront-prvs: 0989A7979C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(346002)(39860400002)(136003)(189003)(199004)(478600001)(6512007)(1076003)(52116002)(76176011)(44832011)(6486002)(50226002)(2501003)(14454004)(6916009)(36756003)(6436002)(305945005)(99286004)(7736002)(186003)(3846002)(2906002)(6116002)(97736004)(102836004)(25786009)(386003)(6506007)(26005)(4326008)(446003)(71190400001)(1730700003)(256004)(68736007)(8676002)(71200400001)(5660300002)(2616005)(476003)(316002)(11346002)(81156014)(486006)(8936002)(5640700003)(86362001)(2351001)(53936002)(66066001)(105586002)(106356001)(81166006)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3261; H:VI1PR04MB4893.eurprd04.prod.outlook.com; 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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Gau7KdL3ac7w+hdFfSkdsmHgwU9IG5D1Rs2gp3bCCS3RvF/PkhKfncdBTRsTJu/sdtBovPpp302+g6zDAjQ3yexWbzzxvT6wRmwX90P6po8cus71/oGJ/UREpY8YtA72gfdO5e6HV1AmbPJRekk9kMOEMnQlbK5NQQ8IvW5bwOsfC9ZNair3H9JzPBhQUdvGLhmrUi2jarulDrsIfGp4uh9LjA1WU/MueeF+PXNxuQ3kZMiPQkV0xFb+BpYt5Dju04cJ7sd4iiivfq7Gx27SN+P8xPWJTiaNSMxdEV3LSQRvQbSuddkjnDqOwEirNI926fyGZcp+uMYY8grhiL5un+jgwQNJCSj4UmO+ji4IPhwDjhwZelPDh2m5b9ew59/BxnKKFTN8KxmIVs6jTnHcBQOX9mG6RhbIjxGHWcQ6epo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23745369-6e98-4f95-9372-08d6b2aad735 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2019 11:53:34.7233 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3261 Subject: [dpdk-dev] [PATCH 4/6] crypto/dpaa2_sec: remove unnecessary flc configurations 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" Message-ID: <20190327115334.AVlv_NCagOZN_QdDG4kX4rJ2UuMdVWiWc_xqBmJZ_pQ@z> The removed fields are required in case the SEC block allocates the buffer from bman pool. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 27 --------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/d= paa2_sec/dpaa2_sec_dpseci.c index 9c7f2da04..31b7de679 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1679,17 +1679,8 @@ dpaa2_sec_cipher_init(struct rte_cryptodev *dev, DPAA2_SEC_ERR("Crypto: Descriptor build failed"); goto error_out; } - flc->dhr =3D 0; - flc->bpv0 =3D 0x1; - flc->mode_bits =3D 0x8000; =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; =20 for (i =3D 0; i < bufsize; i++) @@ -1812,12 +1803,6 @@ dpaa2_sec_auth_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x", @@ -1937,12 +1922,6 @@ dpaa2_sec_aead_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x\n", @@ -2168,12 +2147,6 @@ dpaa2_sec_aead_chain_init(struct rte_cryptodev *dev, } =20 flc->word1_sdl =3D (uint8_t)bufsize; - flc->word2_rflc_31_0 =3D lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); - flc->word3_rflc_63_32 =3D upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); session->ctxt =3D priv; for (i =3D 0; i < bufsize; i++) DPAA2_SEC_DEBUG("DESC[%d]:0x%x", --=20 2.17.1