get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7753,
    "url": "https://patches.dpdk.org/api/patches/7753/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445292384-19815-6-git-send-email-amine.kherbouche@6wind.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": "<1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com",
    "date": "2015-10-19T22:06:23",
    "name": "[dpdk-dev,dpdk-dev,PATCHv6,5/6] i40e: enhance eth_(rxq|txq)_info_get to retrieve more queue information",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "b3dd75116028a1690247e83531efc84b558f3de4",
    "submitter": {
        "id": 349,
        "url": "https://patches.dpdk.org/api/people/349/?format=api",
        "name": "Aminek Kherbouche",
        "email": "amine.kherbouche@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7753/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7753/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 276F28E96;\n\tTue, 20 Oct 2015 00:07:08 +0200 (CEST)",
            "from mail-wi0-f180.google.com (mail-wi0-f180.google.com\n\t[209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 108778E7C\n\tfor <dev@dpdk.org>; Tue, 20 Oct 2015 00:06:59 +0200 (CEST)",
            "by wicfx6 with SMTP id fx6so19364471wic.1\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 15:06:59 -0700 (PDT)",
            "from griffon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by smtp.gmail.com with ESMTPSA id\n\tjd7sm42620096wjb.19.2015.10.19.15.06.57\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 19 Oct 2015 15:06:58 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=MHZLaIi/1nA+FrY9DwvLQqd3hSxhxr+eiX4SVzdXvpM=;\n\tb=i0kYG1tklhH9NlNpVUHCTuzIicUn/Y82RgnSbzzigrjjJ5rkPqw8Y/wV/adEtwmzxS\n\td6frCzL0HAYND4gvaoxuXkScc+WVXhhvgkIFeJlkaEe24N8bJUztXDMIQQ/9e5GhHEcJ\n\tG5mYgek2bfeV1WW8twwZDr64x+8jkLjuH+7vKPWxEi3MbN7sglCqRSSs2xE3O+KspvdV\n\tdtx3W3LIwmdRTQ/E7ELhM9zoq/r0sYuqOMYPzAuHmlGiuZDE4cexS1CaZU1WEAMOYUOh\n\toTJQEUkPK/ZeDrIICRf79gUDpy0TV2zbgHl0hKIVH+yFGmmTTtsC9AIo/uTGk3ZB+Xg1\n\tHaFA==",
        "X-Gm-Message-State": "ALoCoQl0UNbJYTJVW909Jt5EL/h8zElzG9s+WeUpUvlzIgfs9thI/1Ce1IARZGr+yiqrrB3Oh65y",
        "X-Received": "by 10.180.102.226 with SMTP id fr2mr24640183wib.3.1445292418938; \n\tMon, 19 Oct 2015 15:06:58 -0700 (PDT)",
        "From": "Amine Kherbouche <amine.kherbouche@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 20 Oct 2015 00:06:23 +0200",
        "Message-Id": "<1445292384-19815-6-git-send-email-amine.kherbouche@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1445292384-19815-1-git-send-email-amine.kherbouche@6wind.com>",
        "References": "<1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com>\n\t<1445292384-19815-1-git-send-email-amine.kherbouche@6wind.com>",
        "Cc": "amine.kherbouche@6wind.com",
        "Subject": "[dpdk-dev] [dpdk-dev,\n\tPATCHv6 5/6] i40e: enhance eth_(rxq|txq)_info_get to retrieve more\n\tqueue information",
        "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": "According to new fields in struct rte_eth_rxq_info, those are filled to\nadd additional information about queue descriptors.\n\nSigned-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>\n---\n drivers/net/i40e/i40e_rxtx.c |    4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c\nindex fa1451e..e958d56 100644\n--- a/drivers/net/i40e/i40e_rxtx.c\n+++ b/drivers/net/i40e/i40e_rxtx.c\n@@ -3075,6 +3075,8 @@ i40e_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tqinfo->mp = rxq->mp;\n \tqinfo->scattered_rx = dev->data->scattered_rx;\n \tqinfo->nb_desc = rxq->nb_rx_desc;\n+\tqinfo->used_desc = (uint16_t)i40e_dev_rx_queue_count(dev, queue_id);\n+\tqinfo->free_desc = qinfo->nb_desc  - qinfo->used_desc;\n \n \tqinfo->conf.rx_free_thresh = rxq->rx_free_thresh;\n \tqinfo->conf.rx_drop_en = rxq->drop_en;\n@@ -3090,6 +3092,8 @@ i40e_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \ttxq = dev->data->tx_queues[queue_id];\n \n \tqinfo->nb_desc = txq->nb_tx_desc;\n+\tqinfo->free_desc = txq->nb_tx_free;\n+\tqinfo->used_desc = qinfo->nb_desc - qinfo->free_desc;\n \n \tqinfo->conf.tx_thresh.pthresh = txq->pthresh;\n \tqinfo->conf.tx_thresh.hthresh = txq->hthresh;\n",
    "prefixes": [
        "dpdk-dev",
        "dpdk-dev",
        "PATCHv6",
        "5/6"
    ]
}