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 1342FA2EEB for ; Fri, 13 Sep 2019 07:58:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04A0A1F038; Fri, 13 Sep 2019 07:58:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 26CB71F032 for ; Fri, 13 Sep 2019 07:58:41 +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 x8D5ssMr005569; Thu, 12 Sep 2019 22:58: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=pfpt0818; bh=MRLxZNzSTk7OM0Hczb1YHIqB03u0JYIJ4A45/P9QopE=; b=ur1N1sxsohNx04utCmbXh07QS1FI8jSCLzgTdZD41i5C/4XgTZ1l9JRghh9i6GQdKaai EQYXNk/VN6NR0DpgACBrRZUogqI1HrDZehmrlIns+DlrJYfCjDnFn5frLSJLGT9MknkW s+gADFRyJXWthHBEqG2S+FTJ7v7y9u59YzeI7n6WcjzY6fwlFgJgAu2uTg17Zf/roAw1 BetHFadC5wvnAcupUuy8dn1LDzTPHUcd+7GdjTde6zrBRhfWQQ5iJf4DKYkbqGTa7jqh R93++7NQ0zTzVoJHW9FQboNYr3LY1nLPpEZcYoK1tIQs4dpbCkd0P7bFOWpP5nt2AgoJ Sw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uytdh2j7k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 12 Sep 2019 22:58:40 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 22:58:39 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.50) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 12 Sep 2019 22:58:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aA5ZxWudeX+eGKjiz8L+k82Lh8VvXDVhm6ERk/D2ItCdovpX5IJavP9to6tZ9QU+u05jXX1GpbYlzYkIrOR3q16+AdKaYgWIfsiXGtYerUTmaJTfLrfehUb9Owp8PXAQi6ENklzmpPJHt3h3sdrDOqxb8QbqgLSlzTmVY0w9AEVHv+lE4BjE945ePvkErVrWWNVCf6BoBNrWjz+YqhJNiruXgaDVjN80RTLmlwqr/hovc+FboAwSkjRwObTrtKne8IzMk4112isAw3f5fQeyQYsD7DoopcpVaqUM4dUixL+Kc7kpLxgjdeyjJq2dMMS7VsRyBQOz/h9D3Vs0ZTaEfg== 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=MRLxZNzSTk7OM0Hczb1YHIqB03u0JYIJ4A45/P9QopE=; b=NQVhLu+pqFIF4C0D7GrfOKeIkMb+h252RQddjEJgFXTTsdgC85/g0aB/66j6Dr3qTLVuWNEKFAZ2xmD+tX5Qmnw63ffhDb5B9fDd9fTNIlmZ23SOJzVqo7o4FrnaAjP/v7sFiNy+LzxJRN1XyE7grTIBUKJPnPLJZV9UJ6pYHRxqzrB5BQQO2bTovmf5SgyG319dmEWlklfRyO88dRcauiCsLzvCbHq0MxL+0fTHnGf74nrt+FxWro4pLMPxBDJx31vX4DnUOwImpwp2mfdBaWaY7eKNotS9okUYZhQ4KyFMAKkJBdZBGrSyj0Xgjg/2CBsQ28ycZ388sOuKBT7xmA== 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=MRLxZNzSTk7OM0Hczb1YHIqB03u0JYIJ4A45/P9QopE=; b=YnzrMCBUXmJvdfqCZcr+i2pDewhKYqm9TCLrAptl5k0VSYO+vMfIZcdiJW9s6LBtpjgaJDSDWmOUHLm4gma/OpJvh4DcfcOuZ7KuyANbhuxxe1/bVYYO3f9604sN51o0/cG1kXrY6sLpaHoQLSJ7JZag1UiycUQtaw3McNibzxs= Received: from BN8PR18MB2868.namprd18.prod.outlook.com (20.179.74.155) by BN8PR18MB2980.namprd18.prod.outlook.com (20.179.76.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.15; Fri, 13 Sep 2019 05:58:38 +0000 Received: from BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::8df1:c82b:f590:e546]) by BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::8df1:c82b:f590:e546%7]) with mapi id 15.20.2241.018; Fri, 13 Sep 2019 05:58:38 +0000 From: Anoob Joseph To: Akhil Goyal , "dev@dpdk.org" CC: "hemant.agrawal@nxp.com" , "Jerin Jacob Kollanukkaran" , "declan.doherty@intel.com" , "konstantin.ananyev@intel.com" , Narayana Prasad Raju Athreya Thread-Topic: [EXT] [PATCH] crypto/openssl: support SG for inplace buffers Thread-Index: AQHVYY3sOWAkEENb7kGgSjuksiOwI6cpEKRQ Date: Fri, 13 Sep 2019 05:58:38 +0000 Message-ID: References: <20190902124234.2314-1-akhil.goyal@nxp.com> In-Reply-To: <20190902124234.2314-1-akhil.goyal@nxp.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2409:4073:2001:b5c:3c74:bc8a:c581:c6ec] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fa3e942c-8b2c-4e81-e613-08d7380f6bf9 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN8PR18MB2980; x-ms-traffictypediagnostic: BN8PR18MB2980: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0159AC2B97 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(39850400004)(396003)(376002)(366004)(346002)(13464003)(199004)(189003)(7696005)(76116006)(52536014)(54906003)(25786009)(305945005)(478600001)(110136005)(14454004)(14444005)(86362001)(74316002)(256004)(7736002)(71200400001)(71190400001)(76176011)(5660300002)(46003)(81166006)(486006)(8676002)(6436002)(6246003)(81156014)(107886003)(53936002)(11346002)(476003)(446003)(102836004)(186003)(229853002)(53546011)(2906002)(4326008)(33656002)(316002)(9686003)(6506007)(2501003)(66446008)(64756008)(66556008)(66946007)(66476007)(8936002)(99286004)(6116002)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR18MB2980; H:BN8PR18MB2868.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-message-info: q3PnI9FIg2+Cpa+WC/M4bGprQ4PbtfgRQkQw+eSz6f5WE1Lj5iU0TTGJe+o1/5CIPvkiJnZAdTOn8IBMqahEbK5Re+u+lsLWfgacdBcJc8ft5WE6EpVC352RHIMW7bnOhmwprRTbzsAWrRHA1HwZQvFyn1Xydf3el+SY/WY8sXXLXFH1h2Bt8dhWgYLkkdhpD0ZRnbG2zBTgHOns3NVJTa1xQW1eC4Cf+fvSE1ntWaz10sb5KVq7fzuiMRn5ZRVPdDDXO947OJjCBvUwv2Tx33s6t1Ssib3owFM63VhKTk8j3f1e51RWw0Ww3NNnSJ/f0A5ulJiNzI0RnBJbLOXLosTn27HFgNYWEsYslchn38DmBC9T2tpws/OUN4oSZAp+BlYBK0bca2l+VqJ+QLSCXceLjtxVb6/EjNOw+Ow/cyI= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: fa3e942c-8b2c-4e81-e613-08d7380f6bf9 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2019 05:58:38.1929 (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: ayC4RU0Z1Mw/ZNUu4Z0wtw+QoHiZ5q67Aiu1HWjw+K3vtuJA0yHiQmcNC/7NBzY4ETXuOiaZg+GExDaSVkyVJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2980 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-13_03:2019-09-11,2019-09-13 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH] crypto/openssl: support SG for inplace buffers 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, Please see inline. Thanks, Anoob > -----Original Message----- > From: Akhil Goyal > Sent: Monday, September 2, 2019 6:13 PM > To: dev@dpdk.org > Cc: hemant.agrawal@nxp.com; Anoob Joseph ; Jerin > Jacob Kollanukkaran ; declan.doherty@intel.com; > konstantin.ananyev@intel.com; Akhil Goyal > Subject: [EXT] [PATCH] crypto/openssl: support SG for inplace buffers >=20 > External Email >=20 > ---------------------------------------------------------------------- > As per current support, scatter Gather is only supported for out of place= input [Anoob] s/scatter/Scatter =20 > and output buffers. > This patch add support for scatter gather for inplace buffers. >=20 > Signed-off-by: Akhil Goyal > --- > doc/guides/cryptodevs/features/openssl.ini | 1 + > drivers/crypto/openssl/rte_openssl_pmd.c | 82 +++++++++++++++++----- > 2 files changed, 64 insertions(+), 19 deletions(-) >=20 > diff --git a/doc/guides/cryptodevs/features/openssl.ini > b/doc/guides/cryptodevs/features/openssl.ini > index 6ddca39e7..30ffb111d 100644 > --- a/doc/guides/cryptodevs/features/openssl.ini > +++ b/doc/guides/cryptodevs/features/openssl.ini > @@ -6,6 +6,7 @@ > [Features] > Symmetric crypto =3D Y > Sym operation chaining =3D Y > +In Place SGL =3D Y > OOP SGL In LB Out =3D Y > OOP LB In LB Out =3D Y > Asymmetric crypto =3D Y > diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c > b/drivers/crypto/openssl/rte_openssl_pmd.c > index 2f5552840..304ebc6ff 100644 > --- a/drivers/crypto/openssl/rte_openssl_pmd.c > +++ b/drivers/crypto/openssl/rte_openssl_pmd.c > @@ -798,12 +798,12 @@ get_session(struct openssl_qp *qp, struct > rte_crypto_op *op) > */ > static inline int > process_openssl_encryption_update(struct rte_mbuf *mbuf_src, int offset, > - uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx) > + uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx, uint8_t inplace) > { > struct rte_mbuf *m; > int dstlen; > int l, n =3D srclen; > - uint8_t *src; > + uint8_t *src, temp[128]; [Anoob] What is 128? Wouldn't a macro be better here? =20 >=20 > for (m =3D mbuf_src; m !=3D NULL && offset > rte_pktmbuf_data_len(m); > m =3D m->next) > @@ -813,6 +813,8 @@ process_openssl_encryption_update(struct rte_mbuf > *mbuf_src, int offset, > return -1; >=20 > src =3D rte_pktmbuf_mtod_offset(m, uint8_t *, offset); > + if (inplace) > + *dst =3D src; >=20 > l =3D rte_pktmbuf_data_len(m) - offset; > if (srclen <=3D l) { > @@ -829,8 +831,24 @@ process_openssl_encryption_update(struct rte_mbuf > *mbuf_src, int offset, > n -=3D l; >=20 > for (m =3D m->next; (m !=3D NULL) && (n > 0); m =3D m->next) { > + uint8_t diff =3D l - dstlen, rem; > + > src =3D rte_pktmbuf_mtod(m, uint8_t *); > l =3D rte_pktmbuf_data_len(m) < n ? rte_pktmbuf_data_len(m) : n; [Anoob] Can you explain the logic of below lines? I was trying to understan= d the two 'rte_memcpy's and how dst is being used there. =20 > + if (diff && inplace) { > + rem =3D l > (EVP_CIPHER_CTX_block_size(ctx) - diff) ? > + (EVP_CIPHER_CTX_block_size(ctx) - diff) : l; [Anoob] Can't we use RTE_MIN here? =20 > + if (EVP_EncryptUpdate(ctx, temp, > + &dstlen, src, rem) <=3D 0) > + return -1; > + n -=3D rem; > + rte_memcpy(*dst, temp, diff); > + rte_memcpy(src, temp + diff, rem); > + src +=3D rem; > + l -=3D rem; > + } > + if (inplace) > + *dst =3D src; > if (EVP_EncryptUpdate(ctx, *dst, &dstlen, src, l) <=3D 0) > return -1; > *dst +=3D dstlen; > @@ -842,12 +860,12 @@ process_openssl_encryption_update(struct rte_mbuf > *mbuf_src, int offset, >=20 > static inline int > process_openssl_decryption_update(struct rte_mbuf *mbuf_src, int offset, > - uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx) > + uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx, uint8_t inplace) > { > struct rte_mbuf *m; > int dstlen; > int l, n =3D srclen; > - uint8_t *src; > + uint8_t *src, temp[128]; >=20 > for (m =3D mbuf_src; m !=3D NULL && offset > rte_pktmbuf_data_len(m); > m =3D m->next) > @@ -857,6 +875,8 @@ process_openssl_decryption_update(struct rte_mbuf > *mbuf_src, int offset, > return -1; >=20 > src =3D rte_pktmbuf_mtod_offset(m, uint8_t *, offset); > + if (inplace) > + *dst =3D src; >=20 > l =3D rte_pktmbuf_data_len(m) - offset; > if (srclen <=3D l) { > @@ -873,8 +893,24 @@ process_openssl_decryption_update(struct rte_mbuf > *mbuf_src, int offset, > n -=3D l; >=20 > for (m =3D m->next; (m !=3D NULL) && (n > 0); m =3D m->next) { > + uint8_t diff =3D l - dstlen, rem; > + > src =3D rte_pktmbuf_mtod(m, uint8_t *); > l =3D rte_pktmbuf_data_len(m) < n ? rte_pktmbuf_data_len(m) : n; > + if (diff && inplace) { > + rem =3D l > (EVP_CIPHER_CTX_block_size(ctx) - diff) ? > + (EVP_CIPHER_CTX_block_size(ctx) - diff) : l; > + if (EVP_EncryptUpdate(ctx, temp, > + &dstlen, src, rem) <=3D 0) [Anoob] Shouldn't this be EVP_DecryptUpdate()?=20 =20 > + return -1; > + n -=3D rem; > + rte_memcpy(*dst, temp, diff); > + rte_memcpy(src, temp + diff, rem); > + src +=3D rem; > + l -=3D rem; > + } > + if (inplace) > + *dst =3D src; > if (EVP_DecryptUpdate(ctx, *dst, &dstlen, src, l) <=3D 0) > return -1; > *dst +=3D dstlen; > @@ -887,7 +923,8 @@ process_openssl_decryption_update(struct rte_mbuf > *mbuf_src, int offset, > /** Process standard openssl cipher encryption */ static int > process_openssl_cipher_encrypt(struct rte_mbuf *mbuf_src, uint8_t *dst, > - int offset, uint8_t *iv, int srclen, EVP_CIPHER_CTX *ctx) > + int offset, uint8_t *iv, int srclen, EVP_CIPHER_CTX *ctx, > + uint8_t inplace) > { > int totlen; >=20 > @@ -897,7 +934,7 @@ process_openssl_cipher_encrypt(struct rte_mbuf > *mbuf_src, uint8_t *dst, > EVP_CIPHER_CTX_set_padding(ctx, 0); >=20 > if (process_openssl_encryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, inplace)) > goto process_cipher_encrypt_err; >=20 > if (EVP_EncryptFinal_ex(ctx, dst, &totlen) <=3D 0) @@ -936,7 +973,8 @@ > process_openssl_cipher_bpi_encrypt(uint8_t *src, uint8_t *dst, > /** Process standard openssl cipher decryption */ static int > process_openssl_cipher_decrypt(struct rte_mbuf *mbuf_src, uint8_t *dst, > - int offset, uint8_t *iv, int srclen, EVP_CIPHER_CTX *ctx) > + int offset, uint8_t *iv, int srclen, EVP_CIPHER_CTX *ctx, > + uint8_t inplace) > { > int totlen; >=20 > @@ -946,7 +984,7 @@ process_openssl_cipher_decrypt(struct rte_mbuf > *mbuf_src, uint8_t *dst, > EVP_CIPHER_CTX_set_padding(ctx, 0); >=20 > if (process_openssl_decryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, inplace)) > goto process_cipher_decrypt_err; >=20 > if (EVP_DecryptFinal_ex(ctx, dst, &totlen) <=3D 0) @@ -1033,7 +1071,7 > @@ process_openssl_auth_encryption_gcm(struct rte_mbuf *mbuf_src, int > offset, >=20 > if (srclen > 0) > if (process_openssl_encryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, 0)) > goto process_auth_encryption_gcm_err; >=20 > /* Workaround open ssl bug in version less then 1.0.1f */ @@ -1078,7 > +1116,7 @@ process_openssl_auth_encryption_ccm(struct rte_mbuf > *mbuf_src, int offset, >=20 > if (srclen > 0) > if (process_openssl_encryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, 0)) > goto process_auth_encryption_ccm_err; >=20 > if (EVP_EncryptFinal_ex(ctx, dst, &len) <=3D 0) @@ -1115,7 +1153,7 @@ > process_openssl_auth_decryption_gcm(struct rte_mbuf *mbuf_src, int offset= , >=20 > if (srclen > 0) > if (process_openssl_decryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, 0)) > goto process_auth_decryption_gcm_err; >=20 > /* Workaround open ssl bug in version less then 1.0.1f */ @@ -1161,7 > +1199,7 @@ process_openssl_auth_decryption_ccm(struct rte_mbuf > *mbuf_src, int offset, >=20 > if (srclen > 0) > if (process_openssl_decryption_update(mbuf_src, offset, &dst, > - srclen, ctx)) > + srclen, ctx, 0)) > return -EFAULT; >=20 > return 0; > @@ -1372,12 +1410,15 @@ process_openssl_cipher_op { > uint8_t *dst, *iv; > int srclen, status; > + uint8_t inplace =3D (mbuf_src =3D=3D mbuf_dst) ? 1 : 0; >=20 > /* > - * Segmented destination buffer is not supported for > - * encryption/decryption > + * Segmented OOP destination buffer is not supported for encryption/ > + * decryption. In case of des3ctr, even inplace segmented buffers are > + * not supported. > */ > - if (!rte_pktmbuf_is_contiguous(mbuf_dst)) { > + if (!rte_pktmbuf_is_contiguous(mbuf_dst) && > + (!inplace || sess->cipher.mode !=3D > OPENSSL_CIPHER_LIB)) { > op->status =3D RTE_CRYPTO_OP_STATUS_ERROR; > return; > } > @@ -1393,11 +1434,13 @@ process_openssl_cipher_op > if (sess->cipher.direction =3D=3D > RTE_CRYPTO_CIPHER_OP_ENCRYPT) > status =3D process_openssl_cipher_encrypt(mbuf_src, dst, > op->sym->cipher.data.offset, iv, > - srclen, sess->cipher.ctx); > + srclen, sess->cipher.ctx, > + inplace); > else > status =3D process_openssl_cipher_decrypt(mbuf_src, dst, > op->sym->cipher.data.offset, iv, > - srclen, sess->cipher.ctx); > + srclen, sess->cipher.ctx, > + inplace); > else > status =3D process_openssl_cipher_des3ctr(mbuf_src, dst, > op->sym->cipher.data.offset, iv, > @@ -1441,7 +1484,7 @@ process_openssl_docsis_bpi_op(struct rte_crypto_op > *op, > /* Encrypt with the block aligned stream with CBC > mode */ > status =3D process_openssl_cipher_encrypt(mbuf_src, dst, > op->sym->cipher.data.offset, iv, > - srclen, sess->cipher.ctx); > + srclen, sess->cipher.ctx, 0); > if (last_block_len) { > /* Point at last block */ > dst +=3D srclen; > @@ -1491,7 +1534,7 @@ process_openssl_docsis_bpi_op(struct rte_crypto_op > *op, > /* Decrypt with CBC mode */ > status |=3D process_openssl_cipher_decrypt(mbuf_src, > dst, > op->sym->cipher.data.offset, iv, > - srclen, sess->cipher.ctx); > + srclen, sess->cipher.ctx, 0); > } > } >=20 > @@ -2121,6 +2164,7 @@ cryptodev_openssl_create(const char *name, > dev->feature_flags =3D RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO | > RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING | > RTE_CRYPTODEV_FF_CPU_AESNI | > + RTE_CRYPTODEV_FF_IN_PLACE_SGL | > RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | > RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT | > RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO | > -- > 2.17.1