get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96250,
    "url": "http://patchwork.dpdk.org/api/patches/96250/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210723131515.2317168-4-andrew.rybchenko@oktetlabs.ru/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20210723131515.2317168-4-andrew.rybchenko@oktetlabs.ru>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210723131515.2317168-4-andrew.rybchenko@oktetlabs.ru",
    "date": "2021-07-23T13:15:07",
    "name": "[v3,03/11] ethdev: fix docs of functions getting xstats by IDs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "df3fb40efbb167708c77277bd79dcd8916c1a465",
    "submitter": {
        "id": 2013,
        "url": "http://patchwork.dpdk.org/api/people/2013/?format=api",
        "name": "Andrew Rybchenko",
        "email": "Andrew.Rybchenko@oktetlabs.ru"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patchwork.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20210723131515.2317168-4-andrew.rybchenko@oktetlabs.ru/mbox/",
    "series": [
        {
            "id": 17972,
            "url": "http://patchwork.dpdk.org/api/series/17972/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=17972",
            "date": "2021-07-23T13:15:04",
            "name": "net/sfc: provide Rx/Tx doorbells stats",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/17972/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/96250/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/96250/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 7BB46A0C46;\n\tFri, 23 Jul 2021 15:15:45 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 01AA8410DB;\n\tFri, 23 Jul 2021 15:15:39 +0200 (CEST)",
            "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by mails.dpdk.org (Postfix) with ESMTP id 819C940E03;\n Fri, 23 Jul 2021 15:15:37 +0200 (CEST)",
            "by shelob.oktetlabs.ru (Postfix, from userid 122)\n id 564117F6D2; Fri, 23 Jul 2021 16:15:37 +0300 (MSK)",
            "from aros.oktetlabs.ru (aros.oktetlabs.ru [192.168.38.17])\n by shelob.oktetlabs.ru (Postfix) with ESMTP id 26F977F6C4;\n Fri, 23 Jul 2021 16:15:23 +0300 (MSK)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on shelob.oktetlabs.ru",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.8 required=5.0 tests=ALL_TRUSTED,\n DKIM_ADSP_DISCARD,\n URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 26F977F6C4",
        "Authentication-Results": "shelob.oktetlabs.ru/26F977F6C4; dkim=none;\n dkim-atps=neutral",
        "From": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "To": "dev@dpdk.org, Thomas Monjalon <thomas@monjalon.net>,\n Ferruh Yigit <ferruh.yigit@intel.com>, Kuba Kozak <kubax.kozak@intel.com>",
        "Cc": "David Marchand <david.marchand@redhat.com>,\n Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>, stable@dpdk.org,\n Andy Moreton <amoreton@xilinx.com>",
        "Date": "Fri, 23 Jul 2021 16:15:07 +0300",
        "Message-Id": "<20210723131515.2317168-4-andrew.rybchenko@oktetlabs.ru>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20210723131515.2317168-1-andrew.rybchenko@oktetlabs.ru>",
        "References": "<20210604144225.287678-1-andrew.rybchenko@oktetlabs.ru>\n <20210723131515.2317168-1-andrew.rybchenko@oktetlabs.ru>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 03/11] ethdev: fix docs of functions getting\n xstats by IDs",
        "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: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>\n\nDocument valid combinations of input arguments in accordance with\ncurrent implementation in ethdev.\n\nFixes: 79c913a42f0 (\"ethdev: retrieve xstats by ID\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>\nSigned-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n lib/ethdev/rte_ethdev.h | 23 ++++++++++++++---------\n 1 file changed, 14 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h\nindex d2b27c351f..28440c46d3 100644\n--- a/lib/ethdev/rte_ethdev.h\n+++ b/lib/ethdev/rte_ethdev.h\n@@ -2873,12 +2873,15 @@ int rte_eth_xstats_get(uint16_t port_id, struct rte_eth_xstat *xstats,\n  *   The port identifier of the Ethernet device.\n  * @param xstats_names\n  *   An rte_eth_xstat_name array of at least *size* elements to\n- *   be filled. If set to NULL, the function returns the required number\n- *   of elements.\n+ *   be filled. Must not be NULL if @p ids are specified (not NULL).\n  * @param ids\n- *   IDs array given by app to retrieve specific statistics\n+ *   IDs array given by app to retrieve specific statistics. May be NULL\n+ *   to retrieve all available statistics.\n  * @param size\n- *   The size of the xstats_names array (number of elements).\n+ *   If @p ids is not NULL, number of elements in the array with requested IDs\n+ *   and number of elements in @p xstats_names to put names in. If @p ids is\n+ *   NULL, number of elements in @p xstats_names to put all available statistics\n+ *   names in.\n  * @return\n  *   - A positive value lower or equal to size: success. The return value\n  *     is the number of entries filled in the stats table.\n@@ -2886,7 +2889,7 @@ int rte_eth_xstats_get(uint16_t port_id, struct rte_eth_xstat *xstats,\n  *     is too small. The return value corresponds to the size that should\n  *     be given to succeed. The entries in the table are not valid and\n  *     shall not be used by the caller.\n- *   - A negative value on error (invalid port id).\n+ *   - A negative value on error.\n  */\n int\n rte_eth_xstats_get_names_by_id(uint16_t port_id,\n@@ -2900,13 +2903,15 @@ rte_eth_xstats_get_names_by_id(uint16_t port_id,\n  *   The port identifier of the Ethernet device.\n  * @param ids\n  *   A pointer to an ids array passed by application. This tells which\n- *   statistics values function should retrieve. This parameter\n- *   can be set to NULL if size is 0. In this case function will retrieve\n+ *   statistics values function should retrieve. May be NULL to retrieve\n  *   all available statistics.\n  * @param values\n  *   A pointer to a table to be filled with device statistics values.\n+ *   Must not be NULL if ids are specified (not NULL).\n  * @param size\n- *   The size of the ids array (number of elements).\n+ *   If @p ids is not NULL, number of elements in the array with requested IDs\n+ *   and number of elements in values to put statistics in. If @p ids is NULL,\n+ *   number of elements in values to put all available statistics in.\n  * @return\n  *   - A positive value lower or equal to size: success. The return value\n  *     is the number of entries filled in the stats table.\n@@ -2914,7 +2919,7 @@ rte_eth_xstats_get_names_by_id(uint16_t port_id,\n  *     is too small. The return value corresponds to the size that should\n  *     be given to succeed. The entries in the table are not valid and\n  *     shall not be used by the caller.\n- *   - A negative value on error (invalid port id).\n+ *   - A negative value on error.\n  */\n int rte_eth_xstats_get_by_id(uint16_t port_id, const uint64_t *ids,\n \t\t\t     uint64_t *values, unsigned int size);\n",
    "prefixes": [
        "v3",
        "03/11"
    ]
}