get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41545,
    "url": "http://patches.dpdk.org/api/patches/41545/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180626092317.11031-6-david.hunt@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": "<20180626092317.11031-6-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180626092317.11031-6-david.hunt@intel.com",
    "date": "2018-06-26T09:23:13",
    "name": "[v3,5/9] examples/vm_power: add thread for oob core monitor",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "99b863332d649c3f3765d4ab87f4092f4ef222c3",
    "submitter": {
        "id": 342,
        "url": "http://patches.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@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/20180626092317.11031-6-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 235,
            "url": "http://patches.dpdk.org/api/series/235/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=235",
            "date": "2018-06-26T09:23:08",
            "name": "examples/vm_power: 100% Busy Polling",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/235/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41545/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41545/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 1CCD41B4E0;\n\tTue, 26 Jun 2018 11:23:48 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id E21261B4B5\n\tfor <dev@dpdk.org>; Tue, 26 Jun 2018 11:23:34 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Jun 2018 02:23:34 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.223.64])\n\tby orsmga001.jf.intel.com with ESMTP; 26 Jun 2018 02:23:33 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,274,1526367600\"; d=\"scan'208\";a=\"67785369\"",
        "From": "David Hunt <david.hunt@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.hunt@intel.com",
        "Date": "Tue, 26 Jun 2018 10:23:13 +0100",
        "Message-Id": "<20180626092317.11031-6-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180626092317.11031-1-david.hunt@intel.com>",
        "References": "<20180621132414.39047-2-david.hunt@intel.com>\n\t<20180626092317.11031-1-david.hunt@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 5/9] examples/vm_power: add thread for oob\n\tcore monitor",
        "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://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Change the app to now require three cores, as the third core\nwill be used to run the oob montoring thread.\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\nAcked-by: Radu Nicolau <radu.nicolau@intel.com>\n---\n examples/vm_power_manager/main.c | 37 +++++++++++++++++++++++++++++---\n 1 file changed, 34 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c\nindex cc2a1289c..4c6b5a990 100644\n--- a/examples/vm_power_manager/main.c\n+++ b/examples/vm_power_manager/main.c\n@@ -29,6 +29,7 @@\n #include \"channel_monitor.h\"\n #include \"power_manager.h\"\n #include \"vm_power_cli.h\"\n+#include \"oob_monitor.h\"\n #include \"parse.h\"\n #include <rte_pmd_ixgbe.h>\n #include <rte_pmd_i40e.h>\n@@ -269,6 +270,17 @@ run_monitor(__attribute__((unused)) void *arg)\n \treturn 0;\n }\n \n+static int\n+run_core_monitor(__attribute__((unused)) void *arg)\n+{\n+\tif (branch_monitor_init() < 0) {\n+\t\tprintf(\"Unable to initialize core monitor\\n\");\n+\t\treturn -1;\n+\t}\n+\trun_branch_monitor();\n+\treturn 0;\n+}\n+\n static void\n sig_handler(int signo)\n {\n@@ -287,12 +299,15 @@ main(int argc, char **argv)\n \tunsigned int nb_ports;\n \tstruct rte_mempool *mbuf_pool;\n \tuint16_t portid;\n+\tstruct core_info *ci;\n \n \n \tret = core_info_init();\n \tif (ret < 0)\n \t\trte_panic(\"Cannot allocate core info\\n\");\n \n+\tci = get_core_info();\n+\n \tret = rte_eal_init(argc, argv);\n \tif (ret < 0)\n \t\trte_panic(\"Cannot init EAL\\n\");\n@@ -367,16 +382,23 @@ main(int argc, char **argv)\n \t\t}\n \t}\n \n+\tcheck_all_ports_link_status(enabled_port_mask);\n+\n \tlcore_id = rte_get_next_lcore(-1, 1, 0);\n \tif (lcore_id == RTE_MAX_LCORE) {\n-\t\tRTE_LOG(ERR, EAL, \"A minimum of two cores are required to run \"\n+\t\tRTE_LOG(ERR, EAL, \"A minimum of three cores are required to run \"\n \t\t\t\t\"application\\n\");\n \t\treturn 0;\n \t}\n-\n-\tcheck_all_ports_link_status(enabled_port_mask);\n+\tprintf(\"Running channel monitor on lcore id %d\\n\", lcore_id);\n \trte_eal_remote_launch(run_monitor, NULL, lcore_id);\n \n+\tlcore_id = rte_get_next_lcore(lcore_id, 1, 0);\n+\tif (lcore_id == RTE_MAX_LCORE) {\n+\t\tRTE_LOG(ERR, EAL, \"A minimum of three cores are required to run \"\n+\t\t\t\t\"application\\n\");\n+\t\treturn 0;\n+\t}\n \tif (power_manager_init() < 0) {\n \t\tprintf(\"Unable to initialize power manager\\n\");\n \t\treturn -1;\n@@ -385,8 +407,17 @@ main(int argc, char **argv)\n \t\tprintf(\"Unable to initialize channel manager\\n\");\n \t\treturn -1;\n \t}\n+\n+\tprintf(\"Running core monitor on lcore id %d\\n\", lcore_id);\n+\trte_eal_remote_launch(run_core_monitor, NULL, lcore_id);\n+\n \trun_cli(NULL);\n \n+\tbranch_monitor_exit();\n+\n \trte_eal_mp_wait_lcore();\n+\n+\tfree(ci->cd);\n+\n \treturn 0;\n }\n",
    "prefixes": [
        "v3",
        "5/9"
    ]
}