get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94872,
    "url": "https://patches.dpdk.org/api/patches/94872/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/c3c14f1df7ca1c7ccafd162f38d8d1a5085a9cc3.1624629506.git.anatoly.burakov@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": "<c3c14f1df7ca1c7ccafd162f38d8d1a5085a9cc3.1624629506.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/c3c14f1df7ca1c7ccafd162f38d8d1a5085a9cc3.1624629506.git.anatoly.burakov@intel.com",
    "date": "2021-06-25T14:00:10",
    "name": "[v2,7/7] l3fwd-power: support multiqueue in PMD pmgmt modes",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "890a4e40d9baee2801496d4b58a2d0d025e737f2",
    "submitter": {
        "id": 4,
        "url": "https://patches.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/c3c14f1df7ca1c7ccafd162f38d8d1a5085a9cc3.1624629506.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 17490,
            "url": "https://patches.dpdk.org/api/series/17490/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17490",
            "date": "2021-06-25T14:00:03",
            "name": "Enhancements for PMD power management",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/17490/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94872/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/94872/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D0E4CA0547;\n\tFri, 25 Jun 2021 16:01:26 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D2B90410FD;\n\tFri, 25 Jun 2021 16:01:02 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 32B2C410EB\n for <dev@dpdk.org>; Fri, 25 Jun 2021 16:00:51 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Jun 2021 07:00:29 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.223.53])\n by FMSMGA003.fm.intel.com with ESMTP; 25 Jun 2021 07:00:27 -0700"
        ],
        "IronPort-SDR": [
            "\n bh6mgKW1OYv4JwJUMcFy08qFHMZ42XMUwQEnHtUa4/sAEB2GetKe3SWCPQhAXZLEXN8hU7l6Ug\n 8di71d2T5+uw==",
            "\n t/P66xuSkJKYU5+X2fQ+xLVx9T0lxj0an1h3EinRmlP6vhCNd3CEm6l49yu8oAjG2T7Vm253hT\n xpeRCcKZAtNA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10026\"; a=\"204664537\"",
            "E=Sophos;i=\"5.83,298,1616482800\"; d=\"scan'208\";a=\"204664537\"",
            "E=Sophos;i=\"5.83,298,1616482800\"; d=\"scan'208\";a=\"481858783\""
        ],
        "X-ExtLoop1": "1",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org,\n\tDavid Hunt <david.hunt@intel.com>",
        "Cc": "ciara.loftus@intel.com",
        "Date": "Fri, 25 Jun 2021 14:00:10 +0000",
        "Message-Id": "\n <c3c14f1df7ca1c7ccafd162f38d8d1a5085a9cc3.1624629506.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<cover.1624629506.git.anatoly.burakov@intel.com>",
        "References": "<cover.1622548381.git.anatoly.burakov@intel.com>\n <cover.1624629506.git.anatoly.burakov@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 7/7] l3fwd-power: support multiqueue in PMD\n pmgmt modes",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Currently, l3fwd-power enforces the limitation of having one queue per\nlcore. This is no longer necessary, so remove the limitation, and always\nmark the last queue in qconf as the power save queue.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n examples/l3fwd-power/main.c | 39 +++++++++++++++++++++++--------------\n 1 file changed, 24 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex f8dfed1634..3057c06936 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -2498,6 +2498,27 @@ mode_to_str(enum appmode mode)\n \t}\n }\n \n+static void\n+pmd_pmgmt_set_up(unsigned int lcore, uint16_t portid, uint16_t qid, bool last)\n+{\n+\tint ret;\n+\n+\tret = rte_power_ethdev_pmgmt_queue_enable(lcore, portid,\n+\t\t\tqid, pmgmt_type);\n+\tif (ret < 0)\n+\t\trte_exit(EXIT_FAILURE,\n+\t\t\t\"rte_power_ethdev_pmgmt_queue_enable: err=%d, port=%d\\n\",\n+\t\t\tret, portid);\n+\n+\tif (!last)\n+\t\treturn;\n+\tret = rte_power_ethdev_pmgmt_queue_set_power_save(lcore, portid, qid);\n+\tif (ret < 0)\n+\t\trte_exit(EXIT_FAILURE,\n+\t\t\t\"rte_power_ethdev_pmgmt_queue_set_power_save: err=%d, port=%d\\n\",\n+\t\t\tret, portid);\n+}\n+\n int\n main(int argc, char **argv)\n {\n@@ -2723,12 +2744,6 @@ main(int argc, char **argv)\n \t\tprintf(\"\\nInitializing rx queues on lcore %u ... \", lcore_id );\n \t\tfflush(stdout);\n \n-\t\t/* PMD power management mode can only do 1 queue per core */\n-\t\tif (app_mode == APP_MODE_PMD_MGMT && qconf->n_rx_queue > 1) {\n-\t\t\trte_exit(EXIT_FAILURE,\n-\t\t\t\t\"In PMD power management mode, only one queue per lcore is allowed\\n\");\n-\t\t}\n-\n \t\t/* init RX queues */\n \t\tfor(queue = 0; queue < qconf->n_rx_queue; ++queue) {\n \t\t\tstruct rte_eth_rxconf rxq_conf;\n@@ -2767,15 +2782,9 @@ main(int argc, char **argv)\n \t\t\t\t\t\t \"Fail to add ptype cb\\n\");\n \t\t\t}\n \n-\t\t\tif (app_mode == APP_MODE_PMD_MGMT) {\n-\t\t\t\tret = rte_power_ethdev_pmgmt_queue_enable(\n-\t\t\t\t\t\tlcore_id, portid, queueid,\n-\t\t\t\t\t\tpmgmt_type);\n-\t\t\t\tif (ret < 0)\n-\t\t\t\t\trte_exit(EXIT_FAILURE,\n-\t\t\t\t\t\t\"rte_power_ethdev_pmgmt_queue_enable: err=%d, port=%d\\n\",\n-\t\t\t\t\t\t\tret, portid);\n-\t\t\t}\n+\t\t\tif (app_mode == APP_MODE_PMD_MGMT)\n+\t\t\t\tpmd_pmgmt_set_up(lcore_id, portid, queueid,\n+\t\t\t\t\tqueue == (qconf->n_rx_queue - 1));\n \t\t}\n \t}\n \n",
    "prefixes": [
        "v2",
        "7/7"
    ]
}