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 9E78142EDA; Fri, 21 Jul 2023 14:09:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F20F40E2D; Fri, 21 Jul 2023 14:09:13 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2058.outbound.protection.outlook.com [40.107.220.58]) by mails.dpdk.org (Postfix) with ESMTP id B27E140DDC for ; Fri, 21 Jul 2023 14:09:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LsGOyF2j9kKUFXAOSAbGuIBhZUCY7aZWZXDwU9tfe8+px3QOgwmHXe1/QDLi7YqWyZ9Dqev1RYIuMFEkz5J7D3hgNal3ijBciWKKXsJ8pP2yJXOdcqZjVPJtsvi1Jd8wN57XL2u77JJDOgOKCn9ey5RUG/ErUyx+mUrvBDzBUfcni+qWGDy8HkP5rUHR9L+U99KfWUiGz+YFC6arez2tirXsqJ+KhiP6wJPifIqF9x2en+IzTIeqwbOPB2nVXH4iRk0EXUcxic7/5y6G1TSTdju/Sr63ghVU/eJds5ZoiB4ndt2W9o9Iv28PPQmOJTov61kpx583uU3igfKXGtvWbA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dLCpH4iFfBy8w1vGh63qE8pqbQHIvxpUAHDAzVxhyO8=; b=RlaEq9nUq04ZklLq6qQtrW5F6vx15YwsvRy0v8jtLsL+k8ecXBA6wldIEquZZLQ5r4nl/iSSWRI68C8/PFlbcpfu2lqqUmFx9pV+rmvjS9LNPWQtGZaeZl72imGg4aA6Pv32OmzXjLu4FIyXMJ+mbpjcSJVsAtojbIWEjeLu5LdHuspMB+LvR1o4rylF7/INTgMnYs1cyfsGOPEo6LLRXf9d6abFfVeWvN/LVU55nDJQImWYCaIDiuAsrlwP6pVMB4eeCsRmyz9lPHXDfiAfQuJFeznFmyfVL+7d6xsC7FO6O3Z4Y8PpB5CTRQDd6HTOHGJJsmxxmPVr061ECvdx+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dLCpH4iFfBy8w1vGh63qE8pqbQHIvxpUAHDAzVxhyO8=; b=O1BqpawRxq9g+nwGxrjCrrEFP1zVG6u0xH7FGqhnKZ+w13DbV+A9OjVij6gchmQF9wPsya28AxgzGVhSwfxiUvA6cK8Zvwru4PTzQrucAyAzrs5ZLNFBjDY1CigVhNXTdV7k/0tNrJDkoHMw/8b4JhhAS8KSmxOamwDJFmemBtdTV7zcYPb03Ugo2iEJZQZLe5cRJjB/QRh6iLDlxVUEoCmc52nDSOxmVO2Q/VYu4dIc6RwDJfvBMu8eWVGjes01vd+rTCekBuxu/Kn/dgKiFnIUkV+izzgzXvDQ3TLS50v7XApVncz1LMtLRglnNFJ9/iQ3UhN0RbpLrUyW4orCkA== Received: from CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) by CY8PR12MB7292.namprd12.prod.outlook.com (2603:10b6:930:53::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.24; Fri, 21 Jul 2023 12:09:09 +0000 Received: from CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::ed42:1df6:934f:2435]) by CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::ed42:1df6:934f:2435%7]) with mapi id 15.20.6609.026; Fri, 21 Jul 2023 12:09:09 +0000 From: Suanming Mou To: Akhil Goyal , "ciara.power@intel.com" CC: "dev@dpdk.org" Subject: RE: crypto decryption support in test-crypto-perf pmd-cycle-count test Thread-Topic: crypto decryption support in test-crypto-perf pmd-cycle-count test Thread-Index: Adm7vqZ1p3+EVGjcQAOMlm4/lScZoAACca8wAABE/kAAACbvAAAAYn1Q Date: Fri, 21 Jul 2023 12:09:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR12MB5396:EE_|CY8PR12MB7292:EE_ x-ms-office365-filtering-correlation-id: ef236032-9d34-4d73-5cf6-08db89e34a08 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wYDtqbMsqfOkFVzo1KgB5v2+hfDxwfhJWC0EC+lCTXwW8vWS6BQEui7K0OaAkFawbpnpOgL+39ymeyVxY41DHk8oYZsjyWU/PfOB7OGA3yrzgEaThxoRXoorHy4UDk6QBfZGbryWA1b4HmizWyVtTSeFSAri38c9RTpjB0YQbcRPbLbAnVxPaB0DWg3QOGoWMZvf/g/xHVf+Dayn9L3Zkpfr4IT/+Ms4Y1r7ggh04R2fCrjn3s/KNfvYgNUkdWdHO9SljzS+HH5ZRKaldoQw9hkahryLBcLW39OxIkJSedNxmdVD0Z5zgst357qkEJsNkq6nwGI9WtPS4xAvGGvxyRa7sVcEeuT6PK+yGAvEX7Ayi/RTxrERw/gSWvoGvZbdYykvY/e3gk4vPrsCLO9/GIHGeFiRnhWrhFoKgWuZKgfD0iK5DpTfsi01TL5Ti+02n6rAE9UmubDMjKsVDaNkTqGoprryKs9lb2CIuzIwi0AUAlPVfHLDQqjS5A5vGfldLpUZDUFF9ADF2qik9Cf31uwcJRdtiLHKFEkjSOvAeBMWjOCAY5so/uF5Q82/dEO8ISzFQP3N3uZbEmvrwsNgshPR3zB0RBh2F9wXen648O/taX+kIsotzqde4jBFfxVV x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR12MB5396.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(366004)(396003)(376002)(39860400002)(346002)(451199021)(7696005)(71200400001)(110136005)(478600001)(9686003)(6506007)(186003)(66476007)(53546011)(26005)(2906002)(52536014)(64756008)(316002)(76116006)(8676002)(66446008)(41300700001)(8936002)(4326008)(66946007)(122000001)(66556008)(38100700002)(5660300002)(33656002)(38070700005)(86362001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XMfuVFOuOSextzl5VWd2ADiumZHzU5ovz8X70odK6C8cAVHbcsxmyaYNr0qO?= =?us-ascii?Q?7ZibvwNNerb+slYkDTpF0VDUuum96RZWwqmfG8OL8UxC3DVggeORvd64UA12?= =?us-ascii?Q?RHDXcFe+AiK1Q1s2X6LUV+nHWu5x5oOcvfToaOsu/Cq3674u6ZO+yOJVf7OZ?= =?us-ascii?Q?Jawou8Qm1CiEPInqPT0Al9PqZo+Aj2OzAkG3TfVRXB+Qgv6sGJpdDgI0z0Uw?= =?us-ascii?Q?CSTNw0uANntVn+trdg87K8f+HlfCSVLDuRVdm+b+Q7ozGUCpLARoHE8jsFuU?= =?us-ascii?Q?VsIj7Ls8+flxk44vp73BGYL8dU5KnweeRgdSbIgd1y5Ad2WZTEi+3F9Kjlsq?= =?us-ascii?Q?5RJuri+7ly1GlMgUo/ZCsjFgUtlwMsqa80qt0sIvuONiqijo/Hy1ysjugTxq?= =?us-ascii?Q?hipb5slMRKH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4II/Tqnjyo?= =?us-ascii?Q?nG+v7dMoLlyGZu4DH4Z7WQy9rkjv3IJpUOmhhT80aJRvJ7QUVwe/4DDrd1AB?= =?us-ascii?Q?g6ql3XNrhdlgg8ZR5UQr5RPgV7XCSGEvipwLIvbu9oQFDV1V0OevZHDPpKI9?= =?us-ascii?Q?DzDAn4Vk3K9oWhn1dk7Jtp17bfkE/MczCqoIGnc9GOstfpFKuY8Cl+TOTDe8?= =?us-ascii?Q?VQOVncZLZBmXcuz8TXvdEHMn0OMXHqmExgfCM3qKmv1A2sQwvoZeA6FeFWVd?= =?us-ascii?Q?eO1pAROOE1TVjJMMsOAmkj8qaQHK2OEDOmNg6bb3?= Content-Type: multipart/alternative; boundary="_000_CO6PR12MB539627757F099BD00B5DBD37C13FACO6PR12MB5396namp_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5396.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef236032-9d34-4d73-5cf6-08db89e34a08 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2023 12:09:09.5452 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: n8hlMVbP3wd3jPyYoznYCLrd4gSKaBMRDtFbxcET2Jc4tT4pZKPXpPleKnkPLmdXniccx++mo9aCnMGp6WZHSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7292 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 --_000_CO6PR12MB539627757F099BD00B5DBD37C13FACO6PR12MB5396namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sure, in fact I also find throughput testing with decryption and in-place-m= ode will override the cipher data in the single mbuf as well. So I assume o= ut-of-place mode is valid in that case. I will try to deliver some patches when have effort. Thank you! From: Akhil Goyal Sent: Friday, July 21, 2023 8:04 PM To: Suanming Mou ; ciara.power@intel.com Cc: dev@dpdk.org Subject: RE: crypto decryption support in test-crypto-perf pmd-cycle-count = test Yes, for auth cases, the PMD may give errors. However, cipher only cases wo= uld work without issues. You can send a patch to fix this. But make sure not to add that inside the = time keeping loop. From: Suanming Mou > Sent: Friday, July 21, 2023 5:23 PM To: Akhil Goyal >; ciara.powe= r@intel.com Cc: dev@dpdk.org Subject: [EXT] RE: crypto decryption support in test-crypto-perf pmd-cycle-= count test External Email ________________________________ Thanks Akhil. Yes, I see. But for decryption, we should prepare the correct cipher data, right? Or th= at test does not make any sense. I assume decryption with incorrect data will cause PMD reject work properly= . From: Akhil Goyal > Sent: Friday, July 21, 2023 7:49 PM To: Suanming Mou >; ciara= .power@intel.com Cc: dev@dpdk.org Subject: RE: crypto decryption support in test-crypto-perf pmd-cycle-count = test Hi Suanming, The pmd-cycle-count mode is for counting the cycles for enqueue and dequeue= . It does not matter what is the content of the packet, as we are not validat= ing the content after dequeue of the packet. PMD/Hw will assume it as plain/encrypted paylo= ad and will process it as per the session attached. Hence, doing memcpy to mbuf is not required. Regards, Akhil From: Suanming Mou > Sent: Friday, July 21, 2023 4:06 PM To: ciara.power@intel.com; Akhil Goyal > Cc: dev@dpdk.org Subject: [EXT] crypto decryption support in test-crypto-perf pmd-cycle-coun= t test External Email ________________________________ Hi Guys, Sorry for the inconvenience. I have one small question with pmd-cycle-count test in test-crypto-perf app= lication. As in pmd-cycle-count run code, I don't see the cperf_mbuf_set() function i= s called to fill the test data. So for decryption, I assume it will always fails. Feel like pmd-cycle-count= test does not expect to support decryption. Or is it a bug? I have no idea with the application design background, is it expected? Thanks, Suanming Mou --_000_CO6PR12MB539627757F099BD00B5DBD37C13FACO6PR12MB5396namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Sure, in fact I also find throughput testing with de= cryption and in-place-mode will override the cipher data in the single mbuf= as well. So I assume out-of-place mode is valid in that case.

I will try to deliver some patches when have effort.=  Thank you!

 

From: Akhil Goyal <gakhil@marvell.com>= ;
Sent: Friday, July 21, 2023 8:04 PM
To: Suanming Mou <suanmingm@nvidia.com>; ciara.power@intel.com=
Cc: dev@dpdk.org
Subject: RE: crypto decryption support in test-crypto-perf pmd-cycle= -count test

 

Yes, for auth cases, the PMD may give errors. Howeve= r, cipher only cases would work without issues.

You can send a patch to fix this. But make sure not = to add that inside the time keeping loop.

 

From: Suanming Mou <suanmingm@nvidia.com>
Sent: Friday, July 21, 2023 5:23 PM
To: Akhil Goyal <gakhil@mar= vell.com>; ciara.power@intel.com
Cc: dev@dpdk.org
Subject: [EXT] RE: crypto decryption support in test-crypto-perf pmd= -cycle-count test

 

External Email


Thanks Akhil.

Yes, I see.

But for decryption, we should prepare the correct ci= pher data, right? Or that test does not make any sense.

I assume decryption with incorrect data will cause P= MD reject work properly.

 

From: Akhil Goyal <gakhil@marvell.com>
Sent: Friday, July 21, 2023 7:49 PM
To: Suanming Mou <suanmin= gm@nvidia.com>; ciara.power@intel.com
Cc: dev@dpdk.org
Subject: RE: crypto decryption support in test-crypto-perf pmd-cycle= -count test

 

Hi Suanming,

 

The pmd-cycle-count mode is for counting the cycles = for enqueue and dequeue.

It does not matter what is the content of the packet= , as we are not validating the content

after dequeue of the packet. PMD/Hw will assume it a= s plain/encrypted payload and

will process it as per the session attached.

Hence, doing memcpy to mbuf is not required.

 

Regards,

Akhil

 

From: Suanming Mou <suanmingm@nvidia.com>
Sent: Friday, July 21, 2023 4:06 PM
To: ciara.power@intel.com; Akhil Goyal <gakhil@marvell.co= m>
Cc: dev@dpdk.org
Subject: [EXT] crypto decryption support in test-crypto-perf pmd-cyc= le-count test

 

External Email


Hi Guys,

 

Sorry for the inconvenience.

I have one small question with pmd-cycle-count test = in test-crypto-perf application.

As in pmd-cycle-count run code, I don’t see th= e cperf_mbuf_set() function is called to fill the test data.

So for decryption, I assume it will always fails. Fe= el like pmd-cycle-count test does not expect to support decryption. Or is i= t a bug?

 

I have no idea with the application design backgroun= d, is it expected?

 

Thanks,

Suanming Mou

--_000_CO6PR12MB539627757F099BD00B5DBD37C13FACO6PR12MB5396namp_--