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 5B516A04B8; Tue, 5 May 2020 15:48:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B0D7B1D531; Tue, 5 May 2020 15:48:01 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30062.outbound.protection.outlook.com [40.107.3.62]) by dpdk.org (Postfix) with ESMTP id 222241D451 for ; Tue, 5 May 2020 15:48:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8AiWiX7qswHT1aWBuLR4k0ofyyV22X+Zr4u1dnoy6ABDaY9wY1ChD7Fp0obXwFB4GaufBnA1VUR3VC1bisf+9U9YEI/hGR95A27WvZ1Que9XIUIB2nn1RGqBctE6A/IYPWTmRPc0AJzWCqTqW3b5HKXPfRAFqSIXwXog2peTnGYQjitQmZ4kXNHqMdx1490J2h+Ms9N8798E5KZxahKmNLU+21FGiBy7JaaXlam8i2l12QZZrbbzSU3iZUHfSBQ9nR9QBziEKClfE5dFp1MsV0tQBj0Nu8NUe1MaN+/MRvezJ+vVtKGuvvAgaxvnD+JyA9unOKwnew76MnN/lMLyg== 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=NjTfPQDVgsjCL3Ay9OjPnJIRIc7mIeKpPBQ+fFpOZE0=; b=l2TdW+D+VqHZoZfGEk7gRjoZjjn0Ez0zd+5fhZWChTc2mTlbkY32ypNhTHvBfcnjB5QPpL74YnDPSHrGPFM5+r6kjMpqVC/P8j24uCwQKwMWRQ/IsEPppHtqohI0cpyCIKDcJDQ+YnhjYkglOAGTk1fNK0OVSEosLuCc8EkcDXgy9YpKKdq1OW+VBHtwKFRNgMPylBvTtaktZYyWwv/EoRgjQptELlPMgcZe3qdqvUm0xSZ5lsWzWbJjWGjxX2Pc5ZdvAF8/g7nCb3BgYEfA4GqCMVFLRefGOxTjlbiJHknaT5M/Uhah3rORYD1u1TwXYsjY3Et1qy/RZ7G2EGp3RA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NjTfPQDVgsjCL3Ay9OjPnJIRIc7mIeKpPBQ+fFpOZE0=; b=C099YebNR+r3WiC64TuBhiCugg24lHLkIfF/xbTYp2ws+bT11kqWy8KVL35pxMMEh1lL/tjt2lMoRxWZH2ZucepBuZwOHVtGCbG6F/xtmUFt87hLrHEhX2z/pgtNeOAQLqLbSlIZZUAAaAUVKT5wVb2zQTuxishCfEeCzBhk174= Received: from VI1PR04MB3168.eurprd04.prod.outlook.com (2603:10a6:802:6::10) by VI1PR04MB4464.eurprd04.prod.outlook.com (2603:10a6:803:67::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Tue, 5 May 2020 13:47:59 +0000 Received: from VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::8c03:2f5:3b48:ba74]) by VI1PR04MB3168.eurprd04.prod.outlook.com ([fe80::8c03:2f5:3b48:ba74%7]) with mapi id 15.20.2979.025; Tue, 5 May 2020 13:47:59 +0000 From: Akhil Goyal To: Lukasz Wojciechowski , "dev@dpdk.org" CC: Hemant Agrawal Thread-Topic: [dpdk-dev] [PATCH v2 1/2] crypto/dpaa2_sec: improve error handling Thread-Index: AQHWIl9tr2tHz1dABkydJz542gAyrKiYsSwAgADRO8A= Date: Tue, 5 May 2020 13:47:59 +0000 Message-ID: References: <20200504203915.9602-1-akhil.goyal@nxp.com> <20200504213921.15449-1-akhil.goyal@nxp.com> <2f74e9a3-e00a-8c64-75d8-858aecbac133@partner.samsung.com> In-Reply-To: <2f74e9a3-e00a-8c64-75d8-858aecbac133@partner.samsung.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: partner.samsung.com; dkim=none (message not signed) header.d=none;partner.samsung.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [45.118.167.77] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2e927d54-27af-4e4c-b541-08d7f0faec57 x-ms-traffictypediagnostic: VI1PR04MB4464:|VI1PR04MB4464: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0394259C80 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TbV3V/uNT2Ue/Stq8WQZHnbrBJHWbyfjtWBieHJXIuxz8aIMDuDupyI3T+NgxsYojlVKlvFBsCC52PwrCSTTzHV6M3BLfbwIxiyJnskDF9xwtsBAk7okkPG2N5x/XIFIvF6ZCKb84lEUzvJLAf2EaZBlRvTXQQrGPAoezQvU/mZ6PtturusOLVbiStBNtsjyqyTemR6x21i/Xu+BOSN4nn/BH9/YjVbAMaVjTK3oMvu++O8Yz/Jo3ufASRtkkwxnR+KxDrfaouj+9gjqsSPB4+x5SgvQntMp0x9D8o1+wNjOtRvGxa5C674a1aIkp0XZDiAlwuCQjRNZGbNmApwCrtH1HkEvsrSfMz5pnErJ85mpwFiJxG2u8x3dQ4igksdewECf0yu6Q6jBm4+dQNAD6Amu1FnA4yWc3m6Yi10Jb+l6xc7HVcReo2HsxkBrLKPR9L9wo185XkCxnQfPFaN97UhTuOkEMgMkvzUU+6XSpoM19rDqwQycqE90ofsgyvRuRDEB/vLYzZu7+6RnE5pmug== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3168.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(33430700001)(186003)(2906002)(8676002)(26005)(6506007)(55016002)(8936002)(33440700001)(44832011)(7696005)(33656002)(86362001)(110136005)(76116006)(498600001)(5660300002)(52536014)(64756008)(66556008)(66946007)(66476007)(66446008)(9686003)(4326008)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: pUkbelseElzZPCUBONhI8US26tdvII69VOHkTeYT1RaowHpr4neod3MeqfScO++MpEIpnMKyIaTFq3sfFff11UnxDBa7bNdUqE6e7fUnZ8lwqLriHrZMvImW0snvXsb4tQtqU4HDOtfr3Akt/5vL8rcRF0pyvXpU3Uf5zKb7b5ZjYZ8YFo2Et4Jk2V2j0+TFVehKiGO2oNF70qM2Kr1HSd1T9t/Njv+1nR9pZiYktO/LeduuSbBZXg0bWAaAo/gWyYCEpISiv53WWg6jZG/15OYgzQvyvpa4iJBIGEyNIWaKCB4xQkr8tuvxU8jmt71VzjW9vwyC9j4879kszqVKfLLnkKOHWLUMMRGInzosDkd0Olfc749cHaUxwXpIlSnm9m067Bq5rB9GDZrYlie2Sx4T3RPHUvBBMRG+m83JdI3s/oPwEv/LPqWMPmbaJvjOWMCOjaGJ3X+Khtmvoj0n7Y36t38e0o0wtGwf7/t/QxKIlbvD1HNETLqJSN/Ra+1nzH43ndvKEFm1aJ/wfzRiCGQ2X0x2aYcnihOp5DVuDQzK2yLGRN8vY77HPHeTOSt3p5ihMKXI52fxRg4/TIUOKCzzVwkXSMyK5TX6kXohxDWnO7Dcj3TguwdzhI5Nq8pkFbsqmzwsrewFKxdjxhY7c2sLcfxQKZSu9CNTA6Fq0fjE+98OgYrlTu/hgTynu4ORE+N+H5Qn2C+5dtWPtR09dbEoT8yGzFAomvl0dN3eb9e4P5FNpWn2V+v/CkErarxDY7ZJjbd0LOqNiBTxtH6P645NI13yVAd2bj0hdhYpgOo= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e927d54-27af-4e4c-b541-08d7f0faec57 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2020 13:47:59.2646 (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-CrossTenant-userprincipalname: QXF4ZGFnz10KBh2RNnBOqHFPO2OTuRBMkl6ydTT04hmO//eSvuSXAll2jLYfTU66bXAAX32i+tUruqxnCDj7XQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4464 Subject: Re: [dpdk-dev] [PATCH v2 1/2] crypto/dpaa2_sec: improve error handling 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" SGkgTHVrYXN6LA0KPiANCj4gSGkgQWtoaWwsDQo+IA0KPiBUaGVyZSBhcmUgc3RpbGwgZmV3IHBs YWNlcywgd2hlcmUgcmV0dXJuZWQgZXJyb3IgY29kZSBpcyBub3Qgc2V0Lg0KPiBNYXliZSB5b3Ug Y2FuIGFkZCB0aG9zZSBwbGFjZXMgdG8geW91ciBwYXRjaD8NCg0KVGhhbmtzIGZvciB0aGUgcmV2 aWV3LiBJIHdpbGwgc3VyZWx5IGxvb2sgaW50byBpdC4NCg0KDQo+IA0KPiBIZXJlJ3MgdGhlIGxp c3Q6DQo+IA0KPiAtLS0gYS9kcml2ZXJzL2NyeXB0by9kcGFhX3NlYy9kcGFhX3NlYy5jDQo+ICsr KyBiL2RyaXZlcnMvY3J5cH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