Show a patch.

GET /api/patches/337/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 337,
    "url": "http://patches.dpdk.org/api/patches/337/",
    "web_url": "http://patches.dpdk.org/patch/337/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<7F861DC0615E0C47A872E6F3C5FCDDBD011A9934@BPXM14GP.gisp.nec.co.jp>",
    "date": "2014-09-11T07:48:31",
    "name": "[dpdk-dev,memnic,4/7] pmd: use compiler barrier",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ada6917ad3afdfe3f5f7cf64c597b00c292f99a3",
    "submitter": {
        "id": 38,
        "url": "http://patches.dpdk.org/api/people/38/",
        "name": "Hiroshi Shimamoto",
        "email": "h-shimamoto@ct.jp.nec.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/337/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/337/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/337/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Date": "Thu, 11 Sep 2014 07:48:31 +0000",
        "x-originating-ip": "[10.205.5.123]",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Thread-Index": "Ac/NlMCoOHz0IbAaSSqSD302Hm2F/A==",
        "Content-Type": "text/plain; charset=\"iso-2022-jp\"",
        "Delivered-To": "patchwork@dpdk.org",
        "Accept-Language": "ja-JP, en-US",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 384F55909;\n\tThu, 11 Sep 2014 09:52:50 +0200 (CEST)",
            "from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [210.143.35.52])\n\tby dpdk.org (Postfix) with ESMTP id 128495901\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 09:52:47 +0200 (CEST)",
            "from mailgate3.nec.co.jp ([10.7.69.195])\n\tby tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id s8B7vxMc013433\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 16:57:59 +0900 (JST)",
            "from mailsv.nec.co.jp (imss62.nec.co.jp [10.7.69.157]) by\n\tmailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP\n\tid s8B7vxx08641 for <dev@dpdk.org>;\n\tThu, 11 Sep 2014 16:57:59 +0900 (JST)",
            "from mail02.kamome.nec.co.jp (mail02.kamome.nec.co.jp [10.25.43.5])\n\tby mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id s8B7vw8V021635\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 16:57:58 +0900 (JST)",
            "from bpxc99gp.gisp.nec.co.jp ([10.38.151.143] [10.38.151.143]) by\n\tmail03.kamome.nec.co.jp with ESMTP id BT-MMP-1866691;\n\tThu, 11 Sep 2014 16:48:32 +0900",
            "from BPXM14GP.gisp.nec.co.jp ([169.254.1.238]) by\n\tBPXC15GP.gisp.nec.co.jp ([10.38.151.143]) with mapi id 14.02.0328.011;\n\tThu, 11 Sep 2014 16:48:31 +0900"
        ],
        "Subject": "[dpdk-dev] [memnic PATCH 4/7] pmd: use compiler barrier",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Content-Language": "ja-JP",
        "Message-ID": "<7F861DC0615E0C47A872E6F3C5FCDDBD011A9934@BPXM14GP.gisp.nec.co.jp>",
        "X-MS-Has-Attach": "",
        "From": "Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "Hayato Momma <h-momma@ce.jp.nec.com>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Precedence": "list",
        "Thread-Topic": "[memnic PATCH 4/7] pmd: use compiler barrier",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "MIME-Version": "1.0",
        "X-MS-TNEF-Correlator": "",
        "Content-Transfer-Encoding": "quoted-printable",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org"
    },
    "content": "From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>\n\nx86 can keep store ordering with standard operations.\n\nUsing memory barrier is much expensive in main packet processing loop.\nRemoving this improves xmit/recv packet performance.\n\nWe can see performance improvements with memnic-tester.\nUsing Xeon E5-2697 v2 @ 2.70GHz, 4 vCPU.\n size |  before  |  after\n   64 | 4.18Mpps | 4.59Mpps\n  128 | 3.85Mpps | 4.87Mpps\n  256 | 4.01Mpps | 4.72Mpps\n  512 | 3.52Mpps | 4.41Mpps\n 1024 | 3.18Mpps | 3.64Mpps\n 1280 | 2.86Mpps | 3.15Mpps\n 1518 | 2.59Mpps | 2.87Mpps\n\nNote: we have to take care if we use temporal cache.\n\nSigned-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>\nReviewed-by: Hayato Momma <h-momma@ce.jp.nec.com>\n---\n pmd/pmd_memnic.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/pmd/pmd_memnic.c b/pmd/pmd_memnic.c\nindex 8341da7..c22a14d 100644\n--- a/pmd/pmd_memnic.c\n+++ b/pmd/pmd_memnic.c\n@@ -316,7 +316,7 @@ static uint16_t memnic_recv_pkts(void *rx_queue,\n \t\tbytes += p->len;\n \n drop:\n-\t\trte_mb();\n+\t\trte_compiler_barrier();\n \t\tp->status = MEMNIC_PKT_ST_FREE;\n \n \t\tif (++idx >= MEMNIC_NR_PACKET)\n@@ -403,7 +403,7 @@ retry:\n \t\tpkts++;\n \t\tbytes += pkt_len;\n \n-\t\trte_mb();\n+\t\trte_compiler_barrier();\n \t\tp->status = MEMNIC_PKT_ST_FILLED;\n \n \t\trte_pktmbuf_free(tx_pkts[nr]);\n",
    "prefixes": [
        "dpdk-dev",
        "memnic",
        "4/7"
    ]
}