From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140049.outbound.protection.outlook.com [40.107.14.49]) by dpdk.org (Postfix) with ESMTP id E4CDF2BC9 for ; Mon, 8 Apr 2019 10:59:29 +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=ybPgtVCwPRZu+V+dv1XLblRWF+gmDFhhDlUU4DlooBo=; b=fenI5PgTrSxCOcxmo5eORw1N0tx6oX7wDex6CIvGkOI8Mm1ZKogiKMPHezM4SWoGbwEvh+aAIrc+fRU/GJbHzSv1IAFX5EfWf3miwhja/v3sjrppQvv0V6O7ycCO9t9u8pi0CvNgf0pFUDN5M22b55JG/U8dZwWZ4k9medzACA4= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6605.eurprd04.prod.outlook.com (20.179.234.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.13; Mon, 8 Apr 2019 08:59:28 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1771.016; Mon, 8 Apr 2019 08:59:28 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , Akhil Goyal CC: Gagandeep Singh Thread-Topic: [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness Thread-Index: AQHU7elfgAKnh5mTW06kQUsXDCuZdQ== Date: Mon, 8 Apr 2019 08:59:28 +0000 Message-ID: <1554736925-13184-1-git-send-email-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::14) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 1.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03c3e16e-6dbb-4536-b183-08d6bc00817f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR04MB6605; x-ms-traffictypediagnostic: VE1PR04MB6605: x-microsoft-antispam-prvs: x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(366004)(396003)(39860400002)(346002)(199004)(189003)(99286004)(105586002)(2616005)(2906002)(26005)(476003)(102836004)(6512007)(4326008)(106356001)(6116002)(6506007)(186003)(3846002)(256004)(486006)(53936002)(386003)(2501003)(52116002)(66066001)(316002)(110136005)(25786009)(71190400001)(86362001)(6486002)(97736004)(71200400001)(6436002)(8936002)(14444005)(68736007)(72206003)(478600001)(81156014)(14454004)(8676002)(7736002)(6636002)(81166006)(36756003)(305945005)(4744005)(50226002)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6605; H:VE1PR04MB6365.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: aWanjuj7cMJo9adwsiXQB3lWbaNq9vZKfh3cmGFFu9d+H9pPrU/q2JnpzHRdXMiYHCiX3nhEdCRTR2IGYt5e4iFDkrsQCgepf+pxcY/4W3zAcv7C9tXqoSG4oDr5UIUzKg8q21myvVakBLhJYmEeABDW48q44n6lr+nr/n2oqSwTUexMmdaGoepwcXNAYWTkIuKpYVtF0Hjwt+u+skd+bh1oTflm5b6QBxOSfTczf8tncWbCgsX0+2TYzWv7TCJhgFYBfFHCtowNPzP9x6D/uouSySPysFqiVCCey+YgbIXaPCbfFwiiMePd1zJ7JkidTpDZseQifSs+R/xbEst0LS/qyCinWSE9OS9tnJypVvk1smMByrzLLmFwnHODkVzi4UtgbrQBS2MwS2vpMg40/Ltk7/6PuEYpSta56qLaxeo= 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: 03c3e16e-6dbb-4536-b183-08d6bc00817f X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2019 08:59:28.3889 (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: VE1PR04MB6605 Subject: [dpdk-dev] [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness 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: Mon, 08 Apr 2019 08:59:30 -0000 build a shared descriptor accordingly if core and CAAM endianness is same or different Fixes: 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations") Cc: g.singh@nxp.com Signed-off-by: Gagandeep Singh --- drivers/crypto/caam_jr/caam_jr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam= _jr.c index 190053e..20452e3 100644 --- a/drivers/crypto/caam_jr/caam_jr.c +++ b/drivers/crypto/caam_jr/caam_jr.c @@ -311,7 +311,7 @@ void caam_jr_stats_reset(struct rte_cryptodev *dev) int32_t shared_desc_len =3D 0; struct sec_cdb *cdb; int err; -#if RTE_BYTE_ORDER =3D=3D RTE_BIG_ENDIAN +#if CAAM_BYTE_ORDER =3D=3D CORE_BYTE_ORDER int swap =3D false; #else int swap =3D true; --=20 1.9.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 41D8CA0096 for ; Mon, 8 Apr 2019 10:59:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD34C2BD8; Mon, 8 Apr 2019 10:59:31 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140049.outbound.protection.outlook.com [40.107.14.49]) by dpdk.org (Postfix) with ESMTP id E4CDF2BC9 for ; Mon, 8 Apr 2019 10:59:29 +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=ybPgtVCwPRZu+V+dv1XLblRWF+gmDFhhDlUU4DlooBo=; b=fenI5PgTrSxCOcxmo5eORw1N0tx6oX7wDex6CIvGkOI8Mm1ZKogiKMPHezM4SWoGbwEvh+aAIrc+fRU/GJbHzSv1IAFX5EfWf3miwhja/v3sjrppQvv0V6O7ycCO9t9u8pi0CvNgf0pFUDN5M22b55JG/U8dZwWZ4k9medzACA4= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6605.eurprd04.prod.outlook.com (20.179.234.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.13; Mon, 8 Apr 2019 08:59:28 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1771.016; Mon, 8 Apr 2019 08:59:28 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , Akhil Goyal CC: Gagandeep Singh Thread-Topic: [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness Thread-Index: AQHU7elfgAKnh5mTW06kQUsXDCuZdQ== Date: Mon, 8 Apr 2019 08:59:28 +0000 Message-ID: <1554736925-13184-1-git-send-email-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::14) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 1.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03c3e16e-6dbb-4536-b183-08d6bc00817f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR04MB6605; x-ms-traffictypediagnostic: VE1PR04MB6605: x-microsoft-antispam-prvs: x-forefront-prvs: 0001227049 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(366004)(396003)(39860400002)(346002)(199004)(189003)(99286004)(105586002)(2616005)(2906002)(26005)(476003)(102836004)(6512007)(4326008)(106356001)(6116002)(6506007)(186003)(3846002)(256004)(486006)(53936002)(386003)(2501003)(52116002)(66066001)(316002)(110136005)(25786009)(71190400001)(86362001)(6486002)(97736004)(71200400001)(6436002)(8936002)(14444005)(68736007)(72206003)(478600001)(81156014)(14454004)(8676002)(7736002)(6636002)(81166006)(36756003)(305945005)(4744005)(50226002)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6605; H:VE1PR04MB6365.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: aWanjuj7cMJo9adwsiXQB3lWbaNq9vZKfh3cmGFFu9d+H9pPrU/q2JnpzHRdXMiYHCiX3nhEdCRTR2IGYt5e4iFDkrsQCgepf+pxcY/4W3zAcv7C9tXqoSG4oDr5UIUzKg8q21myvVakBLhJYmEeABDW48q44n6lr+nr/n2oqSwTUexMmdaGoepwcXNAYWTkIuKpYVtF0Hjwt+u+skd+bh1oTflm5b6QBxOSfTczf8tncWbCgsX0+2TYzWv7TCJhgFYBfFHCtowNPzP9x6D/uouSySPysFqiVCCey+YgbIXaPCbfFwiiMePd1zJ7JkidTpDZseQifSs+R/xbEst0LS/qyCinWSE9OS9tnJypVvk1smMByrzLLmFwnHODkVzi4UtgbrQBS2MwS2vpMg40/Ltk7/6PuEYpSta56qLaxeo= 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: 03c3e16e-6dbb-4536-b183-08d6bc00817f X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2019 08:59:28.3889 (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: VE1PR04MB6605 Subject: [dpdk-dev] [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness 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: <20190408085928.7XFl-6SJ6X7c88WeVhHsfkeFbSHCbbMctNABm6EQ84w@z> build a shared descriptor accordingly if core and CAAM endianness is same or different Fixes: 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations") Cc: g.singh@nxp.com Signed-off-by: Gagandeep Singh --- drivers/crypto/caam_jr/caam_jr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam= _jr.c index 190053e..20452e3 100644 --- a/drivers/crypto/caam_jr/caam_jr.c +++ b/drivers/crypto/caam_jr/caam_jr.c @@ -311,7 +311,7 @@ void caam_jr_stats_reset(struct rte_cryptodev *dev) int32_t shared_desc_len =3D 0; struct sec_cdb *cdb; int err; -#if RTE_BYTE_ORDER =3D=3D RTE_BIG_ENDIAN +#if CAAM_BYTE_ORDER =3D=3D CORE_BYTE_ORDER int swap =3D false; #else int swap =3D true; --=20 1.9.1