get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 36,
    "url": "https://patches.dpdk.org/api/patches/36/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1404808110-16314-1-git-send-email-simon.kuenzer@neclab.eu/",
    "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": "<1404808110-16314-1-git-send-email-simon.kuenzer@neclab.eu>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1404808110-16314-1-git-send-email-simon.kuenzer@neclab.eu",
    "date": "2014-07-08T08:28:30",
    "name": "[dpdk-dev] eal/linuxapp: Add parameter to specify master lcore id",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3d8ec3b984962b7ab6a07eb5297ecdbe975a9d64",
    "submitter": {
        "id": 22,
        "url": "https://patches.dpdk.org/api/people/22/?format=api",
        "name": "Simon Kuenzer",
        "email": "simon.kuenzer@neclab.eu"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1404808110-16314-1-git-send-email-simon.kuenzer@neclab.eu/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/36/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/36/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<simon.kuenzer@neclab.eu>",
        "Received": [
            "from mailer1.neclab.eu (mailer1.neclab.eu [195.37.70.40])\n\tby dpdk.org (Postfix) with ESMTP id 0D34B5960\n\tfor <dev@dpdk.org>; Tue,  8 Jul 2014 11:14:00 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby mailer1.neclab.eu (Postfix) with ESMTP id F1E86FFFCF\n\tfor <dev@dpdk.org>; Tue,  8 Jul 2014 11:14:21 +0200 (CEST)",
            "from mailer1.neclab.eu ([127.0.0.1])\n\tby localhost (atlas-a.office.hd [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0wrYpNUAYorH for <dev@dpdk.org>;\n\tTue,  8 Jul 2014 11:14:21 +0200 (CEST)",
            "from METHONE.office.hd (methone.office.hd [192.168.24.54])\n\t(using TLSv1 with cipher AES128-SHA (128/128 bits))\n\t(No client certificate requested)\n\tby mailer1.neclab.eu (Postfix) with ESMTPS id D968BFFC42\n\tfor <dev@dpdk.org>; Tue,  8 Jul 2014 11:14:16 +0200 (CEST)",
            "from localhost.localdomain (10.1.2.203) by skoll.office.hd\n\t(192.168.125.11) with Microsoft SMTP Server (TLS) id 14.1.323.3;\n\tTue, 8 Jul 2014 11:14:16 +0200"
        ],
        "X-Virus-Scanned": "Amavisd on Debian GNU/Linux (netlab.nec.de)",
        "X-ENC": [
            "Last-Hop-TLS-encrypted",
            "Last-Hop-TLS-encrypted"
        ],
        "From": "Simon Kuenzer <simon.kuenzer@neclab.eu>",
        "To": "<dev@dpdk.org>",
        "Date": "Tue, 8 Jul 2014 10:28:30 +0200",
        "Message-ID": "<1404808110-16314-1-git-send-email-simon.kuenzer@neclab.eu>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.1.2.203]",
        "Subject": "[dpdk-dev] [PATCH] eal/linuxapp: Add parameter to specify master\n\tlcore id",
        "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>",
        "X-List-Received-Date": "Tue, 08 Jul 2014 09:14:00 -0000"
    },
    "content": "This commit enables users to specify the lcore id that\nis used as master lcore.\n\nSigned-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>\n---\n lib/librte_eal/linuxapp/eal/eal.c |   33 +++++++++++++++++++++++++++++++++\n 1 file changed, 33 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 573fd06..4ad5b9b 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -101,6 +101,7 @@\n #define OPT_XEN_DOM0    \"xen-dom0\"\n #define OPT_CREATE_UIO_DEV \"create-uio-dev\"\n #define OPT_VFIO_INTR    \"vfio-intr\"\n+#define OPT_MASTER_LCORE \"master-lcore\"\n \n #define RTE_EAL_BLACKLIST_SIZE\t0x100\n \n@@ -336,6 +337,7 @@ eal_usage(const char *prgname)\n \t       \"[--proc-type primary|secondary|auto] \\n\\n\"\n \t       \"EAL options:\\n\"\n \t       \"  -c COREMASK  : A hexadecimal bitmask of cores to run on\\n\"\n+\t       \"  --\"OPT_MASTER_LCORE\" ID: Core ID that is used as master\\n\"\n \t       \"  -n NUM       : Number of memory channels\\n\"\n \t\t   \"  -v           : Display version information on startup\\n\"\n \t       \"  -d LIB.so    : add driver (can be used multiple times)\\n\"\n@@ -468,6 +470,21 @@ eal_parse_coremask(const char *coremask)\n \treturn 0;\n }\n \n+/* Changes the lcore id of the master thread */\n+static int\n+eal_parse_master_lcore(const char *arg)\n+{\n+\tstruct rte_config *cfg = rte_eal_get_configuration();\n+\tint master_lcore = atoi(arg);\n+\n+\tif (!(master_lcore >= 0 && master_lcore < RTE_MAX_LCORE))\n+\t\treturn -1;\n+\tif (cfg->lcore_role[master_lcore] != ROLE_RTE)\n+\t\treturn -1;\n+\tcfg->master_lcore = master_lcore;\n+\treturn 0;\n+}\n+\n static int\n eal_parse_syslog(const char *facility)\n {\n@@ -653,6 +670,7 @@ eal_parse_args(int argc, char **argv)\n \t\t{OPT_HUGE_DIR, 1, 0, 0},\n \t\t{OPT_NO_SHCONF, 0, 0, 0},\n \t\t{OPT_PROC_TYPE, 1, 0, 0},\n+\t\t{OPT_MASTER_LCORE, 1, 0, 0},\n \t\t{OPT_FILE_PREFIX, 1, 0, 0},\n \t\t{OPT_SOCKET_MEM, 1, 0, 0},\n \t\t{OPT_PCI_WHITELIST, 1, 0, 0},\n@@ -802,6 +820,21 @@ eal_parse_args(int argc, char **argv)\n \t\t\telse if (!strcmp(lgopts[option_index].name, OPT_PROC_TYPE)) {\n \t\t\t\tinternal_config.process_type = eal_parse_proc_type(optarg);\n \t\t\t}\n+\t\t\telse if (!strcmp(lgopts[option_index].name, OPT_MASTER_LCORE)) {\n+\t\t\t\tif (!coremask_ok) {\n+\t\t\t\t\tRTE_LOG(ERR, EAL, \"please specify the master \"\n+\t\t\t\t\t\t\t\"lcore id after specifying \"\n+\t\t\t\t\t\t\t\"the coremask\\n\");\n+\t\t\t\t\teal_usage(prgname);\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n+\t\t\t\tif (eal_parse_master_lcore(optarg) < 0) {\n+\t\t\t\t\tRTE_LOG(ERR, EAL, \"invalid parameter for --\"\n+\t\t\t\t\t\t\tOPT_MASTER_LCORE \"\\n\");\n+\t\t\t\t\teal_usage(prgname);\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n+\t\t\t}\n \t\t\telse if (!strcmp(lgopts[option_index].name, OPT_FILE_PREFIX)) {\n \t\t\t\tinternal_config.hugefile_prefix = optarg;\n \t\t\t}\n",
    "prefixes": [
        "dpdk-dev"
    ]
}