get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 34891,
    "url": "http://patches.dpdk.org/api/patches/34891/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180202150232.6611-1-marko.kovacevic@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": "<20180202150232.6611-1-marko.kovacevic@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180202150232.6611-1-marko.kovacevic@intel.com",
    "date": "2018-02-02T15:02:32",
    "name": "[dpdk-dev,v3] doc: update definition of lcore id and lcore index",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0b1b0341e45e46dc39a1a1cab183fd36b7008a1d",
    "submitter": {
        "id": 853,
        "url": "http://patches.dpdk.org/api/people/853/?format=api",
        "name": "Kovacevic, Marko",
        "email": "marko.kovacevic@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180202150232.6611-1-marko.kovacevic@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/34891/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/34891/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 72ED5A49C;\n\tFri,  2 Feb 2018 16:02:59 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id D1126A491;\n\tFri,  2 Feb 2018 16:02:55 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Feb 2018 07:02:53 -0800",
            "from silpixa00399502.ir.intel.com (HELO\n\tsilpixa00399502.ger.corp.intel.com) ([10.237.223.218])\n\tby fmsmga006.fm.intel.com with ESMTP; 02 Feb 2018 07:02:51 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.46,448,1511856000\"; d=\"scan'208\";a=\"200857509\"",
        "From": "Marko Kovacevic <marko.kovacevic@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "john.mcnamara@intel.com, vipin.varghese@intel.com,\n\tbruce.richardson@intel.com, stable@dpdk.org,\n\tMarko Kovacevic <marko.kovacevic@intel.com>",
        "Date": "Fri,  2 Feb 2018 15:02:32 +0000",
        "Message-Id": "<20180202150232.6611-1-marko.kovacevic@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20180201165347.15646-1-marko.kovacevic@intel.com>",
        "References": "<20180201165347.15646-1-marko.kovacevic@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3] doc: update definition of lcore id and lcore\n\tindex",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://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": "<https://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": "Added examples in lcore index for better explanation on\nvarious examples, Sited examples for lcore id.\n\nSigned-off-by: Marko Kovacevic <marko.kovacevic@intel.com>\n\n---\nV3:\n - Rephrased examples for lcore index and id - Bruce\n\nV2:\n - Added clearer description to lcore id - Bruce\n - Reframed examples for lcore index - Bruce\n---\n lib/librte_eal/common/include/rte_lcore.h | 16 ++++++++++++++--\n 1 file changed, 14 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h\nindex d84bcff..0472220 100644\n--- a/lib/librte_eal/common/include/rte_lcore.h\n+++ b/lib/librte_eal/common/include/rte_lcore.h\n@@ -57,7 +57,14 @@ RTE_DECLARE_PER_LCORE(unsigned, _lcore_id);  /**< Per thread \"lcore id\". */\n RTE_DECLARE_PER_LCORE(rte_cpuset_t, _cpuset); /**< Per thread \"cpuset\". */\n \n /**\n- * Return the ID of the execution unit we are running on.\n+ * Return the Application thread ID of the execution unit.\n+ *\n+ * Note: in most cases the lcore id returned here will also correspond\n+ *   to the processor id of the CPU on which the thread is pinned, this\n+ *   will not be the case if the user has explicitly changed the thread to\n+ *   core affinities using --lcores EAL argument e.g. --lcores '(0-3)@10'\n+ *   to run threads with lcore IDs 0, 1, 2 and 3 on physical core 10..\n+ *\n  * @return\n  *  Logical core ID (in EAL thread) or LCORE_ID_ANY (in non-EAL thread)\n  */\n@@ -94,7 +101,12 @@ rte_lcore_count(void)\n \n /**\n  * Return the index of the lcore starting from zero.\n- * The order is physical or given by command line (-l option).\n+ *\n+ * When option -c or -l is given, the index corresponds\n+ * to the order in the list.\n+ * For example:\n+ * -c 0x30, lcore 4 has index 0, and 5 has index 1.\n+ * -l 22,18 lcore 22 has index 0, and 18 has index 1.\n  *\n  * @param lcore_id\n  *   The targeted lcore, or -1 for the current one.\n",
    "prefixes": [
        "dpdk-dev",
        "v3"
    ]
}