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 0B60CA2EDB for ; Wed, 2 Oct 2019 12:55:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EECB51BEB2; Wed, 2 Oct 2019 12:55:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id B3BB41BE9F for ; Wed, 2 Oct 2019 12:55:43 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x92Atgt9026459; Wed, 2 Oct 2019 03:55:42 -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=pfpt0818; bh=1OY0azkToJTNK5v86neAYoEaTJHOeLnfVOE4dTvJTe0=; b=eY0uLc/ozzqD25ZqblasWHYgC+oPYI066x5P2S+VJ9qJEvoZlcDaQjmKK/d5uZ3ukOBi RGf8tbpQLE6kMYe48jac87A/9VziXXDK74tSQguBW0c3AV1wmrqM/jfkhMEdfhHvkeD3 LvvPoPEbxMT+kWCenCxGVhIMKeOdQkvs3OQUguRIi1viqYklA04B7a8MoYNEeZQ4C3MF 1Kfz86YaSDP8twRxXVaO4lAgmwX5mh/bCkkT/I3lmtYUiT4GYSmgoOAlP0+Kgz2jCYNe moVYK3T/cfBFOqj8hdwKQ+tSbh9huigzpBbVQlIh5H6KsVZk2pNfb9E3V8KcwagWLQYw KA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2vcjbn1j8q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 02 Oct 2019 03:55:42 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 2 Oct 2019 03:55:41 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.50) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 2 Oct 2019 03:55:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWO3noQANMIubdyGDarp/uoaq01HyjbZqzbc8NPu2ITc4MCYE3lLCw+8NhEpLEIA0Ez7ha2fRvxx+pTxLFxfMt8I3V0smfYulDp/j35rcaTSp4ar9msxt2LjY9+cUFKSTx01D+1LCzceEBlWcfjBThwPZ/9KrHxSVqOFjk0O5ocf9xPA6Wm+1B3Krlo+E4KhZUaEZ4mT5+DWsR8lH7BdCcUfFIcSSmiQtWHYaa5YO7BTzCYzarkF5H5xvtmueWnzhXhkL1lqDxvgZUgrPt/UykAD6Cxmo0MHgG/kG1SHANhEaAizjHQmy77DKY3rPyq4YVbUXoZGcEcIhCuoaDGCLA== 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=1OY0azkToJTNK5v86neAYoEaTJHOeLnfVOE4dTvJTe0=; b=OVt7s7LRZ14q1YubS4MtlcvOI+2gThMOuPzSE6D14ul8IvGhvCB5nONg01x8gDHR4PektdOcGEO7/wSIXfutq60MUed5vu4eewYmsJRjic9qM5N2u9RnFM/oHs5igCy3myoj7hyyerA7mOPFOzQsfYehOpaOt4TwxbIcMvwa7iMshZ+1cnsqFGsoSkFiDZHVSrwhySJPVo9i0I7III6Ea/TegfHTWm1b6quy1coSL0lG2/CWscOjSJTYE/NDSrKzPS6Et9A7XO0z6gcnZtJWDXbEAWwq14b/mmWVp6zIAs6dBa8ttgY6+0IEaDmqR0+CE+x6XN4NFBJUt6CY30yklg== 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=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1OY0azkToJTNK5v86neAYoEaTJHOeLnfVOE4dTvJTe0=; b=dXs2CXX6A4fXMEfGar+VUZkZlojaw1HU/QZrUZTjXP3eyPpFDONogyNLm9NzbTpg7Dye6FfP0aJPiFEAx4u5gwjXB64xUqKvinoSG1R3FybiWq73HA0kpeq26vnB6HakHfLV2TpgjiTuffiv8223EX0ue4t8ZcvccTdWDSHmKjI= Received: from MN2PR18MB2877.namprd18.prod.outlook.com (20.179.20.218) by MN2PR18MB2576.namprd18.prod.outlook.com (20.179.83.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.16; Wed, 2 Oct 2019 10:55:40 +0000 Received: from MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::6d15:3367:4c9:5385]) by MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::6d15:3367:4c9:5385%7]) with mapi id 15.20.2305.023; Wed, 2 Oct 2019 10:55:40 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon CC: Sunila Sahu , Jerin Jacob Kollanukkaran , Narayana Prasad Raju Athreya , Fiona Trahe , Kanaka Durga Kotamarthy , Shally Verma , "dev@dpdk.org" Thread-Topic: [PATCH 4/6] crypto/octeontx2: add asymmetric in enqueue/dequeue ops Thread-Index: AQHVZyMVYxIWeR7nc0aXKwAcpEUxfqdF9f8AgAFa0gA= Date: Wed, 2 Oct 2019 10:55:39 +0000 Message-ID: References: <1568042799-25982-1-git-send-email-anoobj@marvell.com> <1568042799-25982-5-git-send-email-anoobj@marvell.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.175.98.131] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: da04dda9-c809-4c2f-bf51-08d747271070 x-ms-traffictypediagnostic: MN2PR18MB2576: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0178184651 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39850400004)(136003)(376002)(396003)(346002)(199004)(189003)(13464003)(4326008)(52536014)(25786009)(99286004)(86362001)(66066001)(55016002)(305945005)(76176011)(7696005)(8936002)(7736002)(6246003)(5660300002)(74316002)(8676002)(81166006)(81156014)(6436002)(14444005)(256004)(54906003)(316002)(53546011)(478600001)(110136005)(14454004)(9686003)(229853002)(11346002)(102836004)(486006)(2906002)(71200400001)(71190400001)(446003)(33656002)(6506007)(76116006)(66556008)(64756008)(66476007)(3846002)(66946007)(26005)(66446008)(6116002)(186003)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2576; H:MN2PR18MB2877.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sanxlyWdeZk1POY+HGWRP/JfHcwLGOi4j7De42ykeW0awC4UHsRnYiEV6L0U4x6mtEI3RE+SXeO05ZtVyDKn9Gn6102ZpaqnUZpPYCqo9/nhiXi3LkGrGuqSktoXYL2ynijwTgavvDDPJCaoa/lEx4AHipjU7onRUdMgDjuhmRHogbS1cwhhKfv6vaLwdjtl8LtpnqfGLTb0rNltkgxIacz8b17UmokfOVMpL0Ym0e8xjJz4QjdvdsUJb1u37zHOZQdlpoNTs0tVroTY1jbSLA75TOpFHl/t5zf9s+z8XsRWMib/V5vvArd2X2da+KMPQnzuN6ler/Fn4bRYg32ZGO+yNXVEGut/uv5/lSBpKwwY6f74r8j01Dx4oG0MYaI4Y9YuhOcj8bIYn/PPdPzz9NE0M6IgKNOFWZuQhYcvxEs= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: da04dda9-c809-4c2f-bf51-08d747271070 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2019 10:55:39.9936 (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: kC1asUAGG+yas5tnpvhJGrGrRfNHHX+v1k6bYil3wXiCYvhPjXtP8B9OCtAS8qsyOO7lRNSmg7+tuEvE7IJhrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2576 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-02_06:2019-10-01,2019-10-02 signatures=0 Subject: Re: [dpdk-dev] [PATCH 4/6] crypto/octeontx2: add asymmetric in enqueue/dequeue ops 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" Hi Akhil, PMD doesn't support sessionless with ASYM yet. Will make the suggested chan= ge in v2. Thanks, Anoob > -----Original Message----- > From: dev On Behalf Of Akhil Goyal > Sent: Tuesday, October 1, 2019 7:42 PM > To: Anoob Joseph ; Pablo de Lara > ; Thomas Monjalon > Cc: Sunila Sahu ; Jerin Jacob Kollanukkaran > ; Narayana Prasad Raju Athreya > ; Fiona Trahe ; Kanaka Durga > Kotamarthy ; Shally Verma > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 4/6] crypto/octeontx2: add asymmetric in > enqueue/dequeue ops >=20 >=20 > Hi Anoob, >=20 > > static __rte_always_inline int __hot > > otx2_cpt_enqueue_sym(struct otx2_cpt_qp *qp, struct rte_crypto_op *op, > > struct pending_queue *pend_q) > > @@ -488,7 +560,9 @@ otx2_cpt_enqueue_burst(void *qptr, struct > > rte_crypto_op **ops, uint16_t nb_ops) > > > > for (count =3D 0; count < nb_ops; count++) { > > op =3D ops[count]; > > - if (op->sess_type =3D=3D RTE_CRYPTO_OP_WITH_SESSION) > > + if (op->type =3D=3D RTE_CRYPTO_OP_TYPE_ASYMMETRIC) > > + ret =3D otx2_cpt_enqueue_asym(qp, op, pend_q); > > + else if (op->sess_type =3D=3D RTE_CRYPTO_OP_WITH_SESSION) > > ret =3D otx2_cpt_enqueue_sym(qp, op, pend_q); > > else if (op->sess_type =3D=3D RTE_CRYPTO_OP_SESSIONLESS) > > ret =3D otx2_cpt_enqueue_sym_sessless(qp, op, pend_q); >=20 > Do you support session less in asym case? If not, can we add a check here= . >=20