get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 133308,
    "url": "http://patches.dpdk.org/api/patches/133308/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231025133609.17931-4-shaibran@amazon.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": "<20231025133609.17931-4-shaibran@amazon.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231025133609.17931-4-shaibran@amazon.com",
    "date": "2023-10-25T13:36:07",
    "name": "[v2,3/5] net/ena: report Rx overrun errors in xstats",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "dc3e33b1b764a870da8a2701beb02d09420e2991",
    "submitter": {
        "id": 2930,
        "url": "http://patches.dpdk.org/api/people/2930/?format=api",
        "name": "Brandes, Shai",
        "email": "shaibran@amazon.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/20231025133609.17931-4-shaibran@amazon.com/mbox/",
    "series": [
        {
            "id": 29981,
            "url": "http://patches.dpdk.org/api/series/29981/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29981",
            "date": "2023-10-25T13:36:04",
            "name": "net/ena: v2.8.0 driver release",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/29981/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/133308/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/133308/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 98BFC431FC;\n\tWed, 25 Oct 2023 15:37:02 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E320F42DDB;\n\tWed, 25 Oct 2023 15:36:43 +0200 (CEST)",
            "from smtp-fw-33001.amazon.com (smtp-fw-33001.amazon.com\n [207.171.190.10])\n by mails.dpdk.org (Postfix) with ESMTP id E751C42DA6\n for <dev@dpdk.org>; Wed, 25 Oct 2023 15:36:41 +0200 (CEST)",
            "from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO\n email-inbound-relay-pdx-2c-m6i4x-dc7c3f8b.us-west-2.amazon.com) ([10.43.8.6])\n by smtp-border-fw-33001.sea14.amazon.com with\n ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 13:36:35 +0000",
            "from smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev\n (pdx2-ws-svc-p26-lb5-vlan2.pdx.amazon.com [10.39.38.66])\n by email-inbound-relay-pdx-2c-m6i4x-dc7c3f8b.us-west-2.amazon.com (Postfix)\n with ESMTPS id 4E9CCA0452; Wed, 25 Oct 2023 13:36:33 +0000 (UTC)",
            "from EX19MTAEUA001.ant.amazon.com [10.0.43.254:35417]\n by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.38.116:2525]\n with esmtp (Farcaster)\n id 206413a3-5e01-414e-9695-9906c31a6719;\n Wed, 25 Oct 2023 13:36:32 +0000 (UTC)",
            "from EX19D023EUA003.ant.amazon.com (10.252.50.101) by\n EX19MTAEUA001.ant.amazon.com (10.252.50.192) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1118.39; Wed, 25 Oct 2023 13:36:31 +0000",
            "from EX19MTAUEB001.ant.amazon.com (10.252.135.35) by\n EX19D023EUA003.ant.amazon.com (10.252.50.101) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1118.39; Wed, 25 Oct 2023 13:36:31 +0000",
            "from HFA15-CG15235BS.amazon.com (10.106.83.33) by\n mail-relay.amazon.com (10.252.135.35) with Microsoft SMTP Server id\n 15.2.1118.39 via Frontend Transport; Wed, 25 Oct 2023 13:36:30 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209;\n t=1698241003; x=1729777003;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version;\n bh=v/bYiicxGaz5mvPhBhhGqHEEnt8TVk7qf1AB+y7Srac=;\n b=jqSpzgMR77PgrJzLItz0My/kfcBPz6ZZd5CGqnnyodY6HMM87PUzsDRe\n 2ngLxWj0sqPPCsTPR9bG7wov6eRB+QUPc4/ZC4w9aBDH8kHteSI73cFi+\n HzYR+muy+JV7w3bbt/uYL01Y//JfRvVkB7qAqBD7vRkyepldy+r9VWTG0 Y=;",
        "X-IronPort-AV": "E=Sophos;i=\"6.03,250,1694736000\"; d=\"scan'208\";a=\"310281809\"",
        "X-Farcaster-Flow-ID": "206413a3-5e01-414e-9695-9906c31a6719",
        "From": "<shaibran@amazon.com>",
        "To": "<ferruh.yigit@amd.com>",
        "CC": "<dev@dpdk.org>, <rbeider@amazon.com>, <atrwajee@amazon.com>,\n <amitbern@amazon.com>, <shaibran@amazon.com>",
        "Subject": "[PATCH v2 3/5] net/ena: report Rx overrun errors in xstats",
        "Date": "Wed, 25 Oct 2023 16:36:07 +0300",
        "Message-ID": "<20231025133609.17931-4-shaibran@amazon.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20231025133609.17931-1-shaibran@amazon.com>",
        "References": "<20231025133609.17931-1-shaibran@amazon.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "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"
    },
    "content": "From: Shai Brandes <shaibran@amazon.com>\n\nRX overrun error occur when a packet arrives but there are\nnot enough free buffers in the RX ring to receive it.\nThe driver publishes the extended statistics with the RX\nbuffer overrun errors as reported by the device.\n\nSigned-off-by: Shai Brandes <shaibran@amazon.com>\nReviewed-by: Amit Bernstein <amitbern@amazon.com>\n---\n doc/guides/rel_notes/release_23_11.rst | 1 +\n drivers/net/ena/ena_ethdev.c           | 4 ++++\n drivers/net/ena/ena_ethdev.h           | 1 +\n 3 files changed, 6 insertions(+)",
    "diff": "diff --git a/doc/guides/rel_notes/release_23_11.rst b/doc/guides/rel_notes/release_23_11.rst\nindex eefbcc08fe..f622d93384 100644\n--- a/doc/guides/rel_notes/release_23_11.rst\n+++ b/doc/guides/rel_notes/release_23_11.rst\n@@ -148,6 +148,7 @@ New Features\n \n   * Upgraded ENA HAL to latest version.\n   * Added support for connection tracking allowance utilization metric.\n+  * Added support for reporting rx overrun errors in xstats.\n \n * **Updated Solarflare net driver.**\n \ndiff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex daec7f7d16..b3ebda6049 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -90,6 +90,7 @@ static const struct ena_stats ena_stats_global_strings[] = {\n \tENA_STAT_GLOBAL_ENTRY(dev_start),\n \tENA_STAT_GLOBAL_ENTRY(dev_stop),\n \tENA_STAT_GLOBAL_ENTRY(tx_drops),\n+\tENA_STAT_GLOBAL_ENTRY(rx_overruns),\n };\n \n /*\n@@ -3894,15 +3895,18 @@ static void ena_keep_alive(void *adapter_data,\n \tstruct ena_admin_aenq_keep_alive_desc *desc;\n \tuint64_t rx_drops;\n \tuint64_t tx_drops;\n+\tuint64_t rx_overruns;\n \n \tadapter->timestamp_wd = rte_get_timer_cycles();\n \n \tdesc = (struct ena_admin_aenq_keep_alive_desc *)aenq_e;\n \trx_drops = ((uint64_t)desc->rx_drops_high << 32) | desc->rx_drops_low;\n \ttx_drops = ((uint64_t)desc->tx_drops_high << 32) | desc->tx_drops_low;\n+\trx_overruns = ((uint64_t)desc->rx_overruns_high << 32) | desc->rx_overruns_low;\n \n \tadapter->drv_stats->rx_drops = rx_drops;\n \tadapter->dev_stats.tx_drops = tx_drops;\n+\tadapter->dev_stats.rx_overruns = rx_overruns;\n }\n \n /**\ndiff --git a/drivers/net/ena/ena_ethdev.h b/drivers/net/ena/ena_ethdev.h\nindex 9268d44dde..3f29764ca6 100644\n--- a/drivers/net/ena/ena_ethdev.h\n+++ b/drivers/net/ena/ena_ethdev.h\n@@ -219,6 +219,7 @@ struct ena_stats_dev {\n \t * As a workaround it is being published as an extended statistic.\n \t */\n \tu64 tx_drops;\n+\tu64 rx_overruns;\n };\n \n struct ena_stats_metrics {\n",
    "prefixes": [
        "v2",
        "3/5"
    ]
}