get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87871,
    "url": "http://patches.dpdk.org/api/patches/87871/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210211141620.12482-17-hemant.agrawal@nxp.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": "<20210211141620.12482-17-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210211141620.12482-17-hemant.agrawal@nxp.com",
    "date": "2021-02-11T14:16:16",
    "name": "[v2,16/20] net/dpaa: do not release the cgr ranges",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "216140038900b0cac66d76780db0c63517343e53",
    "submitter": {
        "id": 477,
        "url": "http://patches.dpdk.org/api/people/477/?format=api",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210211141620.12482-17-hemant.agrawal@nxp.com/mbox/",
    "series": [
        {
            "id": 15239,
            "url": "http://patches.dpdk.org/api/series/15239/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15239",
            "date": "2021-02-11T14:16:00",
            "name": "NXP DPAAx ethernet PMD changes",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/15239/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/87871/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/87871/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 4F8C8A054A;\n\tThu, 11 Feb 2021 15:30:17 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 875A71CC5AC;\n\tThu, 11 Feb 2021 15:28:21 +0100 (CET)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by mails.dpdk.org (Postfix) with ESMTP id 996B71CC566\n for <dev@dpdk.org>; Thu, 11 Feb 2021 15:28:06 +0100 (CET)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 774BC1A0604;\n Thu, 11 Feb 2021 15:28:06 +0100 (CET)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 37EB01A05F5;\n Thu, 11 Feb 2021 15:28:05 +0100 (CET)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8262C402AD;\n Thu, 11 Feb 2021 15:28:03 +0100 (CET)"
        ],
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "To": "dev@dpdk.org,\n\tferruh.yigit@intel.com",
        "Date": "Thu, 11 Feb 2021 19:46:16 +0530",
        "Message-Id": "<20210211141620.12482-17-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210211141620.12482-1-hemant.agrawal@nxp.com>",
        "References": "<20210120142723.14090-1-hemant.agrawal@nxp.com>\n <20210211141620.12482-1-hemant.agrawal@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v2 16/20] net/dpaa: do not release the cgr ranges",
        "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": "From: Nipun Gupta <nipun.gupta@nxp.com>\n\nCGR are automatically freed up in the kernel. As we do not cleanup\nthe queues, if we release the CGR here, kernel reports them in use.\nSo have them freed up in the kernel\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/net/dpaa/dpaa_ethdev.c | 6 ------\n 1 file changed, 6 deletions(-)",
    "diff": "diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex c59873dd8a..0996edf9a9 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -486,9 +486,6 @@ static int dpaa_eth_dev_close(struct rte_eth_dev *dev)\n \tif (dpaa_intf->cgr_rx) {\n \t\tfor (loop = 0; loop < dpaa_intf->nb_rx_queues; loop++)\n \t\t\tqman_delete_cgr(&dpaa_intf->cgr_rx[loop]);\n-\n-\t\tqman_release_cgrid_range(dpaa_intf->cgr_rx[loop].cgrid,\n-\t\t\t\t\t dpaa_intf->nb_rx_queues);\n \t}\n \n \trte_free(dpaa_intf->cgr_rx);\n@@ -497,9 +494,6 @@ static int dpaa_eth_dev_close(struct rte_eth_dev *dev)\n \tif (dpaa_intf->cgr_tx) {\n \t\tfor (loop = 0; loop < MAX_DPAA_CORES; loop++)\n \t\t\tqman_delete_cgr(&dpaa_intf->cgr_tx[loop]);\n-\n-\t\tqman_release_cgrid_range(dpaa_intf->cgr_tx[loop].cgrid,\n-\t\t\t\t\t MAX_DPAA_CORES);\n \t\trte_free(dpaa_intf->cgr_tx);\n \t\tdpaa_intf->cgr_tx = NULL;\n \t}\n",
    "prefixes": [
        "v2",
        "16/20"
    ]
}