get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 3183,
    "url": "http://patches.dpdk.org/api/patches/3183/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1423728996-3004-15-git-send-email-cunming.liang@intel.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": "<1423728996-3004-15-git-send-email-cunming.liang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1423728996-3004-15-git-send-email-cunming.liang@intel.com",
    "date": "2015-02-12T08:16:31",
    "name": "[dpdk-dev,v5,14/19] eal: set _lcore_id and _socket_id to (-1) by default",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "30c90db5a0ef38ae37630bc282083cd31b46780a",
    "submitter": {
        "id": 46,
        "url": "http://patches.dpdk.org/api/people/46/?format=api",
        "name": "Cunming Liang",
        "email": "cunming.liang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1423728996-3004-15-git-send-email-cunming.liang@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/3183/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/3183/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 775589AB8;\n\tThu, 12 Feb 2015 09:17:40 +0100 (CET)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id A7DDD5A6A\n\tfor <dev@dpdk.org>; Thu, 12 Feb 2015 09:17:35 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 12 Feb 2015 00:17:34 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 12 Feb 2015 00:17:33 -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 t1C8HUqs013173;\n\tThu, 12 Feb 2015 16:17:30 +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 t1C8HRpe003161; Thu, 12 Feb 2015 16:17:29 +0800",
            "(from cliang18@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t1C8HRbY003157; \n\tThu, 12 Feb 2015 16:17:27 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.09,564,1418112000\"; d=\"scan'208\";a=\"684648049\"",
        "From": "Cunming Liang <cunming.liang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 12 Feb 2015 16:16:31 +0800",
        "Message-Id": "<1423728996-3004-15-git-send-email-cunming.liang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1423728996-3004-1-git-send-email-cunming.liang@intel.com>",
        "References": "<1422842559-13617-1-git-send-email-cunming.liang@intel.com>\n\t<1423728996-3004-1-git-send-email-cunming.liang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 14/19] eal: set _lcore_id and _socket_id to\n\t(-1) by default",
        "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": "For those none EAL thread, *_lcore_id* shall always be LCORE_ID_ANY.\nThe libraries using *_lcore_id* as index need to take care.\n*_socket_id* always be SOCKET_ID_ANY unitl the thread changes the affinity\nby rte_thread_set_affinity()\n\nSigned-off-by: Cunming Liang <cunming.liang@intel.com>\n---\n v5 changes:\n    define LCORE_ID_ANY as UINT32_MAX      \n\n lib/librte_eal/bsdapp/eal/eal_thread.c    | 4 ++--\n lib/librte_eal/common/include/rte_lcore.h | 4 ++--\n lib/librte_eal/linuxapp/eal/eal_thread.c  | 4 ++--\n 3 files changed, 6 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_thread.c b/lib/librte_eal/bsdapp/eal/eal_thread.c\nindex e16f685..ca95c72 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_thread.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_thread.c\n@@ -56,8 +56,8 @@\n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n \n-RTE_DEFINE_PER_LCORE(unsigned, _lcore_id);\n-RTE_DEFINE_PER_LCORE(unsigned, _socket_id);\n+RTE_DEFINE_PER_LCORE(unsigned, _lcore_id) = LCORE_ID_ANY;\n+RTE_DEFINE_PER_LCORE(unsigned, _socket_id) = (unsigned)SOCKET_ID_ANY;\n RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n \n /*\ndiff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h\nindex 6a5bcbc..ad47221 100644\n--- a/lib/librte_eal/common/include/rte_lcore.h\n+++ b/lib/librte_eal/common/include/rte_lcore.h\n@@ -48,7 +48,7 @@\n extern \"C\" {\n #endif\n \n-#define LCORE_ID_ANY -1    /**< Any lcore. */\n+#define LCORE_ID_ANY     UINT32_MAX       /**< Any lcore. */\n \n #if defined(__linux__)\n \ttypedef\tcpu_set_t rte_cpuset_t;\n@@ -87,7 +87,7 @@ RTE_DECLARE_PER_LCORE(rte_cpuset_t, _cpuset); /**< Per thread \"cpuset\". */\n /**\n  * Return the ID of the execution unit we are running on.\n  * @return\n- *  Logical core ID\n+ *  Logical core ID(in EAL thread) or LCORE_ID_ANY(in non-EAL thread)\n  */\n static inline unsigned\n rte_lcore_id(void)\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_thread.c b/lib/librte_eal/linuxapp/eal/eal_thread.c\nindex 57b0515..5635c7d 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_thread.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_thread.c\n@@ -56,8 +56,8 @@\n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n \n-RTE_DEFINE_PER_LCORE(unsigned, _lcore_id);\n-RTE_DEFINE_PER_LCORE(unsigned, _socket_id);\n+RTE_DEFINE_PER_LCORE(unsigned, _lcore_id) = LCORE_ID_ANY;\n+RTE_DEFINE_PER_LCORE(unsigned, _socket_id) = (unsigned)SOCKET_ID_ANY;\n RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n \n /*\n",
    "prefixes": [
        "dpdk-dev",
        "v5",
        "14/19"
    ]
}