Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/10394/?format=api
http://patches.dpdk.org/api/patches/10394/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com/", "project": { "id": 1, "url": "http://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": "<1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com", "date": "2016-02-05T14:54:07", "name": "[dpdk-dev,1/3] examples/distributor: fix build for non-x86 arch", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "ac7ad77d0ae32c91cca7247bdd50f385ef0de06f", "submitter": { "id": 1, "url": "http://patches.dpdk.org/api/people/1/?format=api", "name": "Thomas Monjalon", "email": "thomas.monjalon@6wind.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/10394/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/10394/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 BE230C310;\n\tFri, 5 Feb 2016 15:55:32 +0100 (CET)", "from mail-wm0-f46.google.com (mail-wm0-f46.google.com\n\t[74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 61580BDAE\n\tfor <dev@dpdk.org>; Fri, 5 Feb 2016 15:55:31 +0100 (CET)", "by mail-wm0-f46.google.com with SMTP id g62so51456807wme.0\n\tfor <dev@dpdk.org>; Fri, 05 Feb 2016 06:55:31 -0800 (PST)", "from localhost.localdomain (136-92-190-109.dsl.ovh.fr.\n\t[109.190.92.136]) by smtp.gmail.com with ESMTPSA id\n\tpu8sm16257933wjc.17.2016.02.05.06.55.30\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tFri, 05 Feb 2016 06:55:30 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=24x9DQDeWLXn+5u2ACLi4CrgBYJQJ2d+6inqrisf0IU=;\n\tb=AF2ksHp9m3tNgdChPTYFgOIN19QWHZR84G9RuRv2gXT/Dj2UmA1ZbwRxpK0zsbUikK\n\ttOL74VvyBYAGS/6S/AcSolwIMAweKnljFwc+2LMeUYw6HdDVwHFxsz7MWoVXZ3VLNKOX\n\trGV0TDrNWp5y73vr+1aV1Flal5wauYbeWlhtdbZv7G5ZameUNEp0AMzDEY72y2zGvxoQ\n\t7gkuoIuIs2QQ3xaa+zlA/w+qDd4tErEJPUFEkNu/GI5Jk17Sxduwk9nQ4JTlgkG+kk1A\n\tSsyeI0kstpvI/6tZaCodjxbOXNIwYODl+XvX2WPJQyuwb1eePS7U5Y3ZlF3OeELJU5C5\n\tOhoQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=24x9DQDeWLXn+5u2ACLi4CrgBYJQJ2d+6inqrisf0IU=;\n\tb=kKLmetaBOgRSrS+WozsugjC2vDwWGHP5pDTzCbQXYENY0zgNvDr+HYfp5X1j2NpwF1\n\tzhzXYVjNwemsONJ7/Hf2z/D3svzvaOb378ZzEctS8/n4Cc7VPrrqN90gfDm3HefGTSM5\n\trECEW8eoIznbHMiYm48XdgRWFTTdFoYgAMqT6Fg1/mkxr1VIjtu++adlfj++gYcPgDJl\n\tOvbhL6w9x04UAw3+PXkGRHgWSAliIjG5aX+yqCb77NAkSBAdoq4ms/90OQv/9nnw5Uy2\n\tbC13u/ZdoDGtuVq6yQVQq5UMS2ymbWMIB9ILRJbf9cl+ydLye0IaEteyzcjkC2z23Fd5\n\tLkZg==", "X-Gm-Message-State": "AG10YOTBYU1yWVjENokxKtRj7iF+QtHqSxtLDIEC/0+tqdrYr5K4vcIJW98DwbGz/5whp4oG", "X-Received": "by 10.28.33.84 with SMTP id h81mr10610757wmh.36.1454684131263;\n\tFri, 05 Feb 2016 06:55:31 -0800 (PST)", "From": "Thomas Monjalon <thomas.monjalon@6wind.com>", "To": "bruce.richardson@intel.com,\n\tremy.horton@intel.com", "Date": "Fri, 5 Feb 2016 15:54:07 +0100", "Message-Id": "<1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com>", "X-Mailer": "git-send-email 2.7.0", "In-Reply-To": "<1454684049-27195-1-git-send-email-thomas.monjalon@6wind.com>", "References": "<1454684049-27195-1-git-send-email-thomas.monjalon@6wind.com>", "Cc": "dev@dpdk.org", "Subject": "[dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86\n\tarch", "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": "_mm_prefetch is defined only in x86 compilers.\nrte_prefetch functions are defined in EAL for each arch,\nand must be preferred over compiler intrinsics.\n\nFixes: 07db4a975094 (\"examples/distributor: new sample app\")\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\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 4e74f8f..87344ac 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((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\trte_prefetch0((void *)bufs[0]);\n+\t\t\trte_prefetch0((void *)bufs[1]);\n+\t\t\trte_prefetch0((void *)bufs[2]);\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((void *)bufs[i + 3], 0);\n+\t\t\t\trte_prefetch0((void *)bufs[i + 3]);\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/3" ] }{ "id": 10394, "url": "