From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130082.outbound.protection.outlook.com [40.107.13.82]) by dpdk.org (Postfix) with ESMTP id A36F51B562 for ; Wed, 9 Jan 2019 16:14:24 +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=pidTb/FQQyFLWiH7Q+R6tyUJjsst6ncyymQvTAd6i+s=; b=icG5JTh2LO/+1iEm4BJ7lvijuycWr0RdqXWokU5VBBGjxsCUt12jMnhubIx8Q5ieusNR21ByTb+2ZhBzfrCBc95f+TKt3cNo1m7tRhpsRqF/uboHaHKRttLC/cOBJNPNzCyR7fzKKwb5Bus2KVKNh/In7Dc6kY1MvkChOJrnNuo= Received: from VI1PR04MB4893.eurprd04.prod.outlook.com (20.177.49.154) by VI1PR04MB1566.eurprd04.prod.outlook.com (10.164.84.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Wed, 9 Jan 2019 15:14:21 +0000 Received: from VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::1c70:8924:814d:d1a]) by VI1PR04MB4893.eurprd04.prod.outlook.com ([fe80::1c70:8924:814d:d1a%3]) with mapi id 15.20.1516.010; Wed, 9 Jan 2019 15:14:21 +0000 From: Akhil Goyal To: "dev@dpdk.org" CC: Hemant Agrawal , "pablo.de.lara.guarch@intel.com" , Akhil Goyal Thread-Topic: [PATCH] crypto/dpaa2_sec: fix FLC address for physical mode Thread-Index: AQHUqC3/MwD/yKX2OEGwuTnLZLn8LQ== Date: Wed, 9 Jan 2019 15:14:21 +0000 Message-ID: <20190109150612.20803-3-akhil.goyal@nxp.com> References: <20190109150612.20803-1-akhil.goyal@nxp.com> In-Reply-To: <20190109150612.20803-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: BM1PR01CA0126.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::20) To VI1PR04MB4893.eurprd04.prod.outlook.com (2603:10a6:803:56::26) authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1566; 6:VqpNI84kvCGFyqlOFEl+ieFT0BUrLMdWGEzLDWyQBtFmM65BRCDGxlw9GzrOoWE+xn8Y7MAZhXr2RBWpLNZAdbfjHYOA+I+3uNoue9/rAWdzffwnj6U5gw7sjMTHE2M8aidwxpYHuUbnkwUoMPSVZB7erptbIQ0C3WT3TTPHr+ZuI3wUSi3ZPpSz5z5SJw08+uj6jqjXe6p6saaeWpHVCSvJWRPMUOJAV8mmpw8KalQwXcFFC+/0M5qbYw6zINB2OGaUcGGhpvuXSCzEE4PUetFUt0Pey1ZbA4l056WsuHjfRL5O/ebhpsjkd3Kp6yfx1HWD2U+UUOzf1gbZlgmSIRqqLi5/jEnWiMMntnmq20UI67/vXR5d7PKtJ55P/rEzjZLbQfBt5XkescRaJs20IrZDrtwlYzMKV36kaXzEgZ16I1wEsMs3Sna9/M4CKDOGoDwXIiFs1zZpOZxzbSBqYw==; 5:c2CAxtwA1QTK+NXwq82JbrJiI3Q8KGFEVXllW/Bi3Da8KdHtwdt+crG+rbCKCTDDD2xYLQcXeEj15ILKwbUDIwV0lQJfLYkjms6t5AzkBrBvj+VNwp+DctiYLg+rQ7BlHzKDedpMhS4MapfDb/fBDxNdp8NsEVHF9YS1Y4MuipthaXukKv/lzu/+VNyhbZqWaopJqoyGCHRn0k78ucZlJQ==; 7:AtMXeYV3obI/o5a8bOC8quR+GqfAXBw3Gh66AfCbPP7KWQXm3aV7uDPMIkZ84YdS5gZoOme8cJIXsChqox27ysvoDnNfbkqGn8Ok4iI7MYZ/jjV0QiWGR2VXRBTAV3+fTNm1JpPJ4g+QjKg9HkNVJA== x-ms-office365-filtering-correlation-id: 23b3cdf0-461e-4da1-3f8f-08d6764521f1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1566; x-ms-traffictypediagnostic: VI1PR04MB1566: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB1566; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1566; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(396003)(136003)(346002)(366004)(199004)(189003)(256004)(71200400001)(78486014)(71190400001)(52116002)(6506007)(386003)(36756003)(55236004)(102836004)(26005)(2906002)(1076003)(476003)(446003)(2616005)(76176011)(486006)(44832011)(66066001)(86362001)(97736004)(5660300001)(68736007)(186003)(53936002)(99286004)(6512007)(11346002)(4326008)(316002)(7736002)(54906003)(25786009)(14454004)(6916009)(478600001)(305945005)(8936002)(8676002)(1730700003)(81166006)(81156014)(6436002)(2501003)(5640700003)(105586002)(2351001)(3846002)(50226002)(106356001)(6116002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1566; H:VI1PR04MB4893.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: 4vKaBGljK0ku1CksrrJYYj3yJ/be1ual3mZ0VETksGUbt2k3+RgUnp2RV9bqTvWK6zs25CtjSPxmju7oSpy0lQUDaUYxgt6NjzhdNUh4Q6AIiHq2s1r1VMtUSYKUU0ZMKeKOXT7V4KtJK6cD1wy8rkpioItl8xQTt1LLpPiFP5Uw5IyYe/joVAPQjV1KZdzgMUBTrTbIkcXQ/t6TRcNgSXngzvqlrI2/CK/grRssf0/BwVnaJkiGeWGNG1J7S9iZXrQH/k0WjDYxFjSSyN+1KATUwfkREj44Jwrk7KC7adsCcklUSwRgPBuxfLEtq0O/ spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 23b3cdf0-461e-4da1-3f8f-08d6764521f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2019 15:14:20.4907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1566 Subject: [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix FLC address for physical mode 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, 09 Jan 2019 15:14:24 -0000 Fixes: 547a4d40e7bf ("crypto/dpaa2_sec: support out of place protocol offlo= ad") Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec") Cc:stable@dpdk.org Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/d= paa2_sec/dpaa2_sec_dpseci.c index 6095c6021..c24562b80 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -108,7 +108,7 @@ build_proto_compound_fd(dpaa2_sec_session *sess, /* Configure FD as a FRAME LIST */ DPAA2_SET_FD_ADDR(fd, DPAA2_VADDR_TO_IOVA(op_fle)); DPAA2_SET_FD_COMPOUND_FMT(fd); - DPAA2_SET_FD_FLC(fd, (ptrdiff_t)flc); + DPAA2_SET_FD_FLC(fd, DPAA2_VADDR_TO_IOVA(flc)); =20 /* Configure Output FLE with dst mbuf data */ DPAA2_SET_FLE_ADDR(op_fle, DPAA2_MBUF_VADDR_TO_IOVA(dst_mbuf)); @@ -160,7 +160,7 @@ build_proto_fd(dpaa2_sec_session *sess, DPAA2_SET_FD_ADDR(fd, DPAA2_MBUF_VADDR_TO_IOVA(sym_op->m_src)); DPAA2_SET_FD_OFFSET(fd, sym_op->m_src->data_off); DPAA2_SET_FD_LEN(fd, sym_op->m_src->pkt_len); - DPAA2_SET_FD_FLC(fd, (ptrdiff_t)flc); + DPAA2_SET_FD_FLC(fd, DPAA2_VADDR_TO_IOVA(flc)); =20 /* save physical address of mbuf */ op->sym->aead.digest.phys_addr =3D mbuf->buf_iova; --=20 2.17.1