From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 17336A04B1; Thu, 13 Aug 2020 23:38:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 16B6C1C0C6; Thu, 13 Aug 2020 23:38:21 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2EECB1C0C5 for ; Thu, 13 Aug 2020 23:38:19 +0200 (CEST) IronPort-SDR: hyoxqw9sMELZ07av/QWKKj1HCTEAbDuaAsQnP8SCHzwWPPYhfCkngIgnqxpFkzQtd1VoVgvnD2 9MFphe6ax+ZQ== X-IronPort-AV: E=McAfee;i="6000,8403,9712"; a="154289751" X-IronPort-AV: E=Sophos;i="5.76,309,1592895600"; d="scan'208";a="154289751" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 14:38:18 -0700 IronPort-SDR: QaQ9sqH1kMS9jpcCkyRw2tjPxPM4ddH4WaRm0pac85YgEF+qPOk6lESJejf6OcR5U2RDt3paOe WbEBcygFPoTg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,309,1592895600"; d="scan'208";a="369726119" Received: from fmsmsx601-2.cps.intel.com (HELO fmsmsx601.amr.corp.intel.com) ([10.18.84.211]) by orsmga001.jf.intel.com with ESMTP; 13 Aug 2020 14:38:18 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 13 Aug 2020 14:38:17 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 13 Aug 2020 14:38:17 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 13 Aug 2020 14:38:17 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 13 Aug 2020 14:38:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lw/JYfcYavHpW1M3bcfCkFd8hfsIf7cPyybH5oQN4cc2I9r7uJL+0w2egDn70OPnatgvfx15Ql2VC36OUpBNLSShLDxNDk2hWVlthY5PeQLckxPCb83kWRIoO/EMMU0ID2FoIgTmoHdvtxpcbJ4ItNL0M3chl9gK9SGMV0hJWWrlbdzL/X5tCZm7CvVzgQ7cL77GzUNFAwDWWWNHs/m1zw6kHBsv4uOxJwFPYKHCJBmu38Uh+pDivAYJMwoHgtCekA2VHsNzZK9AawPYY9tHLN27N4UZLNAUzSyfET9LDlqVCdgZpQIPNzJsDlpGgRnwlRAyQGKIXjSjpWXvOPH4wg== 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=46N4VQGIef/huSiHd8dv2cquFt831Qg9QOphc1sOZMU=; b=JWo88xyEpoF26wp7kfd59/BEHTVA+mgmQzQe0XHN7v++rE+LokNWRFWfZP/gpVPoxrc6R6mpAl93en9YkqyoKb+YnrECOk+ONrGRkz0XoC0nag6/sivgEkW14DDtTQzfJ4IKBJLD+Qp+y9adlEOjN69n/3LZmtnG7aO3o0y9n05rxcTjckOqBkTjzhbeibzkZ6trucTQgEGWYMU1gg0T6o4eOKXk4MWyjrfDHFHCD9DAizYbSU+sA84/zINjZ2Db35rqtkvU+1pOhD+NAnLL4xQxSlGoT5oWI4vi5LKpaJaV283T/wxvjG/axMy4O7M0t2tsx4eGmJ6lHObF7q4ZEw== 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=46N4VQGIef/huSiHd8dv2cquFt831Qg9QOphc1sOZMU=; b=aEDKsnR4NquKsNKZ2IDn/o1vcebTmCTleLT0f9YM5hH5OQ6H25ueM/l62QRt7hz6EBXfN4GyciEIrA2sLfVDiIRKEZ4sgr8iPprKFBKRnhPC2ekUQzhTNGgKj+zqUj7FkXvTV4JbKrSJtkx29HVknJxeqzSglqYmHoFS1DlussQ= Received: from SN6PR11MB2574.namprd11.prod.outlook.com (2603:10b6:805:59::14) by SN6PR11MB2879.namprd11.prod.outlook.com (2603:10b6:805:5c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.15; Thu, 13 Aug 2020 21:38:12 +0000 Received: from SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::54:b143:c75e:41bd]) by SN6PR11MB2574.namprd11.prod.outlook.com ([fe80::54:b143:c75e:41bd%7]) with mapi id 15.20.3283.016; Thu, 13 Aug 2020 21:38:12 +0000 From: "Eads, Gage" To: Steven Lariau , Olivier Matz CC: "dev@dpdk.org" , "nd@arm.com" Thread-Topic: [PATCH v2 1/4] test/stack: avoid trivial memory allocations Thread-Index: AQHWcN23xhNJvbOIP0KU+zxrEaf1Pak2khuQ Date: Thu, 13 Aug 2020 21:38:12 +0000 Message-ID: References: <20200805155721.19808-1-steven.lariau@arm.com> <20200812191847.16529-1-steven.lariau@arm.com> <20200812191847.16529-2-steven.lariau@arm.com> In-Reply-To: <20200812191847.16529-2-steven.lariau@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [68.203.30.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 03e1c4d0-26c0-4b59-9226-08d83fd12dcd x-ms-traffictypediagnostic: SN6PR11MB2879: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: J7b42JOhI19h6Yw9Mzor4ZlOUStESqz/XCrTR5qQ+VX7POnfUXzNrRYsVkm02/NacQfOSFF/chHRQ5s/p93kRQtYYAYcBO2fqMNvirdFRLakFtvJtFgFA9GL5YD3GgYEBBj3CgM7lOyJcoBSKm+0xDxDN1eqo8a2Ctw39nj1ypLr+g51eZQ2ReG++tLbwWiSyMJcRTeDzGcpFqutYKDPmylX2WZ+I7E1WFA8bzYSc2xIP7R3aA5f/tmupItu4QC5IDBHGtdUuuV1cGP95UDjqrfhI5WBI2Ki8SjIGnWW9c4+8mPhzMtZtabF3bWVaoj9pltbq9N8eAfZVtyJCyrjfw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2574.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(4744005)(5660300002)(4326008)(33656002)(7696005)(52536014)(8936002)(55016002)(66476007)(316002)(54906003)(64756008)(2906002)(66946007)(478600001)(186003)(6506007)(66556008)(9686003)(53546011)(86362001)(66446008)(83380400001)(26005)(71200400001)(110136005)(8676002)(76116006); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: CRrTCgsyuf/2YsdX+hVRcBRj00trjkY9Hs+wHD9FyK6ZiKQHyDYSj//7MFVUKyNmYixYUKiq/L3zNPrfg6jUq7bbex6KQ2f1JWiGz3AbvDXfI5F49xVGAp8X7n/MreYKUt5heyAfwFYdjXQ58Gyan9jmfUH46Eosl0WIog04+g5B/nemdcKJjaao4MAhJZXt7lfqsFpjo8OcZ7XQ3jeahuGIrcibhV3t4w6CSTBQFZHlUMONzInd3yvKAkzXVR3ZwAmYYSar/USK24fKW1IKCBTzmZOKt3Vnnox4jHFHOtpfvBgS+E2ugous9tbNQFLHvdCfFiChC3MazrIGZGnfJHmaKL2vqqYjiL7Rhq2/+MRN8+X/gM58/CWKqJbcT9WspLFaJz1zosObjnJRgJsUzkG+4iKmPYw5qJjglVUFlmLpvTXZXhir3a9VMOst8u4O+0P309eIgxGHiNK3N/Kf3iwOhzgCmNcIAuIbGmSVm89iyZThAq0D7yz6lSiNpfsFrYgZ4ShF7PBiD/zHOogbPPy9ncKni95PG+q9IH7YBT/jVmYQS7sJV/NWqfB+NLojuDko/1eF/3lhdj5biEtlI/y9yKHQpL9UaPSQFET3V6mQr8e+myDWk2uZ1S/00M7moOyibCxkHdbfNM2L0MFUvg== x-ms-exchange-transport-forked: True 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: SN6PR11MB2574.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03e1c4d0-26c0-4b59-9226-08d83fd12dcd X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Aug 2020 21:38:12.1227 (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: U1jg4d0A1hjkv9IXvLRg/x9QthHFsxpbSgp81pg6uTr+m2E8Sb33OHurslvitxGAHMZVgCjRwcIG4SID5d6I9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2879 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 1/4] test/stack: avoid trivial memory allocations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Steven Lariau > Sent: Wednesday, August 12, 2020 2:19 PM > To: Eads, Gage ; Olivier Matz > > Cc: dev@dpdk.org; nd@arm.com; Steven Lariau > Subject: [PATCH v2 1/4] test/stack: avoid trivial memory allocations >=20 > Replace the arguments array by one argument. > All objects in the args array have the same values, so there is no need > to use an array, only one struct is enough. > The args object is a lot smaller, and the allocation can be replaced > with a global variable. >=20 > The allocation of obj_table isn't needed either, because MAX_BULK is > small. The allocation can instead be replaced with a static array. >=20 > Signed-off-by: Steven Lariau > Reviewed-by: Dharmik Thakkar > Reviewed-by: Phil Yang > Reviewed-by: Ruifeng Wang Acked-by: Gage Eads Thanks, Gage