From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C48F7A04AA;
	Tue,  8 Sep 2020 13:00:44 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id DEAE72BAB;
	Tue,  8 Sep 2020 13:00:43 +0200 (CEST)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com
 [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 4BA6F255
 for <dev@dpdk.org>; Tue,  8 Sep 2020 13:00:42 +0200 (CEST)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1])
 by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id
 088Au0Is008235; Tue, 8 Sep 2020 04:00:41 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;
 h=from : to : cc :
 subject : date : message-id : references : in-reply-to : content-type :
 content-transfer-encoding : mime-version; s=pfpt0220;
 bh=Kw/6CHz8KHo8A0FQONc/5yiqUZQCQL9iUhlfrONL5NU=;
 b=Gdz0IFUDQh4MKLFbzz5575IDT5bK+kYkPeZd1TyWrKrPn++MjbCSYnZOo0lXR6rWk+YG
 ypW7ODCy7m7wfHFiWn5nzXVA2ZfzrCHYFEgFuwRrkp8/Yz7XjYgyAb4fDgzM8pxGiGbq
 /hMZbSRZx86q+Pc2KyT/bX77ERQ5d4hzxmcIXivOnVFG8TKMws+Z4YyYsewsD7B2lLra
 nTVU/izsGyMqXE3nLctJSZNngYZV8PXLT/uN6xHZGu6ytiTtkCvrp/3oplU/A1x8wjhz
 hQGeKxg8pU8R9RQO4xEzs8hJ6ahi8LfLuwW7tZVPWq9QXYXhTz/LCa+OAGgjfKYUW5G+ 9w== 
