get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43325,
    "url": "http://patches.dpdk.org/api/patches/43325/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180724210853.22767-4-stephen@networkplumber.org/",
    "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": "<20180724210853.22767-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180724210853.22767-4-stephen@networkplumber.org",
    "date": "2018-07-24T21:08:52",
    "name": "[3/4] netvsc: implement queue info get handles",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "95f54077e2346aa8711eb45d06cb9c62068e6da4",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "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/20180724210853.22767-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 748,
            "url": "http://patches.dpdk.org/api/series/748/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=748",
            "date": "2018-07-24T21:08:49",
            "name": "netvsc PMD performance fixes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/748/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43325/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43325/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0C09032A5;\n\tTue, 24 Jul 2018 23:09:13 +0200 (CEST)",
            "from mail-pf1-f194.google.com (mail-pf1-f194.google.com\n\t[209.85.210.194]) by dpdk.org (Postfix) with ESMTP id ED44631FC\n\tfor <dev@dpdk.org>; Tue, 24 Jul 2018 23:09:06 +0200 (CEST)",
            "by mail-pf1-f194.google.com with SMTP id d14-v6so1141252pfo.3\n\tfor <dev@dpdk.org>; Tue, 24 Jul 2018 14:09:06 -0700 (PDT)",
            "from xeon-e3.wavecable.com (204-195-22-127.wavecable.com.\n\t[204.195.22.127]) by smtp.gmail.com with ESMTPSA id\n\td11-v6sm16921161pfo.135.2018.07.24.14.09.04\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 24 Jul 2018 14:09:04 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=rrvI4y3U1rTTOuIajwJn3kWG2v77GiX3rWBplI+e650=;\n\tb=JzfAkB3dBDSY24pbHIpEPdrjMHxrLFl81nI7w0ysFH+EyIB/n1+s6Ee+a8RIgun0UO\n\tteNkm9HEpE1HikRDaw6CCwOcVHp8ZQ45oQvlDQdySlVqsaH2Xkfqkgf5zze5klAtpW44\n\tp88e5YTyN3SwV74HYdZRRC48fcpDlPBroi8BeLI1aS29ENXjJ59Qya9s9YvLArpGEKnC\n\tve6M07O2zv06MssU1hV3HmtJBJ0aXm2Uca4y8XfeI1BtOZrsDHZl5GiXWJglcS3H3Xh5\n\tv9qijAtyO9kDKDFBqYwmj+0IrQ5G/TPxEqGgo7latSn5HhhuJ26UA29rMvj47nQZIR53\n\tPFCA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=rrvI4y3U1rTTOuIajwJn3kWG2v77GiX3rWBplI+e650=;\n\tb=erts21hX3a8ZHkGecWS3TwfNocwgcwSPd+ZweZruwxHPkOnN7gx821XmSVevYkK22x\n\tC3UtqjNtGhSmSTGpJrm8a85UPtxvDip54p2WX/QbxuzAy/n++fHXN7HMY3ECqHdzqL+1\n\tZbPsur32zMT8l5bnfZDNQN03miLTnZYpE+C80xXEDmpUWZLveuYpBybq5TIyYyLiDEFH\n\t361sVFBE8PS/O/kFFptmj2XfrTr7OKFNqDaDnHC1RAAVWqK2ahm+R5SRzrwvwfAlbIld\n\tpGSQCjDs3L38hWVmPzJiXrg1baEKjbYF7G5VgVrxJNgYNZmOFt8XyMp4Th4RzDw/VC0q\n\tcqYg==",
        "X-Gm-Message-State": "AOUpUlHD05EqlJcuyfMBIPKTClQDzyinAGz9qKtXfsSlEhWuCLBfIb1A\n\t9xMfrEYfKZAAikRYG/5ey7Y98lsa30c=",
        "X-Google-Smtp-Source": "AAOMgpctB/sTRouCqiu2Aj/NnGPADOFsEz7Wr+3Sq/16U2ObwJssfKjXyNkxH+f5IDl7AFDEVlJeuw==",
        "X-Received": "by 2002:a63:9802:: with SMTP id\n\tq2-v6mr17698605pgd.70.1532466545822; \n\tTue, 24 Jul 2018 14:09:05 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tStephen Hemminger <sthemmin@microsoft.com>",
        "Date": "Tue, 24 Jul 2018 14:08:52 -0700",
        "Message-Id": "<20180724210853.22767-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20180724210853.22767-1-stephen@networkplumber.org>",
        "References": "<20180724210853.22767-1-stephen@networkplumber.org>",
        "Subject": "[dpdk-dev] [PATCH 3/4] netvsc: implement queue info get handles",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This helps when diagnosing ring issues in testpmd.\n\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n drivers/net/netvsc/hn_ethdev.c |  2 ++\n drivers/net/netvsc/hn_rxtx.c   | 22 ++++++++++++++++++++++\n drivers/net/netvsc/hn_var.h    |  4 ++++\n 3 files changed, 28 insertions(+)",
    "diff": "diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 47ed760b825d..78b842ba2d68 100644\n--- a/drivers/net/netvsc/hn_ethdev.c\n+++ b/drivers/net/netvsc/hn_ethdev.c\n@@ -536,6 +536,8 @@ static const struct eth_dev_ops hn_eth_dev_ops = {\n \t.dev_stop\t\t= hn_dev_stop,\n \t.dev_close\t\t= hn_dev_close,\n \t.dev_infos_get\t\t= hn_dev_info_get,\n+\t.txq_info_get\t\t= hn_dev_tx_queue_info,\n+\t.rxq_info_get\t\t= hn_dev_rx_queue_info,\n \t.promiscuous_enable     = hn_dev_promiscuous_enable,\n \t.promiscuous_disable    = hn_dev_promiscuous_disable,\n \t.allmulticast_enable    = hn_dev_allmulticast_enable,\ndiff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c\nindex 1aff64ee3ae5..17cebeb74456 100644\n--- a/drivers/net/netvsc/hn_rxtx.c\n+++ b/drivers/net/netvsc/hn_rxtx.c\n@@ -268,6 +268,17 @@ hn_dev_tx_queue_release(void *arg)\n \trte_free(txq);\n }\n \n+void\n+hn_dev_tx_queue_info(struct rte_eth_dev *dev, uint16_t queue_idx,\n+\t\t     struct rte_eth_txq_info *qinfo)\n+{\n+\tstruct hn_data *hv = dev->data->dev_private;\n+\tstruct hn_tx_queue *txq = dev->data->rx_queues[queue_idx];\n+\n+\tqinfo->conf.tx_free_thresh = txq->free_thresh;\n+\tqinfo->nb_desc = hv->tx_pool->size;\n+}\n+\n static void\n hn_nvs_send_completed(struct rte_eth_dev *dev, uint16_t queue_id,\n \t\t      unsigned long xactid, const struct hn_nvs_rndis_ack *ack)\n@@ -790,6 +801,17 @@ hn_dev_rx_queue_release(void *arg)\n \t}\n }\n \n+void\n+hn_dev_rx_queue_info(struct rte_eth_dev *dev, uint16_t queue_idx,\n+\t\t     struct rte_eth_rxq_info *qinfo)\n+{\n+\tstruct hn_rx_queue *rxq = dev->data->rx_queues[queue_idx];\n+\n+\tqinfo->mp = rxq->mb_pool;\n+\tqinfo->scattered_rx = 1;\n+\tqinfo->nb_desc = rte_ring_get_capacity(rxq->rx_ring);\n+}\n+\n static void\n hn_nvs_handle_notify(const struct vmbus_chanpkt_hdr *pkthdr,\n \t\t     const void *data)\ndiff --git a/drivers/net/netvsc/hn_var.h b/drivers/net/netvsc/hn_var.h\nindex f0358c58226a..3f3b442697af 100644\n--- a/drivers/net/netvsc/hn_var.h\n+++ b/drivers/net/netvsc/hn_var.h\n@@ -141,6 +141,8 @@ int\thn_dev_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,\n \t\t\t      uint16_t nb_desc, unsigned int socket_id,\n \t\t\t      const struct rte_eth_txconf *tx_conf);\n void\thn_dev_tx_queue_release(void *arg);\n+void\thn_dev_tx_queue_info(struct rte_eth_dev *dev, uint16_t queue_idx,\n+\t\t\t     struct rte_eth_txq_info *qinfo);\n \n struct hn_rx_queue *hn_rx_queue_alloc(struct hn_data *hv,\n \t\t\t\t      uint16_t queue_id,\n@@ -151,3 +153,5 @@ int\thn_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t      const struct rte_eth_rxconf *rx_conf,\n \t\t\t      struct rte_mempool *mp);\n void\thn_dev_rx_queue_release(void *arg);\n+void\thn_dev_rx_queue_info(struct rte_eth_dev *dev, uint16_t queue_idx,\n+\t\t\t     struct rte_eth_rxq_info *qinfo);\n",
    "prefixes": [
        "3/4"
    ]
}