Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/45538/?format=api
http://patchwork.dpdk.org/api/patches/45538/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180927171045.103407-1-jasvinder.singh@intel.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20180927171045.103407-1-jasvinder.singh@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180927171045.103407-1-jasvinder.singh@intel.com", "date": "2018-09-27T17:10:45", "name": "librte_sched: allocate memory on the given socket id", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7238aae8d05588268cd49d70cf191380ac6f28a0", "submitter": { "id": 285, "url": "http://patchwork.dpdk.org/api/people/285/?format=api", "name": "Jasvinder Singh", "email": "jasvinder.singh@intel.com" }, "delegate": { "id": 10018, "url": "http://patchwork.dpdk.org/api/users/10018/?format=api", "username": "cristian_dumitrescu", "first_name": "Cristian", "last_name": "Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180927171045.103407-1-jasvinder.singh@intel.com/mbox/", "series": [ { "id": 1556, "url": "http://patchwork.dpdk.org/api/series/1556/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=1556", "date": "2018-09-27T17:10:45", "name": "librte_sched: allocate memory on the given socket id", "version": 1, "mbox": "http://patchwork.dpdk.org/series/1556/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/45538/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/45538/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7D8B91B14D;\n\tThu, 27 Sep 2018 19:11:01 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 3CD1A1B136\n\tfor <dev@dpdk.org>; Thu, 27 Sep 2018 19:10:58 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t27 Sep 2018 10:10:46 -0700", "from silpixa00381635.ir.intel.com (HELO\n\tsilpixa00381635.ger.corp.intel.com) ([10.237.222.149])\n\tby orsmga008.jf.intel.com with ESMTP; 27 Sep 2018 10:10:45 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,311,1534834800\"; d=\"scan'208\";a=\"76811477\"", "From": "Jasvinder Singh <jasvinder.singh@intel.com>", "To": "dev@dpdk.org", "Cc": "cristian.dumitrescu@intel.com", "Date": "Thu, 27 Sep 2018 18:10:45 +0100", "Message-Id": "<20180927171045.103407-1-jasvinder.singh@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH] librte_sched: allocate memory on the given\n\tsocket id", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Replace rte_zmalloc() with rte_zmalloc_socket() to allocate\nmemory on the socket id provided by the application.\n\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\n---\n lib/librte_sched/rte_sched.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c\nindex 9269e5c71..328c983b4 100644\n--- a/lib/librte_sched/rte_sched.c\n+++ b/lib/librte_sched/rte_sched.c\n@@ -633,7 +633,8 @@ rte_sched_port_config(struct rte_sched_port_params *params)\n \t\treturn NULL;\n \n \t/* Allocate memory to store the data structures */\n-\tport = rte_zmalloc(\"qos_params\", mem_size, RTE_CACHE_LINE_SIZE);\n+\tport = rte_zmalloc_socket(\"qos_params\", mem_size, RTE_CACHE_LINE_SIZE,\n+\t\tparams->socket);\n \tif (port == NULL)\n \t\treturn NULL;\n \n", "prefixes": [] }{ "id": 45538, "url": "