Received: from sc-exch03.marvell.com ([199.233.58.183])
 by mx0b-0016f401.pphosted.com with ESMTP id 33ccvr200y-4
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);
 Tue, 08 Sep 2020 04:00:41 -0700
Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH03.marvell.com
 (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Sep
 2020 04:00:40 -0700
Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com
 (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Sep
 2020 04:00:40 -0700
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169)
 by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id
 15.0.1497.2 via Frontend Transport; Tue, 8 Sep 2020 04:00:40 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=U+JSopZzpZMoQuV+kM5R+4+RsV3xx8pESPHG9z0BE0G/OMZ5R2WEZC5crusMfgQcchHnm3L/1vO8/qFvAPgT7hP/X9ExThBvs4ReEgm5Q4pelD1rDqv4yTtI4unvz+NfPMN3rcMPd6ZL3VI/0Tp5yEUeQNDQ/ATjMi/g2zj697DnJ8q8jz/fZBofnJaI0RU8bcNQERN2GqfeZH7nu3Ajs68MJmNp3qlD5+v+EXA87uLhI9ZVNY+5Ta4kiEbxY3aN/wSj5HQTpYUID2FCDrwK7g0CGf4/T+MhPjsdSbUaBOXmr1J5IhjlF4xngbJklBMZAvFi6VC6/w4mwz2D8/OC6A==
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=Kw/6CHz8KHo8A0FQONc/5yiqUZQCQL9iUhlfrONL5NU=;
 b=fdb3Cg+E1sRmj6DadhvUsXxc6no4CpR5vK2r63DARwdlosIN9op6x90w5r9QsVD/wVudt5YLcv0+KW/+uQRaSAM6zM7HJQ1nvhv4itDGwZc+G+BKDejwLLJJu1A4xoc1lUpTrmKvBXRQMr3xNVGjfN9W7+kIgIyW5PfIfv6Vb5lE5Q2sHFNME8t5tesCxDPLQ5mo76C1XNU2WXpe6x22e0iF2+UUNJvdZ9p5uCfnd1O3CeHe9X9zxw4ln7JrIV/eqZTWMhfFLhAdnUcNtkJmZwkiICLjKntNI2ZSnvLm8R8LvzA3M0nmwZkH+puDKVSRsWDPrTbOJrrjj42Kjqy8IQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com;
 dkim=pass header.d=marvell.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=Kw/6CHz8KHo8A0FQONc/5yiqUZQCQL9iUhlfrONL5NU=;
 b=aInjyHhq4kAhSf3aRNijylv+MKsJTXy5z4D2hWWusOkpzwNRJ7NON77TOE2OK/6Gm0WGPGlFewj93JzOIcLGNG01lzyKtYILAzKaVBJwX8rTa9NcBn8d7WCxS44EltGVMBmeFkfBthaV/Bn+6hC1fnL18S1Elj1BYE0EX+7sxmw=
Received: from MWHPR18MB1168.namprd18.prod.outlook.com (2603:10b6:300:a6::12)
 by MWHPR18MB1504.namprd18.prod.outlook.com (2603:10b6:300:ca::22)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Tue, 8 Sep
 2020 11:00:37 +0000
Received: from MWHPR18MB1168.namprd18.prod.outlook.com
 ([fe80::70d3:bb19:f76:f150]) by MWHPR18MB1168.namprd18.prod.outlook.com
 ([fe80::70d3:bb19:f76:f150%7]) with mapi id 15.20.3348.019; Tue, 8 Sep 2020
 11:00:37 +0000
From: Anoob Joseph <anoobj@marvell.com>
To: Ankur Dwivedi <adwivedi@marvell.com>, "dev@dpdk.org" <dev@dpdk.org>
CC: Tejasree Kondoj <ktejasree@marvell.com>, "akhil.goyal@nxp.com"
 <akhil.goyal@nxp.com>, Ankur Dwivedi <adwivedi@marvell.com>
Thread-Topic: [PATCH] crypto/octeontx2: fix sessionless code
Thread-Index: AQHWhcE2is8UUMYMxE2yQrpZ6p92ialekgrQ
Date: Tue, 8 Sep 2020 11:00:36 +0000
Message-ID: <MWHPR18MB116811E32E17FF41D0AF43DFDF290@MWHPR18MB1168.namprd18.prod.outlook.com>
References: <20200908091930.24422-1-adwivedi@marvell.com>
In-Reply-To: <20200908091930.24422-1-adwivedi@marvell.com>
Accept-Language: en-IN, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.44.202.226]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 52d96892-ac52-4cfb-95cd-08d853e66ad2
x-ms-traffictypediagnostic: MWHPR18MB1504:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MWHPR18MB15047546E104E95F26CDADA7DF290@MWHPR18MB1504.namprd18.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:5516;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 5fc15BgoC421kKmFhZj0xwNxKsukjNVqQjMqkwkPhDgYKCrR/yPZ0A5Kt3T8OPS8e9ivcJi+SjXLBtlavzdTf/B7JNAd/MHm+7ZvL2b2xxQRaOe54efmdJ1ez3fawzTYTUN2UwY2cltMFiwIyHQD5F5oIFv9cKphMHI6KogE60BJfyIQdEephHfPzUeObvVQngyF8UV0OddBGn7cY/hbw2ZS5Xay4qoddX7VeQKLdWV/3BwBWS4Knh0mPO6MoU4Jpe6JTS2MkZmzKGVomLOSTWnk/iEj2c5UyO7RtZMkTaMClGVd3ET2VAHDIqgq92Yu
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:MWHPR18MB1168.namprd18.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(396003)(376002)(346002)(366004)(39850400004)(136003)(6506007)(52536014)(186003)(4744005)(55016002)(9686003)(5660300002)(66946007)(66446008)(64756008)(66556008)(76116006)(66476007)(71200400001)(26005)(33656002)(4326008)(86362001)(2906002)(110136005)(8936002)(7696005)(54906003)(478600001)(8676002)(107886003)(316002);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata: 3riyJmYQesjjqtIejhxA8RP8wIWRxHeY4RisIVZuDeIWy2bSjPmgDLOIVPwp5ZUfV+Zy5A5RtMR4j06ps3FCZmY5gKHYOtV79VeYXtq3yRa0rMyU7RXmh7WflWQpGuATv9Iul3fENvT+8q1aCUev+E329+3JBCr2M6eMJQjP0DdxtonyiGKwcNe4keLnfwrWhOtuS4uKjsEIIOf+tvVwSpiH6DOqRpJYS1P7cGvHjxZK+b2v1+7kiAFaYULJvjop9GVrcZg8MGQooROO7MIXjRCdZqq4gAoRPL1L//Pz6S/ceulE0lXe/MvCUmNoPcPEbJj6W+kdfWb/iFAv9+Ulh3TVjmpJH+3s9rYDDN9EQmxG59b27H6yyH3X8TgnXBr+EOdOhZW2IyU/LxtVEX5ZbdiO3GymnwBW8+A3GrgfYqTbgOsgRqNPuN60/9Kz6rUOKJHQ82zarz21Puudgi5U4sDfFnxmfGQgLcp2OVc1dxXjBqI7ATJZh/Hs+DBr4RN8phk7D6jGIPWRriE0IrpnXoDjDOALSa86t72GMm13BEyQL806jKdwialq2yK4TRPiTJ6zWvM0d23AmJbOHms2EjWnFl1mJMLqWGodOpeqkG08Nt0MZz+VmAvm8jW+Cdq2cTUyToKH6LcBIG7q3ROA1A==
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR18MB1168.namprd18.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 52d96892-ac52-4cfb-95cd-08d853e66ad2
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Sep 2020 11:00:37.0425 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZO8T/ZaQJ9Q90kyBMMp3mTRVTFmb164PUQ4EYJ4c8jf64It+Q+lSYTY6lYv/bf1GJp+91Ut2711zzqrDD2hbsA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR18MB1504
X-OriginatorOrg: marvell.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687
 definitions=2020-09-08_06:2020-09-08,
 2020-09-08 signatures=0
Subject: Re: [dpdk-dev] [PATCH] crypto/octeontx2: fix sessionless code
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>


> A temporary session is created for sessionless crypto operations.
> rte_cryptodev_sym_session_create() should be used for creating the
> temporary session as it initializes the session structure in the correct =
way.
> Also the session should be set to 0 before freeing it.
>=20
> Fixes: 17ac2a72191b ("crypto/octeontx2: add enqueue/dequeue ops")
>=20
> Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>

Acked-by: Anoob Joseph <anoobj@marvell.com>