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 2A20AA0A02; Fri, 21 May 2021 13:19:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 119644069E; Fri, 21 May 2021 13:19:00 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id E583940041 for ; Fri, 21 May 2021 13:18:58 +0200 (CEST) IronPort-SDR: mcmWIcBJ6G5kOF83YZPo1ypd9nD2G3zSLanPUa/XY47Lx0U34F9L3H3y0tL5WXItlIAoVR+2L9 wAZjrkAu79Cw== X-IronPort-AV: E=McAfee;i="6200,9189,9990"; a="222572274" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="222572274" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2021 04:18:58 -0700 IronPort-SDR: c2SuAsmhg9tDeiBs0Dw9uRMEcpljhj3Mx6atUSLkhvHm28cklYw9QoyoMPPrc0dHRWV6lX+cep sudnJlmrbdFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="631780046" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga005.fm.intel.com with ESMTP; 21 May 2021 04:18:57 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Fri, 21 May 2021 04:18:57 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Fri, 21 May 2021 04:18:55 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Fri, 21 May 2021 04:18:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FVDG/mlsqQwNasnW2bBkALMOhgVroOhy18kdCmrk0Jiql3ai/2R2LOYl/HiuJaFICjypyE1cju9gN97XFqVg2sVcoyEodAFVWtSGzm2ppsGM244OouNVIMB9XhC+eoEq2HAvr6sCDJYbKlh0YDdKcANmYSnvIWMBzXwZl94MNVuxB5x19D5T7Q4kttPGdaCvQwuVodWavNQdxloOfeEkRVRvMi7LS0H9uDo66wAixrkpwTWn7uyq1UW89/NdtjZStGf6rsnVvDIskVx1WFFk2bMxx9d9MwM2kPeHpoWT/T66vlV9IWZ+a+fDBelJUCfI3bzSc17bxNlN2bju0FtIsQ== 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=ti1i7RPauaGZj6LCxNSyo2ahIHVUNG4sqofKMolGC7M=; b=KKHHNNYQU5aXycjV3nwSW6lq+wbb09F1hCjMkcJxfNhpM1N35ZuOndFw8CtIfRt2Sh/XEN5IPEN5imoXMnuVPpcnF8+fyJZnQCpwwL07FlzGkVYRo4SmthcOvaaVE1dtluFSumJ3PXjTN3OTvXFf0e2wVJ4zj6KNs5GQEvmPwCoj2tco49T4+KLHqPhGoYJF58lK5DfDbkcuDQv8i7oU3Kpq0BVXmdgAam8VSC9Jm5oAa2JUp/bySPgW+YIrUSY0rXjDtriehDD1QC2qVX7Ql+Ad9LdGwRyeFmvFDwC6PBTmQug+r6wL4IBROTq6KdVbrRUiGQ04v6R3mGW6QfyTRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ti1i7RPauaGZj6LCxNSyo2ahIHVUNG4sqofKMolGC7M=; b=ReR43IPdh0OgVUS/lA2TO1R8hqomFa/XHzgRjWCAfeuVulBgS4yVE0G9GIZOAP1yaABePIelNQeWoOgMjp1FwpFTll706Tu8XnEtg63gXBghUb0gg+xtQUQLk2dU/JCte214IFz9a7eWmp/DfvzAF7+XRpUCdmZC5Pt359N6IHU= Received: from DM8PR11MB5591.namprd11.prod.outlook.com (2603:10b6:8:38::23) by DM8PR11MB5575.namprd11.prod.outlook.com (2603:10b6:8:38::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Fri, 21 May 2021 11:18:54 +0000 Received: from DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::4c99:1c70:10de:75ca]) by DM8PR11MB5591.namprd11.prod.outlook.com ([fe80::4c99:1c70:10de:75ca%7]) with mapi id 15.20.4129.035; Fri, 21 May 2021 11:18:54 +0000 From: "De Lara Guarch, Pablo" To: "Zhang, Roy Fan" , "Ji, Kai" , "dev@dpdk.org" Thread-Topic: [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool alloc Thread-Index: AQHXTYnUel6Gg8czxUWan9uzYexNAqrtpZuAgAAlZGA= Date: Fri, 21 May 2021 11:18:53 +0000 Message-ID: References: <20210520150711.28196-1-kai.ji@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [109.255.193.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7317e536-4215-4b2d-f276-08d91c4a37e2 x-ms-traffictypediagnostic: DM8PR11MB5575: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:580; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6sl3J82OMQHmxwFunyi+zAeMvgZkwkihqMiMu0vurPV85WL1Oi8emVFEFuiV2xDjhkOUFjJRTi5Exkim7c/90KDpCWie/WUbTBVThnIhSqLHv2zU/I4tSn55VLB92WfYxLu6aPfxLYovPdfJ3tvmk+akuG2V7vvVVj1lswmSCfrXswLEkyrNdFDpwTYxmm89JTHI+J+S5CbjdgUGOvcFJ+URTNybFIUs29DE3plF52RKDPyaJ46lUoTI2kim8R/9mTvFs7hBNvBig3XMKeUpAmagOco7+g2tbZZRYgQlUeUllRgG/ggQm44iPxx3FtEjoukzlNsCxxJcrp8qb/DOFjq7EgbGRYNuWiJkY39Bz5IxxpsSAk6CnQQn+Gz9KMaAzuiQjGLpeoPV1MkzFpso18gunUNcU7g9fniu3UYEcGdHivRR7BgaB0VLD5qnoL3JgeCIszKgS4sfkzpYeN0PQk44H++JPz+CPoEpSyF5cD8xi/2s2vqJU7HmjsnulLM28AUqCXh+IyjE18KVFPlLh9QAPT0oyYA4VX1sF3NFcFiM/KKhwXc8rva1lTESWJqzVVDxI3+V5nQK9zjBHuWEQjDRNhb4+5/92+/T0nka/Xk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5591.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(366004)(396003)(136003)(39850400004)(346002)(8676002)(5660300002)(478600001)(316002)(8936002)(33656002)(2906002)(71200400001)(55236004)(53546011)(6506007)(7696005)(122000001)(83380400001)(38100700002)(9686003)(52536014)(55016002)(66446008)(86362001)(66476007)(66946007)(26005)(76116006)(110136005)(64756008)(186003)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?KLOSD1QzOYWOxE2nE3aDGPLZ7X2gyTdQ30pz+9FALh5IA2xURxs5jElrD9dI?= =?us-ascii?Q?FhAl3kK4MinAfI/SRincgGennWGUDOb3Yns/uQ0XAii0VFA6ZGS88bEVJ4Yt?= =?us-ascii?Q?gBiTV3RPZs3eqzcgqxI9x1CZvS0BVw6onA4W1lIFqcLQJPiZrgq6OT1+II/t?= =?us-ascii?Q?d2yRLXWKg4T3Th2jHcgJvoiZIkGQSPgDlZU4Qy0dL5Yw8QdgPLbU1B2UrS3g?= =?us-ascii?Q?s5WQ3UUds4tJxEiYvR3bRd3x0fN4N6L1SmCbHDjFpdLya6NRc6zPXR1GRVYM?= =?us-ascii?Q?piJf+GiSsOOp6sIfM+9WqYilgDGEiIwe7F1nXA7MrQs/OeLnEf5xJe38Adj4?= =?us-ascii?Q?zerrXLPkkwLo+ceYHXuZRY6BP7t8SQu9LhhvNx5fZtvmsFEjIIly8wo30LeW?= =?us-ascii?Q?8rujC5Jd3zYi5FXk2LbWryhvTypjykzXozH2LXnDYtcuUFv/F1AcjpLW4Jrj?= =?us-ascii?Q?YYk04aHYmfMYVLsvJDpAfnZoImT8fAOrs5Yu0ASzhz2aOCfQZfKbYY5zKlbQ?= =?us-ascii?Q?37vXXk6/Jx9FadiGKdEUxtITY0OXxKRK278sGwhaDPCBQdYc1dd6jua45tKa?= =?us-ascii?Q?8vgX5VyQyWwvJVigFL95y0aoSZlaHrAdyrbOJBqrQg0JzBKWO6/3ySn4EdcI?= =?us-ascii?Q?8OaBvUXbdxn0XIWOsCs2Rje6aj7vdoVJjbh0B3mAh1QEoqYWQ3yN5l35YJ1K?= =?us-ascii?Q?r5jMjJPAbgG+m2Tai5ZiRtjfagKqQgKcVPMoeObOTj/0Xng52ezuVTm2o+Vg?= =?us-ascii?Q?P4bqR++tLwXs76PR/B5xdw1JMKLp/BBO/jy3jnYzgCoK5VTE2AekYhjUF/bG?= =?us-ascii?Q?oy0CifMvEHfUOH/kkLCgu88Z1uFTEwFu8tNJrW0kbJA1HRY04btDYaKKIah4?= =?us-ascii?Q?ueMGjHsnl8LK65I2cpf5kG10N6u3YfFHOKb5E61lugCKYDuN+osxlaUqTAMx?= =?us-ascii?Q?CgkwXCetUhzt8Znjk9eWf5qgA4G5AkS0mb2f4RuDdasl4OqGMOVgTBM10P3+?= =?us-ascii?Q?ihji190MH8ynlYdFqST3l7qgdBlJvGMwG3k8KoB7gbbbz/UpyNRIB8OrYgrM?= =?us-ascii?Q?Z0elxICigCZ+p4zsuMra37zkW9DVB3mLiCIeQU7tnGFURyJI2e8NFGO4K8rY?= =?us-ascii?Q?Ee5iJy/tfhnO3tTFEKATNeyA88SppwYx8XRvZAIh4SJRta/trzyl/9NvgfD8?= =?us-ascii?Q?jttWYMu1mJF157xC8dE36eIOn19l7g1u4lVzAoJDf/Zjq/nxA7M6gBhnqjnm?= =?us-ascii?Q?EzCBQvk5BnZ6KuCTMk/MXdZaCCI9ErknzJJ7bXt88Aef3wbLPK67Ha7YEqKO?= =?us-ascii?Q?/7ymaTYdmcRV4XF+Qi5CFK+P?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5591.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7317e536-4215-4b2d-f276-08d91c4a37e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 11:18:53.9398 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gWKqxrLZr/0cciIzXDS90YBDystLgGVRBNWvqr22duTQEYdTgUCyUqYqdfNgEl8gtGvJep9lSTLwLvcbQiGYkH5M9oOJerr5ylG7c3WCL5g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5575 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool alloc 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" > -----Original Message----- > From: Zhang, Roy Fan > Sent: Friday, May 21, 2021 10:05 AM > To: Ji, Kai ; dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: RE: [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool al= loc >=20 > > -----Original Message----- > > From: Ji, Kai > > Sent: Thursday, May 20, 2021 4:07 PM > > To: dev@dpdk.org > > Cc: Zhang, Roy Fan ; Ji, Kai > > ; De Lara Guarch, Pablo > > > > Subject: [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool > > alloc > > > > Add in missing rte_mbuf size in mempool allocation for out-of-place op. > > > > Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") > > Cc: pablo.de.lara.guarch@intel.com > > > > Signed-off-by: Kai Ji > > --- > > app/test-crypto-perf/cperf_test_common.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/app/test-crypto-perf/cperf_test_common.c > > b/app/test-crypto- perf/cperf_test_common.c index > > 058e0ba564..12925c7f22 100644 > > --- a/app/test-crypto-perf/cperf_test_common.c > > +++ b/app/test-crypto-perf/cperf_test_common.c > > @@ -194,7 +194,7 @@ cperf_alloc_common_memory(const struct > > cperf_options *options, > > (mbuf_size * segments_nb); > > params.dst_buf_offset =3D *dst_buf_offset; > > /* Destination buffer will be one segment only */ > > - obj_size +=3D max_size; > > + obj_size +=3D max_size + sizeof(struct rte_mbuf); > > } > > > > *pool =3D rte_mempool_create_empty(pool_name, > > -- > > 2.17.1 >=20 > Acked-by: Fan Zhang Acked-by: Pablo de Lara