get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60206,
    "url": "http://patches.dpdk.org/api/patches/60206/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/6acc3c19963cd2ea85d394102bd5d3a5f3aed0b7.1569850827.git.cloud.wangxiaoyun@huawei.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": "<6acc3c19963cd2ea85d394102bd5d3a5f3aed0b7.1569850827.git.cloud.wangxiaoyun@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/6acc3c19963cd2ea85d394102bd5d3a5f3aed0b7.1569850827.git.cloud.wangxiaoyun@huawei.com",
    "date": "2019-09-30T14:00:57",
    "name": "[v3,19/19] net/hinic: add support for getting rxq or txq info",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5fcd06e3eabb441c47db2cb7e0010985e502a790",
    "submitter": {
        "id": 1446,
        "url": "http://patches.dpdk.org/api/people/1446/?format=api",
        "name": "Wangxiaoyun (Cloud)",
        "email": "cloud.wangxiaoyun@huawei.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/6acc3c19963cd2ea85d394102bd5d3a5f3aed0b7.1569850827.git.cloud.wangxiaoyun@huawei.com/mbox/",
    "series": [
        {
            "id": 6622,
            "url": "http://patches.dpdk.org/api/series/6622/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6622",
            "date": "2019-09-30T14:00:38",
            "name": "Add advanced features for Huawei hinic pmd",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/6622/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/60206/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/60206/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 C1D061BE96;\n\tMon, 30 Sep 2019 15:50:43 +0200 (CEST)",
            "from huawei.com (szxga04-in.huawei.com [45.249.212.190])\n\tby dpdk.org (Postfix) with ESMTP id 284694CA7\n\tfor <dev@dpdk.org>; Mon, 30 Sep 2019 15:50:41 +0200 (CEST)",
            "from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id C9F2BEA6EDE5FF08ABD9\n\tfor <dev@dpdk.org>; Mon, 30 Sep 2019 21:50:39 +0800 (CST)",
            "from tester.localdomain (10.175.119.39) by\n\tDGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP\n\tServer id 14.3.439.0; Mon, 30 Sep 2019 21:50:31 +0800"
        ],
        "From": "Xiaoyun wang <cloud.wangxiaoyun@huawei.com>",
        "To": "<ferruh.yigit@intel.com>",
        "CC": "<dev@dpdk.org>, <xuanziyang2@huawei.com>, <shahar.belkar@huawei.com>,\n\t<luoxianjun@huawei.com>, <tanya.brokhman@huawei.com>,\n\t<zhouguoyang@huawei.com>, <wulike1@huawei.com>, Xiaoyun wang\n\t<cloud.wangxiaoyun@huawei.com>",
        "Date": "Mon, 30 Sep 2019 22:00:57 +0800",
        "Message-ID": "<6acc3c19963cd2ea85d394102bd5d3a5f3aed0b7.1569850827.git.cloud.wangxiaoyun@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<cover.1569850826.git.cloud.wangxiaoyun@huawei.com>",
        "References": "<cover.1569850826.git.cloud.wangxiaoyun@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.175.119.39]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH v3 19/19] net/hinic: add support for getting rxq\n\tor txq info",
        "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 patch adds support for getting rxq or txq info.\n\nSigned-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>\n---\n drivers/net/hinic/hinic_pmd_ethdev.c | 34 ++++++++++++++++++++++++++++++++++\n 1 file changed, 34 insertions(+)",
    "diff": "diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c\nindex 765e661..1361a99 100644\n--- a/drivers/net/hinic/hinic_pmd_ethdev.c\n+++ b/drivers/net/hinic/hinic_pmd_ethdev.c\n@@ -53,6 +53,11 @@\n #define HINIC_MIN_RX_BUF_SIZE\t\t1024\n #define HINIC_MAX_UC_MAC_ADDRS\t\t128\n #define HINIC_MAX_MC_MAC_ADDRS\t\t2048\n+\n+#define HINIC_DEFAULT_BURST_SIZE\t32\n+#define HINIC_DEFAULT_NB_QUEUES\t\t1\n+#define HINIC_DEFAULT_RING_SIZE\t\t1024\n+\n /*\n  * vlan_id is a 12 bit number.\n  * The VFTA array is actually a 4096 bit array, 128 of 32bit elements.\n@@ -753,6 +758,14 @@ static void hinic_get_speed_capa(struct rte_eth_dev *dev, uint32_t *speed_capa)\n \tinfo->rx_desc_lim = hinic_rx_desc_lim;\n \tinfo->tx_desc_lim = hinic_tx_desc_lim;\n \n+\t/* Driver-preferred Rx/Tx parameters */\n+\tinfo->default_rxportconf.burst_size = HINIC_DEFAULT_BURST_SIZE;\n+\tinfo->default_txportconf.burst_size = HINIC_DEFAULT_BURST_SIZE;\n+\tinfo->default_rxportconf.nb_queues = HINIC_DEFAULT_NB_QUEUES;\n+\tinfo->default_txportconf.nb_queues = HINIC_DEFAULT_NB_QUEUES;\n+\tinfo->default_rxportconf.ring_size = HINIC_DEFAULT_RING_SIZE;\n+\tinfo->default_txportconf.ring_size = HINIC_DEFAULT_RING_SIZE;\n+\n \treturn 0;\n }\n \n@@ -2157,6 +2170,23 @@ static int hinic_dev_xstats_get(struct rte_eth_dev *dev,\n \treturn count;\n }\n \n+static void hinic_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t\t\tstruct rte_eth_rxq_info *qinfo)\n+{\n+\tstruct hinic_rxq  *rxq = dev->data->rx_queues[queue_id];\n+\n+\tqinfo->mp = rxq->mb_pool;\n+\tqinfo->nb_desc = rxq->q_depth;\n+}\n+\n+static void hinic_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t\t\tstruct rte_eth_txq_info *qinfo)\n+{\n+\tstruct hinic_txq  *txq = dev->data->tx_queues[queue_id];\n+\n+\tqinfo->nb_desc = txq->q_depth;\n+}\n+\n /**\n  * DPDK callback to retrieve names of extended device statistics\n  *\n@@ -2873,6 +2903,8 @@ static void hinic_dev_close(struct rte_eth_dev *dev)\n \t.xstats_get                    = hinic_dev_xstats_get,\n \t.xstats_reset                  = hinic_dev_xstats_reset,\n \t.xstats_get_names              = hinic_dev_xstats_get_names,\n+\t.rxq_info_get                  = hinic_rxq_info_get,\n+\t.txq_info_get                  = hinic_txq_info_get,\n \t.mac_addr_set                  = hinic_set_mac_addr,\n \t.mac_addr_remove               = hinic_mac_addr_remove,\n \t.mac_addr_add                  = hinic_mac_addr_add,\n@@ -2906,6 +2938,8 @@ static void hinic_dev_close(struct rte_eth_dev *dev)\n \t.xstats_get                    = hinic_dev_xstats_get,\n \t.xstats_reset                  = hinic_dev_xstats_reset,\n \t.xstats_get_names              = hinic_dev_xstats_get_names,\n+\t.rxq_info_get                  = hinic_rxq_info_get,\n+\t.txq_info_get                  = hinic_txq_info_get,\n \t.mac_addr_set                  = hinic_set_mac_addr,\n \t.mac_addr_remove               = hinic_mac_addr_remove,\n \t.mac_addr_add                  = hinic_mac_addr_add,\n",
    "prefixes": [
        "v3",
        "19/19"
    ]
}