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 5D421A0A02; Fri, 21 May 2021 11:05:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F48E4069D; Fri, 21 May 2021 11:05:12 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C5E2A40143 for ; Fri, 21 May 2021 11:05:10 +0200 (CEST) IronPort-SDR: djhzg82SctO+e4ZeNmSTUGgrHZGobLNIRi6OJhwBSgvPwiYus0dtZ1LavQHzRwGRYdSq7jg1AI C9+HQacA6T5g== X-IronPort-AV: E=McAfee;i="6200,9189,9990"; a="181732845" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="181732845" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2021 02:04:50 -0700 IronPort-SDR: k3diQH39Rg1KyTKvMiYBb4lc528WraWbK5p7/z5LMRITYH33pDhOyCIeLbj/SbVoZmAHUCgBJv 5rygmA33UBLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="613171673" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga005.jf.intel.com with ESMTP; 21 May 2021 02:04:46 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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 02:04:46 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx609.amr.corp.intel.com (10.18.126.89) 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 02:04:46 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) by edgegateway.intel.com (192.55.55.70) 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 02:04:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WOIsZEQVXPbfPxPFz5RIlNGBYMu1rx0QC1tZtN6FY9klyl5itH30pQdcg4tg8j5Lwe36Pq1de1j3LQfQhCzPeh5DYADRu9P2JvAGpidn5XSRPkQmg8S0CfjYUGm15o/BBeTn5mP6anbLNEeY6dJWhz9GIaniJTgcilN9m0fCW68QpYaJCsCSM8v6aAhQRNybm4WkT0bG0vIkqz0IfHx25ISuUDO7hdCozXPAIPJBnQLFcz9vslawKrdnt41UrUWk13/jh6erO+hxgQ/FMOw66zgA+GdeK5p0+F0Sl7CEsc9bh/PHzC8l9fJN4H9Md/pOcK2xuvX/JoCyH7c1J+H9/g== 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=2da2QlmtjeYAVp+mzP4t/HAy4+a5A1XEw8cfNmUiB+c=; b=c8VYY4J9KLFzl8bQPIJ8Z4wF/qabqTULhlawjOzSeRfXwXeqtrqwWeJhD1L99zWyBPnmvmTQ3QUZ70GFvGfPjfz1FNCAyPEOdQrzqCwHMB3tqKKXB9DmytCLMCQw2mAjm9/vOeXU8bqqyscDqqJ5eMIMcfjF/+0cOlaRx5/U2t9ZEqdXSKlEBYpLn0AnEx/UwNth0k4XwLYDXvkgRhfUWjc+oat+Pax0mXm4qjr+0wAdXlbV3HeGeXRVsWts6U/UbLCfd/ojY4342yNvPMKex6rXzYd6NEU/mSQLqeQpczaKbN1KV88gDiasDNYQmAqzuK5fg8R7XTTF+O7tYeGReQ== 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=2da2QlmtjeYAVp+mzP4t/HAy4+a5A1XEw8cfNmUiB+c=; b=ZHt6MFlh3rfdCxTVVxkyFclxkCQJEXQqXUbHpW5RxXM5581x+hQ2NgtnSfH3mQUO2A61c1uEuhN7t7IJ8QILtFLn6uVi9WdyB3hdst3JhVL2LG3mCNSMxV0SkOVilSsyIpeulHEdrOfJ6vMkdabao35DovAqP+BznlLVapT+HOY= Received: from DM6PR11MB3049.namprd11.prod.outlook.com (2603:10b6:5:6a::21) by DM6PR11MB3609.namprd11.prod.outlook.com (2603:10b6:5:140::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.28; Fri, 21 May 2021 09:04:45 +0000 Received: from DM6PR11MB3049.namprd11.prod.outlook.com ([fe80::c8fe:eb79:ac1d:6eac]) by DM6PR11MB3049.namprd11.prod.outlook.com ([fe80::c8fe:eb79:ac1d:6eac%5]) with mapi id 15.20.4150.023; Fri, 21 May 2021 09:04:45 +0000 From: "Zhang, Roy Fan" To: "Ji, Kai" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev v1] cperf: fix crypto perf out-of-place mempool alloc Thread-Index: AQHXTYnUMLVW9spc5EaUvVaxo0OmyqrtpYKw Date: Fri, 21 May 2021 09:04:45 +0000 Message-ID: References: <20210520150711.28196-1-kai.ji@intel.com> In-Reply-To: <20210520150711.28196-1-kai.ji@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.0.76 dlp-reaction: no-action dlp-product: dlpe-windows 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: [95.44.220.85] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b65d6e38-761d-4d2f-c7e6-08d91c377a7b x-ms-traffictypediagnostic: DM6PR11MB3609: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FuKcsqKdkAenQ/SDBGlkZvnUUdt5XVj8soR9Nu3X9dmJFckKXSe06Cwl5iZnCfTCUN5sz91bFG8uNuqqVJMtQEty1Bp47BSv1yOmqgsQ3Y6d0rJahccOKGX3eUPdhjkZZI4ONPwmurEm6xHfBLvGUuHUwwxOLyQ0/CHNj3xRZ0IK8nFWMlNZVgz3xF4S2XhgkWFubarbohsWxJmd0c8RmuWhdm26u3X9TYjyJ0cXjfoJRSAiwJSCkxmNHtRTjQIg0Ow09nPSHhf378nFwgNl912PDJ19DFTPXa+KKbwG7WhsJRsRw4iAvq7Suv7dqvEtUUD2ukyDTceAuq2jaaBTLMUzdiimHKl5dvBN6wTLE6ryJimPXEbXC/yGOzFvcWid7X67pne7DPqk17zMr3qK3nLm+vHl8vjy55ffOD7M+9zM3ep7r+aE+SvJrL273atOOTfvTSrs1jgRAitBFlAf2qawuPS9AUXIicwOYW+UIw/LkRpEReUKOSSP1FVXKX3kZwaAgnJwKh3tgrRAk/zOVuzp0+M/0bJd9MNEp8hMe4VU9OBXtWOg+hovvTmh3/v2iy5uGgJ6BpGvO4tctCuFheyMgojwzhapUlSDCYcDafg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3049.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39860400002)(366004)(346002)(396003)(376002)(33656002)(86362001)(66556008)(66946007)(66446008)(122000001)(38100700002)(64756008)(66476007)(76116006)(83380400001)(8676002)(8936002)(52536014)(5660300002)(110136005)(53546011)(2906002)(9686003)(107886003)(55016002)(478600001)(4326008)(316002)(26005)(71200400001)(186003)(7696005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?Windows-1252?Q?E9FBsKwVO9ksU86LXQ3z42Jp/UbaHJJTFKpo70HiO8Rf6TVT0B6FBYJH?= =?Windows-1252?Q?rt1tQ9xWWUkq42XEqZ5PH+7BeOJDtpPaOumduXq60dEjQJFCda3y7aA8?= =?Windows-1252?Q?DJ2XZVeYeLQevPQoGNj3PnuCt8M2CK11BwhGnZSP0Mivz0o6ydz5vuBq?= =?Windows-1252?Q?YUoXD2L0oveV4rRqYhGPfcHKMR4uA/4G706575ZDhyZyc0YPgjwJ3Jz7?= =?Windows-1252?Q?uHph3+nyGN3KBccQ3JVe/6XO/irASJpq0cUamPGdY4K63ZStMhFo1CJ3?= =?Windows-1252?Q?hhHfQTspyiWF/PA7uUxDFFhdSTrBoqTXvb1XMGLZLgYH4JalGhDWSbDm?= =?Windows-1252?Q?9af1OKjWtALHAk0QyTU11m3tWOkQZeOPG6xTbe3fzBgU5X68roFcl02x?= =?Windows-1252?Q?FeS4hZMVD2QmfnZezRTOyTExBLVf3l38NyJr7RlSeSuk+0VyuRP/C0Pb?= =?Windows-1252?Q?FAlIZJLi0q3xgE2MbFRoibGuP5y/yLMrdM6sOZVqOVJ7h0KVsnbBWLhh?= =?Windows-1252?Q?DoFB4F4+paGh3hEoOSd4Yc0IZtaH3apPgzYPpV2oMguD/dUfvuQNnH78?= =?Windows-1252?Q?BASW8DI/BdTUsqVqkth2mOQtJAYB+BHNkQqFDZSRli4ELRNBmMSpaavQ?= =?Windows-1252?Q?AdA+xFpMrkM+8j+8YK3FI6wUGmAA79b4hZ0REI0JjOY4embtjZQwjwxf?= =?Windows-1252?Q?JGRmj3b5OylmfwOKQJqar9h79reJ61GmT8diFYGCQx43q6NQkUgYVPyV?= =?Windows-1252?Q?5+ufHRqTQ0kLV39SXnMxEh8MJZ/ti2elcrExFwLJnIwPExaKnUvbxTPb?= =?Windows-1252?Q?HKIBq7nZriwXhbzj+Oh028BO0Yhph5XYjNOGo1QoGH5LCPNTTV3C4FEx?= =?Windows-1252?Q?6ws4V3vNJkQR0NORMd4pbI0Zh0TM9DXLSgKYymeFS/4NMy8VLjkOAwZY?= =?Windows-1252?Q?ogx1tlkEKXEpFgatKvynlBdQyHMnW5r3TA2tL+2bOqbVY07aX0S+rmt6?= =?Windows-1252?Q?ccaLc5UWEdj1gQIwyKdJnWE+maRAnSpP9gOQiuhW77wISo6rxQ3TXuNt?= =?Windows-1252?Q?vLsZ5i4Zx1WWUF2ASBa2gtSK3X4lR47XpRwtvaOeAKJeXzj0MsFHstmI?= =?Windows-1252?Q?m6S5uJtSHo+ppLQ3jD7OSYhXCQZPmMf8fHM1Lebee+NBLljG3xT4rnwr?= =?Windows-1252?Q?H+39a99lZCEu6iTcYTdfkuPeuYRFg9kKBMlkuFmvIvITpEYLTTjePsgH?= =?Windows-1252?Q?DvwzN2ys6WAC10SzCYzYd3rOs7DZIyEnlKI78gnmhlZWRoVzjQaju0SD?= =?Windows-1252?Q?vhIOmR7ctwUcUPCkkmCapj8C9ZahwQsMcNOFJJmwyq5p0bjNfijdi9d2?= =?Windows-1252?Q?MBnayXe7OCX8JgYQpWC0dOTNVNNrmrb8V3XpoVFO6DNjF5lpTLMM4qBM?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3049.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b65d6e38-761d-4d2f-c7e6-08d91c377a7b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 09:04:45.2717 (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: O2tOcw59u0v1y2PcnR4I1zlCBeUW7F+fk5HKEz3u3wFgC10oZnKLQTfEHetwv+t36yA6Wtf5CcicSvWqtoHg3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3609 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: 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 >=20 > Add in missing rte_mbuf size in mempool allocation for out-of-place op. >=20 > Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") > Cc: pablo.de.lara.guarch@intel.com >=20 > Signed-off-by: Kai Ji > --- > 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 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); > } >=20 > *pool =3D rte_mempool_create_empty(pool_name, > -- > 2.17.1 Acked-by: Fan Zhang