get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2267,
    "url": "https://patches.dpdk.org/api/patches/2267/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/D9B9B7EDAA4D17468E64B453458633E4044E9D21@IRSMSX108.ger.corp.intel.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": "<D9B9B7EDAA4D17468E64B453458633E4044E9D21@IRSMSX108.ger.corp.intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/D9B9B7EDAA4D17468E64B453458633E4044E9D21@IRSMSX108.ger.corp.intel.com",
    "date": "2015-01-13T09:23:16",
    "name": "[dpdk-dev] lib/librte_ether: change socket_id passed to rte_memzone_reserve",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a31295d9e8829dee26a9c0f3112ba128ad3d8246",
    "submitter": {
        "id": 152,
        "url": "https://patches.dpdk.org/api/people/152/?format=api",
        "name": "Cian Ferriter",
        "email": "cian.ferriter@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/D9B9B7EDAA4D17468E64B453458633E4044E9D21@IRSMSX108.ger.corp.intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2267/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2267/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 3069E5A74;\n\tTue, 13 Jan 2015 10:23:27 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 19FE85A71\n\tfor <dev@dpdk.org>; Tue, 13 Jan 2015 10:23:18 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga102.jf.intel.com with ESMTP; 13 Jan 2015 01:20:38 -0800",
            "from irsmsx101.ger.corp.intel.com ([163.33.3.153])\n\tby orsmga001.jf.intel.com with ESMTP; 13 Jan 2015 01:23:17 -0800",
            "from irsmsx108.ger.corp.intel.com ([169.254.11.71]) by\n\tIRSMSX101.ger.corp.intel.com ([169.254.1.126]) with mapi id\n\t14.03.0195.001; Tue, 13 Jan 2015 09:23:16 +0000"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.07,748,1413270000\"; d=\"scan'208\";a=\"636509426\"",
        "From": "\"Ferriter, Cian\" <cian.ferriter@intel.com>",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "Thread-Topic": "[PATCH] lib/librte_ether: change socket_id passed to\n\trte_memzone_reserve",
        "Thread-Index": "AQHQLxJxCtZNxstVx0ajqB3SBqs+d5y9xuPQ",
        "Date": "Tue, 13 Jan 2015 09:23:16 +0000",
        "Message-ID": "<D9B9B7EDAA4D17468E64B453458633E4044E9D21@IRSMSX108.ger.corp.intel.com>",
        "References": "<1421140920-9964-1-git-send-email-cian.ferriter@intel.com>",
        "In-Reply-To": "<1421140920-9964-1-git-send-email-cian.ferriter@intel.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-originating-ip": "[163.33.239.181]",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "MIME-Version": "1.0",
        "Subject": "Re: [dpdk-dev] [PATCH] lib/librte_ether: change socket_id passed to\n\trte_memzone_reserve",
        "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": "Passing a socket id of \"rte_socket_id()\" can cause problems in non DPDK applications as there is a dependency on the current logical core we are running on.\nPassing \" rte_lcore_to_socket_id(rte_get_master_lcore())\" as the socket id to rte_memzone_reserve resolves these issues as the master lcore doesn't change.\n\n-----Original Message-----\nFrom: Ferriter, Cian \nSent: Tuesday, January 13, 2015 9:22 AM\nTo: dev@dpdk.org\nCc: Ferriter, Cian\nSubject: [PATCH] lib/librte_ether: change socket_id passed to rte_memzone_reserve\n\nChange the socket id that is passed to rte_memzone_reserve from the socket id of current logical core to the socket id of the master_lcore.\n---\n lib/librte_ether/rte_ethdev.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)  mode change 100644 => 100755 lib/librte_ether/rte_ethdev.c\n\n--\n1.7.4.1",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c old mode 100644 new mode 100755 index 95f2ceb..835540d\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -184,7 +184,7 @@ rte_eth_dev_data_alloc(void)\n \tif (rte_eal_process_type() == RTE_PROC_PRIMARY){\n \t\tmz = rte_memzone_reserve(MZ_RTE_ETH_DEV_DATA,\n \t\t\t\tRTE_MAX_ETHPORTS * sizeof(*rte_eth_dev_data),\n-\t\t\t\trte_socket_id(), flags);\n+\t\t\t\trte_lcore_to_socket_id(rte_get_master_lcore()), flags);\n \t} else\n \t\tmz = rte_memzone_lookup(MZ_RTE_ETH_DEV_DATA);\n \tif (mz == NULL)\n",
    "prefixes": [
        "dpdk-dev"
    ]
}