get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94741,
    "url": "https://patches.dpdk.org/api/patches/94741/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-46-ndabilpuram@marvell.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": "<20210623044702.4240-46-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210623044702.4240-46-ndabilpuram@marvell.com",
    "date": "2021-06-23T04:46:45",
    "name": "[v4,45/62] net/cnxk: add rxq/txq info get operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7c872afb968171e3eb5869503e471f9620fc3917",
    "submitter": {
        "id": 1202,
        "url": "https://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-46-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 17449,
            "url": "https://patches.dpdk.org/api/series/17449/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17449",
            "date": "2021-06-23T04:46:00",
            "name": "Marvell CNXK Ethdev Driver",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/17449/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94741/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94741/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 B9782A0C41;\n\tWed, 23 Jun 2021 06:52:21 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 34C87411AE;\n\tWed, 23 Jun 2021 06:49:48 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id CC72241166\n for <dev@dpdk.org>; Wed, 23 Jun 2021 06:49:46 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 15N4k7ng025556 for <dev@dpdk.org>; Tue, 22 Jun 2021 21:49:46 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 39bptj1gt7-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 22 Jun 2021 21:49:46 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 22 Jun 2021 21:49:44 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Tue, 22 Jun 2021 21:49:44 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id A4C325B6937;\n Tue, 22 Jun 2021 21:49:41 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=9QeH6AYHIvMRc9jnzfYBA7O1v6ifgXiaQqeyYuXIB34=;\n b=TfZ32PjnurF5OekCMBHirXWCnn73MJhWu6vgxI8trRZVarJZt0Zu/MCHAoYlkoUkjwZI\n JJzNPJPq9PxuzClc1vVninxbh+7NNZb7NhIoheeoiwBIwkGn7MYffX72WpS5yderoUXc\n f5z7a3yLevJE56L1af5XfLShxNNKDj5mvYYYbFFPMxVBy89HUU7Ogd82nBYFcE7WGP2C\n tfJruViYHS9WGIJWKdEWC8UjJ8kok7afmCYELTkSzEuxIjY6RBJShese2OE+tUei+0xU\n 8WVRhWVAXZh5BLIpb9vMUf8c79TV1XqQSvfl6le9omi4WjcAcwTaZUpPItDLCDi4BZ1i 5w==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<jerinj@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>,\n <pbhagavatula@marvell.com>, <kirankumark@marvell.com>,\n <psatheesh@marvell.com>, <asekhar@marvell.com>, <hkalra@marvell.com>",
        "Date": "Wed, 23 Jun 2021 10:16:45 +0530",
        "Message-ID": "<20210623044702.4240-46-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20210623044702.4240-1-ndabilpuram@marvell.com>",
        "References": "<20210306153404.10781-1-ndabilpuram@marvell.com>\n <20210623044702.4240-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "oN3t-9wtKryQfUCWnawpsgJEDGq9t40u",
        "X-Proofpoint-GUID": "oN3t-9wtKryQfUCWnawpsgJEDGq9t40u",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-06-23_01:2021-06-22,\n 2021-06-23 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v4 45/62] net/cnxk: add rxq/txq info get\n operations",
        "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: Satha Rao <skoteshwar@marvell.com>\n\nInitial apis to get default queue information.\n\nSigned-off-by: Satha Rao <skoteshwar@marvell.com>\n---\n drivers/net/cnxk/cnxk_ethdev.c     |  2 ++\n drivers/net/cnxk/cnxk_ethdev.h     |  4 ++++\n drivers/net/cnxk/cnxk_ethdev_ops.c | 30 ++++++++++++++++++++++++++++++\n 3 files changed, 36 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 071c293..81cd04e 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -1204,6 +1204,8 @@ struct eth_dev_ops cnxk_eth_dev_ops = {\n \t.xstats_reset = cnxk_nix_xstats_reset,\n \t.xstats_get_by_id = cnxk_nix_xstats_get_by_id,\n \t.xstats_get_names_by_id = cnxk_nix_xstats_get_names_by_id,\n+\t.rxq_info_get = cnxk_nix_rxq_info_get,\n+\t.txq_info_get = cnxk_nix_txq_info_get,\n };\n \n static int\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h\nindex 5a0dc13..32977eb 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.h\n+++ b/drivers/net/cnxk/cnxk_ethdev.h\n@@ -305,6 +305,10 @@ int cnxk_nix_xstats_get_names_by_id(struct rte_eth_dev *eth_dev,\n int cnxk_nix_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids,\n \t\t\t      uint64_t *values, unsigned int n);\n int cnxk_nix_xstats_reset(struct rte_eth_dev *eth_dev);\n+void cnxk_nix_rxq_info_get(struct rte_eth_dev *eth_dev, uint16_t qid,\n+\t\t\t   struct rte_eth_rxq_info *qinfo);\n+void cnxk_nix_txq_info_get(struct rte_eth_dev *eth_dev, uint16_t qid,\n+\t\t\t   struct rte_eth_txq_info *qinfo);\n \n /* Lookup configuration */\n const uint32_t *cnxk_nix_supported_ptypes_get(struct rte_eth_dev *eth_dev);\ndiff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c\nindex 7f46551..782f163 100644\n--- a/drivers/net/cnxk/cnxk_ethdev_ops.c\n+++ b/drivers/net/cnxk/cnxk_ethdev_ops.c\n@@ -628,3 +628,33 @@ cnxk_nix_pool_ops_supported(struct rte_eth_dev *eth_dev, const char *pool)\n \n \treturn -ENOTSUP;\n }\n+\n+void\n+cnxk_nix_rxq_info_get(struct rte_eth_dev *eth_dev, uint16_t qid,\n+\t\t      struct rte_eth_rxq_info *qinfo)\n+{\n+\tvoid *rxq = eth_dev->data->rx_queues[qid];\n+\tstruct cnxk_eth_rxq_sp *rxq_sp = cnxk_eth_rxq_to_sp(rxq);\n+\n+\tmemset(qinfo, 0, sizeof(*qinfo));\n+\n+\tqinfo->mp = rxq_sp->qconf.mp;\n+\tqinfo->scattered_rx = eth_dev->data->scattered_rx;\n+\tqinfo->nb_desc = rxq_sp->qconf.nb_desc;\n+\n+\tmemcpy(&qinfo->conf, &rxq_sp->qconf.conf.rx, sizeof(qinfo->conf));\n+}\n+\n+void\n+cnxk_nix_txq_info_get(struct rte_eth_dev *eth_dev, uint16_t qid,\n+\t\t      struct rte_eth_txq_info *qinfo)\n+{\n+\tvoid *txq = eth_dev->data->tx_queues[qid];\n+\tstruct cnxk_eth_txq_sp *txq_sp = cnxk_eth_txq_to_sp(txq);\n+\n+\tmemset(qinfo, 0, sizeof(*qinfo));\n+\n+\tqinfo->nb_desc = txq_sp->qconf.nb_desc;\n+\n+\tmemcpy(&qinfo->conf, &txq_sp->qconf.conf.tx, sizeof(qinfo->conf));\n+}\n",
    "prefixes": [
        "v4",
        "45/62"
    ]
}