Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/9148/?format=api
http://patchwork.dpdk.org/api/patches/9148/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1448595365-12699-1-git-send-email-michael.qiu@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": "<1448595365-12699-1-git-send-email-michael.qiu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1448595365-12699-1-git-send-email-michael.qiu@intel.com", "date": "2015-11-27T03:36:04", "name": "[dpdk-dev,1/2,v2] examples/distributor: Fix compile issue", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d6c02e8998c6552915b94f437bb6b4bcc57b77b2", "submitter": { "id": 101, "url": "http://patchwork.dpdk.org/api/people/101/?format=api", "name": "Michael Qiu", "email": "michael.qiu@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1448595365-12699-1-git-send-email-michael.qiu@intel.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/9148/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/9148/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 7F1C05A35;\n\tFri, 27 Nov 2015 04:36:17 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 7C8245A08\n\tfor <dev@dpdk.org>; Fri, 27 Nov 2015 04:36:16 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga102.fm.intel.com with ESMTP; 26 Nov 2015 19:36:15 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 26 Nov 2015 19:36:15 -0800", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id tAR3aDWH025630;\n\tFri, 27 Nov 2015 11:36:13 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid tAR3a9Pj012846; Fri, 27 Nov 2015 11:36:11 +0800", "(from dayuqiu@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id tAR3a9LW012842; \n\tFri, 27 Nov 2015 11:36:09 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.20,349,1444719600\"; d=\"scan'208\";a=\"695245039\"", "From": "Michael Qiu <michael.qiu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 27 Nov 2015 11:36:04 +0800", "Message-Id": "<1448595365-12699-1-git-send-email-michael.qiu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1448501706-21718-1-git-send-email-michael.qiu@intel.com>", "References": "<1448501706-21718-1-git-send-email-michael.qiu@intel.com>", "Subject": "[dpdk-dev] [PATCH 1/2 v2] examples/distributor: Fix compile issue", "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": "examples/distributor/main.c(338): error #167:\nargument of type \"struct rte_mbuf *\"\nis incompatible with parameter of type \"const char *\"\n \t\t\t_mm_prefetch(bufs[0], 0);\n\nThe first param pass to _mm_prefetch is wrong,\nneed convert \"struct rte_mbuf *\" to \"void *\".\n\nFixes: 07db4a975094 (\"examples/distributor: new sample app\")\n\nSigned-off-by: Michael Qiu <michael.qiu@intel.com>\n---\nv2 --> v1:\n\tconvert \"const void *\" to \"void *\" to avoid CLANG issue.\n\tadd \"Fixes\" line in commit log\n examples/distributor/main.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/examples/distributor/main.c b/examples/distributor/main.c\nindex 972bddb..a4d8e34 100644\n--- a/examples/distributor/main.c\n+++ b/examples/distributor/main.c\n@@ -335,13 +335,13 @@ lcore_tx(struct rte_ring *in_r)\n \n \t\t\t/* for traffic we receive, queue it up for transmit */\n \t\t\tuint16_t i;\n-\t\t\t_mm_prefetch(bufs[0], 0);\n-\t\t\t_mm_prefetch(bufs[1], 0);\n-\t\t\t_mm_prefetch(bufs[2], 0);\n+\t\t\t_mm_prefetch((void *)bufs[0], 0);\n+\t\t\t_mm_prefetch((void *)bufs[1], 0);\n+\t\t\t_mm_prefetch((void *)bufs[2], 0);\n \t\t\tfor (i = 0; i < nb_rx; i++) {\n \t\t\t\tstruct output_buffer *outbuf;\n \t\t\t\tuint8_t outp;\n-\t\t\t\t_mm_prefetch(bufs[i + 3], 0);\n+\t\t\t\t_mm_prefetch((void *)bufs[i + 3], 0);\n \t\t\t\t/*\n \t\t\t\t * workers should update in_port to hold the\n \t\t\t\t * output port value\n", "prefixes": [ "dpdk-dev", "1/2", "v2" ] }{ "id": 9148, "url": "