From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B21FB1B14F for ; Mon, 8 Oct 2018 17:57:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2018 08:57:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,357,1534834800"; d="scan'208";a="270529981" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga006.fm.intel.com with ESMTP; 08 Oct 2018 08:57:05 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by IRSMSX153.ger.corp.intel.com (163.33.192.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 8 Oct 2018 16:57:04 +0100 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.56]) by irsmsx111.ger.corp.intel.com ([169.254.2.200]) with mapi id 14.03.0319.002; Mon, 8 Oct 2018 16:57:04 +0100 From: "Dumitrescu, Cristian" To: "Singh, Jasvinder" , "dev@dpdk.org" Thread-Topic: [PATCH] librte_sched: allocate memory on the given socket id Thread-Index: AQHUVoUJ2YjP6Fzq9UONcBASJL+AYKUVkdnQ Date: Mon, 8 Oct 2018 15:57:03 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E7D5F64@IRSMSX107.ger.corp.intel.com> References: <20180927171045.103407-1-jasvinder.singh@intel.com> In-Reply-To: <20180927171045.103407-1-jasvinder.singh@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTU2NzBiNWYtN2NiNi00Y2Y4LTgxZTgtNTNmZjRjMmQwODEyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMGpBVmhkS3RYeWpjeE1PMThQSEJhSFlsQ1VrcVNQSG1ZaGswenc2QkljMWxcLzMyRmNSSTNUckFiek5cL0ZBR2NvIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] librte_sched: allocate memory on the given socket id 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: , X-List-Received-Date: Mon, 08 Oct 2018 15:57:07 -0000 > -----Original Message----- > From: Singh, Jasvinder > Sent: Thursday, September 27, 2018 6:11 PM > To: dev@dpdk.org > Cc: Dumitrescu, Cristian > Subject: [PATCH] librte_sched: allocate memory on the given socket id >=20 > Replace rte_zmalloc() with rte_zmalloc_socket() to allocate > memory on the socket id provided by the application. >=20 > Signed-off-by: Jasvinder Singh > --- > lib/librte_sched/rte_sched.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c > index 9269e5c71..328c983b4 100644 > --- a/lib/librte_sched/rte_sched.c > +++ b/lib/librte_sched/rte_sched.c > @@ -633,7 +633,8 @@ rte_sched_port_config(struct > rte_sched_port_params *params) > return NULL; >=20 > /* Allocate memory to store the data structures */ > - port =3D rte_zmalloc("qos_params", mem_size, > RTE_CACHE_LINE_SIZE); > + port =3D rte_zmalloc_socket("qos_params", mem_size, > RTE_CACHE_LINE_SIZE, > + params->socket); > if (port =3D=3D NULL) > return NULL; >=20 > -- > 2.17.1 Applied to next-qos tree, thanks!