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 CB4C143A3A; Thu, 1 Feb 2024 14:16:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AABD542E17; Thu, 1 Feb 2024 14:16:59 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2067.outbound.protection.outlook.com [40.107.237.67]) by mails.dpdk.org (Postfix) with ESMTP id 0052240275 for ; Thu, 1 Feb 2024 14:16:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WyjWfk9hYUmrEDeyopoD41gVeNvPCdHjmD9upHbbzX2SanCW2DpQlIEwSaXlyCdohcYuPCvWBlMkQ7forZNi8XaqVmtBXfT9ApIK5sHKS0JpVWhK2VabniUngIx9lA8UUf1vr+JgFKNNt1bXHtV4NEM6ffMCvzuYsvANGux31uVTIhaTAeEmVSPIEYFWc1ci0E2WrfeSUhb5yHa7EpHQ6+TaHw8Uz/rZriIaBOEFekJ4S4ScgvKelEowHMfpLY2i6W56hrXCx/Sk2GDmHZbWqNZPFt6qswmZAaGa2Gz3jg/1ds57Vs/06SfCl5AAwYgX/jOEovLYUsXgAu/OS37B1w== 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=qTLc3FNy3N7PVdMWQo7Dbb8tTKqW+uD8vm8J0eDJD6I=; b=YWibZ2P4H+UOgTwhnaCgMV/Vs06sVU0fykGp737eFrZNG+b2gHpmPdvOcZepzdPDejewz0B3DKs5r2r/QU3AEDjTfdhqjwCAD9R1r12so6uRVwtvZwgVcaZNX2NwK9XSzK/Tr4SruZMkpRG+nc+bIVR3MjKlRNNTLMt+0uwXwIJMyTnYyNkLF62Y28RN8DtFFmtbiD3TSYVTmE+OiOiLvnuXrl5fEnwNmsQeUL3usf3Uz6HelFcaiA3l0YVC8QyduqR99bKD07jz7SLiwdw00eRffOizr7R4qf8LtqCnuyFQV6npMAgC7t9I6lPnnGijYh2HJZRL0Dtabm8DEgsgsw== 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=qTLc3FNy3N7PVdMWQo7Dbb8tTKqW+uD8vm8J0eDJD6I=; b=ToU178trxFnZz37wpELwQVqu6F00VdXboU8r8U3mUNZ97LvrmZoVOm1bz55zsZUmL8wEvYFhuyrfEGsxd4PSrDohbvego6lbirUNmpJaXxqsVIlYNhdE6cRZa3/VuRXoQ2ePrcf/lh8ZMG7O4IhoqdCr7u+GVgDdiSmYKXfQZcMDskrBVBHE3brlzTCnwFpH9h90Ixx7FPTX6ZyBMon+rdkZc8wYEOqzSdDy1/hwpBvCgR/gJbZogIPBVTSYp4OsUSqHR6OM7IM3Q66s58kHDNr1ygXnw1UOStjGQffsYPy71PdP+gGdqG9MSlct81mPbFE5JvaU3kqcP0irhgKn+A== Received: from CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) by SA1PR12MB7127.namprd12.prod.outlook.com (2603:10b6:806:29e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.30; Thu, 1 Feb 2024 13:16:54 +0000 Received: from CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::df56:6290:5b5a:e018]) by CO6PR12MB5396.namprd12.prod.outlook.com ([fe80::df56:6290:5b5a:e018%7]) with mapi id 15.20.7270.010; Thu, 1 Feb 2024 13:16:54 +0000 From: Suanming Mou To: "ciara.power@intel.com" , "anoobj@marvell.com" CC: "dev@dpdk.org" Subject: RE: [PATCH 1/2] app/test-crypto-perf: fix copy segment size calculation Thread-Topic: [PATCH 1/2] app/test-crypto-perf: fix copy segment size calculation Thread-Index: AQHaPfl96IV/qRTURkiVqP4s1RMlk7D1pW+Q Date: Thu, 1 Feb 2024 13:16:54 +0000 Message-ID: References: <20240103040024.720600-1-suanmingm@nvidia.com> <20240103040024.720600-2-suanmingm@nvidia.com> In-Reply-To: <20240103040024.720600-2-suanmingm@nvidia.com> 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_|SA1PR12MB7127:EE_ x-ms-office365-filtering-correlation-id: 8621be89-82b0-487f-3876-08dc23280f55 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9Qa18GYo+amRaRdOlljWqoTCt/W0FO5b8/7ocr5bzgMDvy6RsYCZzV5r0Cg5hiQvO85/pPgcWdlSbjEmXAZuxUWzBiNAGR/71sTLoaus8rqFkUZmdf8P92zKno02dYeEaGVSNR3sKwCb9ZBpMYgArP6CPfRHCmFBhbbDH2BjuMcu0/xrUDqCxPYMaak7fmUnMqtoswSijye6Dclxbx7ddTKhW/GZUohk9qmygJ6LqMnJPuPy4Y8NKU3wRRffCFK8dHJFJCtga5hGYpURbwgqXDyCJ7TmPEykPPlapUmynHjdO8bUx/USn/ydYH2AwiU7/orQvTXmr1NkoHqxd7GB4F7hUwkpgnYl0UaKIJXrhrj36R6nCLWEM6PglmeQyfvKj/awuR9ek4Kv2p/7sczl/O/8djKe12sOljWHgclMt6lXpZOmlFuxcQUIQqQ7W6WOxLWXSinW1pDkEM/jeUgLNM83KeSrte6CZeVVqaIsYZgTXr+Z+/dZlt8bLw+A1UHlkLxvWFgoKFplm0i07bZmabMq/8fdUlUx1k7b6ZKSmhc9ndGRIEmKwQjgZwu3WZwJdqYZannn45Y8g3z24Z+l6JZpXWlQh5gfvHeDxX3zp1WjRwaLB8W0jUJchkYjxx/I 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:(13230031)(366004)(39860400002)(346002)(136003)(376002)(396003)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(83380400001)(9686003)(26005)(38100700002)(122000001)(52536014)(5660300002)(4326008)(8676002)(8936002)(2906002)(478600001)(7696005)(6506007)(53546011)(71200400001)(66476007)(64756008)(66446008)(66556008)(76116006)(66946007)(316002)(110136005)(38070700009)(41300700001)(86362001)(33656002)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TtF0DDWEVPGzrC12GIOcIaD9ed1+sTreEMTTy1aw6jM+Du5m2oPz1S5R9ztV?= =?us-ascii?Q?fh+WOe3PX+dgvJGLfvdNuWAmPQPnYq+DpIcjPLK3P9MDRX5acIJigsUwQ6E6?= =?us-ascii?Q?xa8vyGPg63GdiiSCylCnSFUc9qYi1fB6dEyUEQaXMBF8NEQM0Y5E4pYbGpPN?= =?us-ascii?Q?FHyB3BRqqbDS+5HTKTy4bcLKBER8Gxi/pSmiIDrS/YPRdTkjMiF9E9M15ckn?= =?us-ascii?Q?g1uRDuo0uBr6Zo94qzd9BC9c7G3DLNqltxKbSTVyEObrsOt/luwicinINub6?= =?us-ascii?Q?8pmLinthzfKbHh0Xtuw4RHu7zA19Cw5SS2iggJ0pjp1HOF2hB/ipRtNrf6y6?= =?us-ascii?Q?Jc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blL8uWgOXCXL8Rwo0j20c?= =?us-ascii?Q?dmNMIzKVFzg1aRUbW9U/UJJh/Elb7bLhp3GKYFtKmeROvkAtRB/izbZ9JxgB?= =?us-ascii?Q?iSQ2dlGh24fWU5E48srpJtl4XUGyw1vj8abwOcBuBa6paQUBIc/M+dI5q/CI?= =?us-ascii?Q?7G6oXru50AlpIZyWDriE3Z7vG32kqfnG3Jl9jMpD4XnX6BOYbyQttQxDy2nY?= =?us-ascii?Q?rWq1Ju2P6yKd04rOqwjQq2oLi0CR1rTEaJd9WAqhPou1EdGrKCe/SCaVI8m1?= =?us-ascii?Q?P/Xtqt1ApQ8IeHGJ5XShM4LNROAEN1CuvKIDNDKd6qJ2P9gFrH+2J5Xxi7oK?= =?us-ascii?Q?8CrrpFOZyrTU7uDbP7O8FvI9pCRmbKwRKjrlRudx?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: 8621be89-82b0-487f-3876-08dc23280f55 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2024 13:16:54.2591 (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: 3CHlyX8Ja+3OedbE+r6VoAWSACZSJJGESCAAmqYcM0ZgUUIICAHGkD2Ku3KkSB2YL9x/2LVWUJutoz4Bd/XLzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7127 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 Hi, I saw other crypto perf fixes are reviewed, any chance to take a look at th= is series? > -----Original Message----- > From: Suanming Mou > Sent: Wednesday, January 3, 2024 12:00 PM > To: ciara.power@intel.com > Cc: dev@dpdk.org > Subject: [PATCH 1/2] app/test-crypto-perf: fix copy segment size calculat= ion >=20 > For the case crypto device requires headroom and tailroom, the segment_sz= in > options also contains the headroom_sz and tailroom_sz, but mbuf's data_le= n is > user's segment_sz without headroom_sz and tailroom_sz. That means the dat= a > size to be copied should use user's segment_sz instead of options->segmen= t_sz. >=20 > This commit fixes the copy segment size calculation. >=20 > Fixes: 14864c4217ce ("test/crypto-perf: populate mbuf in latency test") >=20 > Signed-off-by: Suanming Mou > --- > app/test-crypto-perf/cperf_test_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto- > perf/cperf_test_common.c > index ad2076dd2e..8faf832527 100644 > --- a/app/test-crypto-perf/cperf_test_common.c > +++ b/app/test-crypto-perf/cperf_test_common.c > @@ -271,7 +271,7 @@ cperf_mbuf_set(struct rte_mbuf *mbuf, > const struct cperf_options *options, > const struct cperf_test_vector *test_vector) { > - uint32_t segment_sz =3D options->segment_sz; > + uint32_t segment_sz =3D options->segment_sz - options->headroom_sz - > +options->tailroom_sz; > uint8_t *mbuf_data; > uint8_t *test_data; > uint32_t remaining_bytes =3D options->max_buffer_size; > -- > 2.34.1