From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0AEB01B434 for ; Thu, 27 Sep 2018 19:52:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 10:52:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,311,1534834800"; d="scan'208";a="83883591" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by FMSMGA003.fm.intel.com with ESMTP; 27 Sep 2018 10:52:25 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.13]) by IRSMSX106.ger.corp.intel.com ([169.254.8.45]) with mapi id 14.03.0319.002; Thu, 27 Sep 2018 18:52:25 +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+AYKUEaH8w Date: Thu, 27 Sep 2018 17:52:24 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E7C2FA9@IRSMSX108.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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmRkMGFhODctOTYzMy00ZjU2LWEyY2QtNDAyMjk4MzVmNzk5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUU80bVZBaWh2a2ZcL3o4TVJyMm9JN1JvQU0zRDhJZXl0b0NSeXpFcHdSKzdvMlB1R2FmSlJIbGhRaUZTTWJHT0UifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [163.33.239.180] 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: Thu, 27 Sep 2018 17:52:28 -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 Acked-by: Cristian Dumitrescu