get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60607,
    "url": "https://patches.dpdk.org/api/patches/60607/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20191007110809.62801-5-bruce.richardson@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": "<20191007110809.62801-5-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191007110809.62801-5-bruce.richardson@intel.com",
    "date": "2019-10-07T11:08:07",
    "name": "[v7,4/6] examples/ioat: add two threads configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9bc3ee889a25ac092e133a486d243f2d3a18d3f2",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20191007110809.62801-5-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 6718,
            "url": "https://patches.dpdk.org/api/series/6718/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6718",
            "date": "2019-10-07T11:08:03",
            "name": "examples/ioat: sample app for ioat driver",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/6718/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/60607/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/60607/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 614631C299;\n\tMon,  7 Oct 2019 13:08:35 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 18F411C22B\n\tfor <dev@dpdk.org>; Mon,  7 Oct 2019 13:08:32 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Oct 2019 04:08:32 -0700",
            "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.2])\n\tby orsmga002.jf.intel.com with ESMTP; 07 Oct 2019 04:08:31 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.67,268,1566889200\"; d=\"scan'208\";a=\"205041061\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marcin Baran <marcinx.baran@intel.com>,\n\tPawel Modrak <pawelx.modrak@intel.com>,\n\tBruce Richardson <bruce.richardson@intel.com>",
        "Date": "Mon,  7 Oct 2019 12:08:07 +0100",
        "Message-Id": "<20191007110809.62801-5-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20191007110809.62801-1-bruce.richardson@intel.com>",
        "References": "<20190920073714.1314-1-marcinx.baran@intel.com>\n\t<20191007110809.62801-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 4/6] examples/ioat: add two threads\n\tconfiguration",
        "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": "From: Pawel Modrak <pawelx.modrak@intel.com>\n\nAdded possibility to use two lcores: first for packet receiving and\ncopying, second for packets sending.\n\nSigned-off-by: Pawel Modrak <pawelx.modrak@intel.com>\nSigned-off-by: Marcin Baran <marcinx.baran@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n examples/ioat/ioatfwd.c | 47 +++++++++++++++++++++++++++++++++++++----\n 1 file changed, 43 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c\nindex a38b6700b..2fc0b1173 100644\n--- a/examples/ioat/ioatfwd.c\n+++ b/examples/ioat/ioatfwd.c\n@@ -161,7 +161,6 @@ ioat_enqueue_packets(struct rte_mbuf **pkts,\n \trte_mempool_put_bulk(ioat_pktmbuf_pool, (void *)&pkts_copy[i],\n \t\tnb_rx - i);\n \n-\n \treturn ret;\n }\n \n@@ -264,6 +263,36 @@ ioat_tx_port(struct rxtx_port_config *tx_config)\n \t}\n }\n \n+/* Main rx processing loop for IOAT rawdev. */\n+static void\n+rx_main_loop(void)\n+{\n+\tuint16_t i;\n+\tuint16_t nb_ports = cfg.nb_ports;\n+\n+\tRTE_LOG(INFO, IOAT, \"Entering main rx loop for copy on lcore %u\\n\",\n+\t\trte_lcore_id());\n+\n+\twhile (!force_quit)\n+\t\tfor (i = 0; i < nb_ports; i++)\n+\t\t\tioat_rx_port(&cfg.ports[i]);\n+}\n+\n+/* Main tx processing loop for hardware copy. */\n+static void\n+tx_main_loop(void)\n+{\n+\tuint16_t i;\n+\tuint16_t nb_ports = cfg.nb_ports;\n+\n+\tRTE_LOG(INFO, IOAT, \"Entering main tx loop for copy on lcore %u\\n\",\n+\t\trte_lcore_id());\n+\n+\twhile (!force_quit)\n+\t\tfor (i = 0; i < nb_ports; i++)\n+\t\t\tioat_tx_port(&cfg.ports[i]);\n+}\n+\n /* Main rx and tx loop if only one slave lcore available */\n static void\n rxtx_main_loop(void)\n@@ -288,9 +317,19 @@ static void start_forwarding_cores(void)\n \tRTE_LOG(INFO, IOAT, \"Entering %s on lcore %u\\n\",\n \t\t__func__, rte_lcore_id());\n \n-\tlcore_id = rte_get_next_lcore(lcore_id, true, true);\n-\trte_eal_remote_launch((lcore_function_t *)rxtx_main_loop,\n-\t\tNULL, lcore_id);\n+\tif (cfg.nb_lcores == 1) {\n+\t\tlcore_id = rte_get_next_lcore(lcore_id, true, true);\n+\t\trte_eal_remote_launch((lcore_function_t *)rxtx_main_loop,\n+\t\t\tNULL, lcore_id);\n+\t} else if (cfg.nb_lcores > 1) {\n+\t\tlcore_id = rte_get_next_lcore(lcore_id, true, true);\n+\t\trte_eal_remote_launch((lcore_function_t *)rx_main_loop,\n+\t\t\tNULL, lcore_id);\n+\n+\t\tlcore_id = rte_get_next_lcore(lcore_id, true, true);\n+\t\trte_eal_remote_launch((lcore_function_t *)tx_main_loop, NULL,\n+\t\t\tlcore_id);\n+\t}\n }\n \n /* Display usage */\n",
    "prefixes": [
        "v7",
        "4/6"
    ]
}