get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17243,
    "url": "https://patches.dpdk.org/api/patches/17243/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1479986809-14934-3-git-send-email-jblunck@infradead.org/",
    "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": "<1479986809-14934-3-git-send-email-jblunck@infradead.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1479986809-14934-3-git-send-email-jblunck@infradead.org",
    "date": "2016-11-24T11:26:46",
    "name": "[dpdk-dev,v2,2/5] ethdev: Free rx/tx_queues after releasing all queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2230843798532ec0e393eb2500f3d1c637c59a88",
    "submitter": {
        "id": 249,
        "url": "https://patches.dpdk.org/api/people/249/?format=api",
        "name": "Jan Blunck",
        "email": "jblunck@infradead.org"
    },
    "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/1479986809-14934-3-git-send-email-jblunck@infradead.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/17243/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/17243/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 640ED568A;\n\tThu, 24 Nov 2016 12:36:06 +0100 (CET)",
            "from mail-wj0-f194.google.com (mail-wj0-f194.google.com\n\t[209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 1BDEE5585;\n\tThu, 24 Nov 2016 12:35:42 +0100 (CET)",
            "by mail-wj0-f194.google.com with SMTP id jb2so3060055wjb.3;\n\tThu, 24 Nov 2016 03:35:42 -0800 (PST)",
            "from weierstrass.local.net ([91.200.110.70])\n\tby smtp.gmail.com with ESMTPSA id\n\tl74sm7786020wmg.2.2016.11.24.03.35.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 24 Nov 2016 03:35:41 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=asK7IXrTQ8B+TvZtvMjLl/KV/iarat4hAddR67nIvgg=;\n\tb=QgZsl+EmstZx0dcZFzDlgTTpnjFSU3jmsHovu9RhRRCa6DfmkwE3lVZ6cX1RbPChNq\n\tRr6/55pj1pL1bSlgwW2x7ntampZX0IMQ54Xi7kNMvC86cQDgxaeMKVtDI2L56dH3X847\n\tsJcAbdzyEmfUMbBWyFwu1kLzBPtTewKSFRtMjq6Ql+mtXpkocl2QmZYgvMlGZIkQFBNc\n\tKy5/ed2VH+08sB5YLQvoXTM6BQB67E5mGx7QR2048NOlLmd7jQRWgPNueL2kjs86RqR3\n\tJ0X+1bjSP5/8OuUZ9H+zyrOFqi1SG+0cVVakY/EkhdSEmyc7rnuQYYAXWHNZHbT9P866\n\tdL6g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=asK7IXrTQ8B+TvZtvMjLl/KV/iarat4hAddR67nIvgg=;\n\tb=RYhevlWD/ghG5ZIQcq2YMTInr6KPTIHr3IBsRV5xLYOPwkJ7BajSG05l6rEyXafiP2\n\t2V4GQ90yv8VnDpQZ3GfLhvICCtDosF2CNpYSHRbJOG8z+QRNrQNR927SxmhAsXYHGgqo\n\tWA2TY2hs5JBfkE5gpk3rzvUR68AXwnF+UTQy0Z0y1hD+BvzQ4F1x6UvK6McbqmXeFQqT\n\tdSIcji/Vgs5gX21zloKpJPRuePZ5abSYE4Woy28ZH7L8y8b1IoFiKB1XhiSk9m0/ClWw\n\twEnAyVg3VjnIwqO5u5u/2tAeaUBCz1aHSWAxsdq1kaGlAn2gadgbLmP5t92coXiVI/cO\n\t8Z3w==",
        "X-Gm-Message-State": "AKaTC03a5olX0x5T5vMSaG6M3rZ2or8T5v7aWlsbdR1BJn5/JmgRqENND0XFu506QMSSDg==",
        "X-Received": "by 10.194.109.65 with SMTP id hq1mr1816415wjb.37.1479987341739; \n\tThu, 24 Nov 2016 03:35:41 -0800 (PST)",
        "From": "Jan Blunck <jblunck@infradead.org>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, i.maximets@samsung.com,\n\tbruce.richardson@intel.com, \n\tdeclan.doherty@intel.com, ehkinzie@gmail.com,\n\tbernard.iremonger@intel.com, stable@dpdk.org",
        "Date": "Thu, 24 Nov 2016 12:26:46 +0100",
        "Message-Id": "<1479986809-14934-3-git-send-email-jblunck@infradead.org>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1479986809-14934-1-git-send-email-jblunck@infradead.org>",
        "References": "<1479986809-14934-1-git-send-email-jblunck@infradead.org>",
        "Subject": "[dpdk-dev] [PATCH v2 2/5] ethdev: Free rx/tx_queues after releasing\n\tall queues",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "If all queues are released lets also free up the dev->data->rx/tx_queues\nto be able to properly reinitialize.\n\nSigned-off-by: Jan Blunck <jblunck@infradead.org>\n---\n lib/librte_ether/rte_ethdev.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex 8c4b6cd..a3986ad 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -531,6 +531,9 @@ rte_eth_dev_rx_queue_config(struct rte_eth_dev *dev, uint16_t nb_queues)\n \n \t\tfor (i = nb_queues; i < old_nb_queues; i++)\n \t\t\t(*dev->dev_ops->rx_queue_release)(rxq[i]);\n+\n+\t\trte_free(dev->data->rx_queues);\n+\t\tdev->data->rx_queues = NULL;\n \t}\n \tdev->data->nb_rx_queues = nb_queues;\n \treturn 0;\n@@ -682,6 +685,9 @@ rte_eth_dev_tx_queue_config(struct rte_eth_dev *dev, uint16_t nb_queues)\n \n \t\tfor (i = nb_queues; i < old_nb_queues; i++)\n \t\t\t(*dev->dev_ops->tx_queue_release)(txq[i]);\n+\n+\t\trte_free(dev->data->tx_queues);\n+\t\tdev->data->tx_queues = NULL;\n \t}\n \tdev->data->nb_tx_queues = nb_queues;\n \treturn 0;\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/5"
    ]
}