From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 99E1EA0C57; Thu, 12 Aug 2021 10:13:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F7394014D; Thu, 12 Aug 2021 10:13:47 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 46CC240042 for ; Thu, 12 Aug 2021 10:13:45 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17C8DY55016026; Thu, 12 Aug 2021 01:13:44 -0700 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2174.outbound.protection.outlook.com [104.47.55.174]) by mx0b-0016f401.pphosted.com with ESMTP id 3acc8gbu3g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Aug 2021 01:13:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BpNrROtfgElm/4HpCKMRPPmX6VGbSsbR80ewfBeF4rJkhnGlwb220s2iVV2EFYGgk1Y1+SJtRxEcvKN+hHd0oDCmTwR3poUMdQ4jwmSrkc2MclIwnznKfbRfmsXzYHG/oEZVQ4kT0zIVQUpptcTTcnlLwz9/5i7SuWuUHxdvcAWW/PPGIIe/Vh8GNqsgV+h5BLil/vsOxPwIYwOmQK770OPYtox+AjIDcX1gQ8NGdzAiiY6jZv/pVW/trZKaom/Ztr1IRjFXJKqDdBsqv2xJSK514nqWB1vUHNgdXxB6cBBRqONCvtp5UWwx6O59sCyMXu6jYBBManDoZnTxRsFoFA== 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=Po+OkYzKyWzr5zfXhxGCjn5NqE5awoCCjuf9A5aIYHc=; b=Exw9cF4hNkamHubQHy4JrHwBIBF3z1ltoPsszhvCYgsFtwkly4JRmmzCH2cxaJEH6klHuA8mfUcL2SC/6edBdZaFsZURtBgK433IziOKyN2UBen1Albo7Pu4GHa16qc71+1/4S8erWVZxT5kcGgmog/T4DUCJ0WP5hLXqA20Y9Fv57XGjXCEFVKaBsJecSJL8/I7X3B2njGfVXbDojm0k2DBfk82/sykrdGPNA4I1MsxqQxH+3HchBMBEzZv6MlFxH3244MPeuMQn6vMF+Ml49IHaj4ho2k+QEtFi8Fh4Ml1EMh4AUdbRkZhIr9YfSSYUvVQ5ftTaUEABPBHVQWMfA== 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=Po+OkYzKyWzr5zfXhxGCjn5NqE5awoCCjuf9A5aIYHc=; b=hEVvsyn1ejfrhQpB9rcvG9CPFi5PzwtlKbR6TzvRmVGfU53IkCWB9QTsShGnTEtpTeCFkWKX0QcivbuKFvN7O085C6KKRijULmiwphDJepSvnvzmSN4FSS0jJrfjsW2xkijIh7Wh1zu8FrLgQteAWyT9pqUFhpiFjyO5MHqbMvs= Received: from PH0PR18MB4491.namprd18.prod.outlook.com (2603:10b6:510:e6::13) by PH0PR18MB4832.namprd18.prod.outlook.com (2603:10b6:510:cc::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Thu, 12 Aug 2021 08:11:38 +0000 Received: from PH0PR18MB4491.namprd18.prod.outlook.com ([fe80::d435:ad84:b25e:4ad3]) by PH0PR18MB4491.namprd18.prod.outlook.com ([fe80::d435:ad84:b25e:4ad3%6]) with mapi id 15.20.4415.017; Thu, 12 Aug 2021 08:11:37 +0000 From: Akhil Goyal To: Hemant Agrawal , "dev@dpdk.org" CC: Gagandeep Singh , "roy.fan.zhang@intel.com" , "konstantin.ananyev@intel.com" Thread-Topic: [EXT] [RFC 04/16] crypto: enhance raw process for protocol offload Thread-Index: AQHXj0nzBW1Avq7vAE6391dIYlqUYqtvhGHg Date: Thu, 12 Aug 2021 08:11:37 +0000 Message-ID: References: <20210812071244.28799-1-hemant.agrawal@nxp.com> <20210812071244.28799-5-hemant.agrawal@nxp.com> In-Reply-To: <20210812071244.28799-5-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 58bb54e6-b663-4e9b-d796-08d95d68cef1 x-ms-traffictypediagnostic: PH0PR18MB4832: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:369; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q1KHvsIF+1FdLlrZpKF6SkEwBeCyF3EeuadRn33FrtGWLVHHFnK9TNbhDHPMAnStFlE1C1hm5/ACfEK3qkJkEL/nXXgx6Xc6+VYYWXFuaN4JYOHDkFn9A4sXObu6yClVcqEY86TdwGApYnkZ1bhwxyd7wGwiurGhfNMJPcobLqLlXJDB+p23NsydOA9D+pwxdVP5F0tONb7IUTZ1ViOqomeX80vi1p3djdsV+H/k9LdlMuHtqfFC227WaHf4yaxVG01m04oj9rdgYGB/4Ls89Cm4IfQ2cc61KKjB1FsUM/grlWWJFv86kl9m27+Lv1jQm5UYy/xX4iNsXyaLaaR1BQKT035VTM951wBZsBQDgeolalfwBhSoiViuolj/BXnMTzO/cwaBJdRL7JprjTSuABRbBJvS3HjZMhmwET22TqGDdZHibeFWAmNSSziOkTKCm3NA0T9GQBwNH6QvCWoBE+H/exf+ehGrqpJvk7YOQAWzoZ6eLXAfxZ4HTxk2j2yTxccTWtHhS96XAc3VHGwr72fRFhf4+6LVmU17MpkC2mys4/RarDYGpYCr/yaWJm1EbvDlMC0QFOkWI6X0jC4SOkDoPk7qJnVx+cb8MIoCvQihBAPpMxRAzwnJ1KB2lu/IgCv2ZkgJsoaU9TrbWhYv/pfk2lRN7isqgTcKLlCqjZimbmgS0GJJlomtSET29xz2cfSL3Js4rlJKq3RnRsB+Ng== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4491.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(508600001)(83380400001)(9686003)(110136005)(66946007)(8936002)(122000001)(7696005)(33656002)(64756008)(4326008)(55016002)(66476007)(66556008)(76116006)(86362001)(71200400001)(26005)(66446008)(4744005)(38100700002)(55236004)(2906002)(5660300002)(52536014)(186003)(316002)(6506007)(8676002)(38070700005)(54906003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?o4zE9786Q404/7ozYspf68drB7F5RRTDwnZ9995VhZRTH3B7mcFXY420zvpZ?= =?us-ascii?Q?U+hsF90LZ07UlyLNaSLq+1lfPu0D6ExGGSG6HZGU2Vg/vWmaOauxaX+LWn3y?= =?us-ascii?Q?QczsohzAXEuHgu4z6V0LPtoy29lH3wwMuLQiZQNihLCzGo3msRwqxwYsCNbW?= =?us-ascii?Q?cRk0m1yK2puxt3m3xYPAL/UE8BIcAfQelrMUt/rI0DPnQXheoXsO8r9Iy7tI?= =?us-ascii?Q?Dx0Smvh6jo7Q3rg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?us-ascii?Q?srB7QbhOC570hF3DWjnGZkssWvlKy74Qv5PLESuKxvyQ5/TDSjdtB86oOGZt?= =?us-ascii?Q?4/BE5+YPGD7AXyITu4vtxVdx2ow7wa85Q4ipRABYO6iQ+v/314PAz9R8woVi?= =?us-ascii?Q?DWf/K1lb3yPHqRIQSP6adNQIjDs4PyJNBO4QqzqHuxwlw0if4hhwZyGh88Ov?= =?us-ascii?Q?DxN68vp+Rhn9fDwD9+GEugVD?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4491.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58bb54e6-b663-4e9b-d796-08d95d68cef1 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2021 08:11:37.8359 (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: wb0OMjW/vxTr0yza2VxoU2xP7mUNB4zZoBnzpgpKqsu7mzu5znn2hYGiC5nElqmbLTILDcbAnpRFCtNAT7xOOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB4832 X-Proofpoint-GUID: YLibOIRq4Ks0Sd5ceYp4tkzV1o3DKWhh X-Proofpoint-ORIG-GUID: YLibOIRq4Ks0Sd5ceYp4tkzV1o3DKWhh X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-12_02:2021-08-11, 2021-08-12 signatures=0 Subject: Re: [dpdk-dev] [EXT] [RFC 04/16] crypto: enhance raw process for protocol offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > From: Gagandeep Singh >=20 > This patch improves the raw vector processing for security > protocol with OOP processing. >=20 > Signed-off-by: Gagandeep Singh > --- Can you explain the reasoning for this change in commit message. Is this a bug? Do we need to backport it? ++Fan/Konstantin > lib/cryptodev/rte_crypto_sym.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/cryptodev/rte_crypto_sym.h > b/lib/cryptodev/rte_crypto_sym.h > index 978708845f..a48228a646 100644 > --- a/lib/cryptodev/rte_crypto_sym.h > +++ b/lib/cryptodev/rte_crypto_sym.h > @@ -1003,6 +1003,7 @@ rte_crypto_mbuf_to_vec(const struct rte_mbuf > *mb, uint32_t ofs, uint32_t len, > vec[i].len =3D left; > vec[i].tot_len =3D mb->buf_len; > left =3D 0; > + i++; > break; > } >=20 > @@ -1013,7 +1014,7 @@ rte_crypto_mbuf_to_vec(const struct rte_mbuf > *mb, uint32_t ofs, uint32_t len, > } >=20 > RTE_ASSERT(left =3D=3D 0); > - return i + 1; > + return i; > } >=20 >=20 > -- > 2.17.1