get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81239,
    "url": "https://patches.dpdk.org/api/patches/81239/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1602961456-17392-21-git-send-email-timothy.mcdaniel@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": "<1602961456-17392-21-git-send-email-timothy.mcdaniel@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1602961456-17392-21-git-send-email-timothy.mcdaniel@intel.com",
    "date": "2020-10-17T19:04:14",
    "name": "[v5,20/22] event/dlb: add queue and port release",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "089009b4e49a1d890198a5f067f264deffa3391b",
    "submitter": {
        "id": 826,
        "url": "https://patches.dpdk.org/api/people/826/?format=api",
        "name": "Timothy McDaniel",
        "email": "timothy.mcdaniel@intel.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1602961456-17392-21-git-send-email-timothy.mcdaniel@intel.com/mbox/",
    "series": [
        {
            "id": 13076,
            "url": "https://patches.dpdk.org/api/series/13076/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13076",
            "date": "2020-10-17T19:03:54",
            "name": "Add DLB PMD",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/13076/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/81239/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/81239/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 10D64A04DB;\n\tSat, 17 Oct 2020 21:08:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 73FC4D013;\n\tSat, 17 Oct 2020 21:02:53 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 04380CB06\n for <dev@dpdk.org>; Sat, 17 Oct 2020 21:02:34 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Oct 2020 12:02:34 -0700",
            "from txasoft-yocto.an.intel.com ([10.123.72.192])\n by orsmga005.jf.intel.com with ESMTP; 17 Oct 2020 12:02:34 -0700"
        ],
        "IronPort-SDR": [
            "\n 9r+F2NQl7phGlQ37hFmBGKL6o9tIRXnkgyVO1BBJMM00hPT09i/LtgNOcTtbR7RHtzd7WJ8mjV\n 82iWqN6PgP1Q==",
            "\n tcafaMzlsHuOkdDZcCrrcvCmfpMayuNCs5XYG55FpqGIk5AjfKTjPCydc74VetSIoI8xPwWlPC\n QdiG1gjjhoqA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9777\"; a=\"166946673\"",
            "E=Sophos;i=\"5.77,387,1596524400\"; d=\"scan'208\";a=\"166946673\"",
            "E=Sophos;i=\"5.77,387,1596524400\"; d=\"scan'208\";a=\"532137468\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Timothy McDaniel <timothy.mcdaniel@intel.com>",
        "To": "",
        "Cc": "dev@dpdk.org, erik.g.carrillo@intel.com, gage.eads@intel.com,\n harry.van.haaren@intel.com, jerinj@marvell.com",
        "Date": "Sat, 17 Oct 2020 14:04:14 -0500",
        "Message-Id": "<1602961456-17392-21-git-send-email-timothy.mcdaniel@intel.com>",
        "X-Mailer": "git-send-email 1.7.10",
        "In-Reply-To": "<1602961456-17392-1-git-send-email-timothy.mcdaniel@intel.com>",
        "References": "<1596138614-17409-2-git-send-email-timothy.mcdaniel@intel.com>\n <1602961456-17392-1-git-send-email-timothy.mcdaniel@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 20/22] event/dlb: add queue and port release",
        "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 <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": "These entry points are NO-OPS. DLB does not support\nreconfiguring individual queues or ports. The entire device\nmust be reconfigured.\n\nSigned-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>\n---\n drivers/event/dlb/dlb.c | 27 +++++++++++++++++++++++++++\n 1 file changed, 27 insertions(+)",
    "diff": "diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c\nindex 236af7b..2601d8e 100644\n--- a/drivers/event/dlb/dlb.c\n+++ b/drivers/event/dlb/dlb.c\n@@ -158,6 +158,9 @@ dlb_free_qe_mem(struct dlb_port *qm_port)\n \n \trte_free(qm_port->consume_qe);\n \tqm_port->consume_qe = NULL;\n+\n+\trte_memzone_free(dlb_port[qm_port->id][PORT_TYPE(qm_port)].mz);\n+\tdlb_port[qm_port->id][PORT_TYPE(qm_port)].mz = NULL;\n }\n \n static int\n@@ -3854,6 +3857,28 @@ dlb_eventdev_close(struct rte_eventdev *dev)\n \treturn 0;\n }\n \n+static void\n+dlb_eventdev_port_release(void *port)\n+{\n+\tstruct dlb_eventdev_port *ev_port = port;\n+\n+\tif (ev_port) {\n+\t\tstruct dlb_port *qm_port = &ev_port->qm_port;\n+\n+\t\tif (qm_port->config_state == DLB_CONFIGURED)\n+\t\t\tdlb_free_qe_mem(qm_port);\n+\t}\n+}\n+\n+static void\n+dlb_eventdev_queue_release(struct rte_eventdev *dev, uint8_t id)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(id);\n+\n+\t/* This function intentionally left blank. */\n+}\n+\n void\n dlb_entry_points_init(struct rte_eventdev *dev)\n {\n@@ -3868,7 +3893,9 @@ dlb_entry_points_init(struct rte_eventdev *dev)\n \t\t.queue_def_conf   = dlb_eventdev_queue_default_conf_get,\n \t\t.port_def_conf    = dlb_eventdev_port_default_conf_get,\n \t\t.queue_setup      = dlb_eventdev_queue_setup,\n+\t\t.queue_release    = dlb_eventdev_queue_release,\n \t\t.port_setup       = dlb_eventdev_port_setup,\n+\t\t.port_release     = dlb_eventdev_port_release,\n \t\t.port_link        = dlb_eventdev_port_link,\n \t\t.port_unlink      = dlb_eventdev_port_unlink,\n \t\t.port_unlinks_in_progress =\n",
    "prefixes": [
        "v5",
        "20/22"
    ]
}