Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1529/?format=api
https://patches.dpdk.org/api/patches/1529/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416953837-15894-11-git-send-email-chaozhu@linux.vnet.ibm.com/", "project": { "id": 1, "url": "https://patches.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": "<1416953837-15894-11-git-send-email-chaozhu@linux.vnet.ibm.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1416953837-15894-11-git-send-email-chaozhu@linux.vnet.ibm.com", "date": "2014-11-25T22:17:13", "name": "[dpdk-dev,v5,10/14] Add cache size define for IBM Power Architecture", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b6c36f7cfa44c61ff9a44754484c8039c67ce8df", "submitter": { "id": 114, "url": "https://patches.dpdk.org/api/people/114/?format=api", "name": "Chao Zhu", "email": "chaozhu@linux.vnet.ibm.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416953837-15894-11-git-send-email-chaozhu@linux.vnet.ibm.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1529/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1529/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id A79646829;\n\tTue, 25 Nov 2014 11:05:35 +0100 (CET)", "from e28smtp08.in.ibm.com (e28smtp08.in.ibm.com [122.248.162.8])\n\tby dpdk.org (Postfix) with ESMTP id 5240D2E8B\n\tfor <dev@dpdk.org>; Tue, 25 Nov 2014 11:05:30 +0100 (CET)", "from /spool/local\n\tby e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <dev@dpdk.org> from <chaozhu@linux.vnet.ibm.com>;\n\tTue, 25 Nov 2014 15:46:21 +0530", "from d28dlp01.in.ibm.com (9.184.220.126)\n\tby e28smtp08.in.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tTue, 25 Nov 2014 15:46:19 +0530", "from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60])\n\tby d28dlp01.in.ibm.com (Postfix) with ESMTP id 17BFAE004C\n\tfor <dev@dpdk.org>; Tue, 25 Nov 2014 15:46:40 +0530 (IST)", "from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67])\n\tby d28relay03.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tsAPAIRLF59048024 for <dev@dpdk.org>; Tue, 25 Nov 2014 15:48:27 +0530", "from d28av05.in.ibm.com (localhost [127.0.0.1])\n\tby d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tsAPAGGfK021422 for <dev@dpdk.org>; Tue, 25 Nov 2014 15:46:16 +0530", "from os_controller.crl.ibm.com ([9.186.57.58])\n\tby d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tsAPAG3kt020283 for <dev@dpdk.org>; Tue, 25 Nov 2014 15:46:16 +0530" ], "From": "Chao Zhu <chaozhu@linux.vnet.ibm.com>", "To": "dev@dpdk.org", "Date": "Tue, 25 Nov 2014 17:17:13 -0500", "Message-Id": "<1416953837-15894-11-git-send-email-chaozhu@linux.vnet.ibm.com>", "X-Mailer": "git-send-email 1.7.1", "In-Reply-To": "<1416953837-15894-1-git-send-email-chaozhu@linux.vnet.ibm.com>", "References": "<1416953837-15894-1-git-send-email-chaozhu@linux.vnet.ibm.com>", "X-TM-AS-MML": "disable", "X-Content-Scanned": "Fidelis XPS MAILER", "x-cbid": "14112510-0029-0000-0000-000003221AFC", "Subject": "[dpdk-dev] [PATCH v5 10/14] Add cache size define for IBM Power\n\tArchitecture", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "IBM Power architecture has different cache line size (128 bytes) than\nx86 (64 bytes). This patch defines CACHE_LINE_SIZE to 128 bytes to\noverride the default value 64 bytes to support IBM Power Architecture.\n\nSigned-off-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>\n---\n app/test/test_malloc.c | 8 ++++----\n mk/arch/ppc_64/rte.vars.mk | 2 +-\n 2 files changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/app/test/test_malloc.c b/app/test/test_malloc.c\nindex ee34ca3..63e6b32 100644\n--- a/app/test/test_malloc.c\n+++ b/app/test/test_malloc.c\n@@ -300,9 +300,9 @@ test_big_alloc(void)\n \tsize_t size =rte_str_to_size(MALLOC_MEMZONE_SIZE)*2;\n \tint align = 0;\n #ifndef RTE_LIBRTE_MALLOC_DEBUG\n-\tint overhead = 64 + 64;\n+\tint overhead = CACHE_LINE_SIZE + CACHE_LINE_SIZE;\n #else\n-\tint overhead = 64 + 64 + 64;\n+\tint overhead = CACHE_LINE_SIZE + CACHE_LINE_SIZE + CACHE_LINE_SIZE;\n #endif\n \n \trte_malloc_get_socket_stats(socket, &pre_stats);\n@@ -356,9 +356,9 @@ test_multi_alloc_statistics(void)\n #ifndef RTE_LIBRTE_MALLOC_DEBUG\n \tint trailer_size = 0;\n #else\n-\tint trailer_size = 64;\n+\tint trailer_size = CACHE_LINE_SIZE;\n #endif\n-\tint overhead = 64 + trailer_size;\n+\tint overhead = CACHE_LINE_SIZE + trailer_size;\n \n \trte_malloc_get_socket_stats(socket, &pre_stats);\n \ndiff --git a/mk/arch/ppc_64/rte.vars.mk b/mk/arch/ppc_64/rte.vars.mk\nindex 363fcd1..dfdeaea 100644\n--- a/mk/arch/ppc_64/rte.vars.mk\n+++ b/mk/arch/ppc_64/rte.vars.mk\n@@ -32,7 +32,7 @@\n ARCH ?= powerpc\n CROSS ?=\n \n-CPU_CFLAGS ?= -m64\n+CPU_CFLAGS ?= -m64 -DCACHE_LINE_SIZE=128\n CPU_LDFLAGS ?=\n CPU_ASFLAGS ?= -felf64\n \n", "prefixes": [ "dpdk-dev", "v5", "10/14" ] }{ "id": 1529, "url": "