get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132622,
    "url": "https://patches.dpdk.org/api/patches/132622/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231016084200.288546-1-simei.su@intel.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": "<20231016084200.288546-1-simei.su@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231016084200.288546-1-simei.su@intel.com",
    "date": "2023-10-16T08:42:00",
    "name": "net/cpfl: fix incorrect status calculation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "edd4e6386782f5166bfffa390141f0a4de0623f6",
    "submitter": {
        "id": 1298,
        "url": "https://patches.dpdk.org/api/people/1298/?format=api",
        "name": "Simei Su",
        "email": "simei.su@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231016084200.288546-1-simei.su@intel.com/mbox/",
    "series": [
        {
            "id": 29847,
            "url": "https://patches.dpdk.org/api/series/29847/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29847",
            "date": "2023-10-16T08:42:00",
            "name": "net/cpfl: fix incorrect status calculation",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/29847/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/132622/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/132622/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 0DCD44317C;\n\tMon, 16 Oct 2023 10:44:29 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F0A6E4067C;\n\tMon, 16 Oct 2023 10:44:28 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 7CDED402BD;\n Mon, 16 Oct 2023 10:44:27 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Oct 2023 01:44:26 -0700",
            "from unknown (HELO npg-dpdk-simeisu-cvl-119d218.sh.intel.com)\n ([10.67.119.108])\n by FMSMGA003.fm.intel.com with ESMTP; 16 Oct 2023 01:44:24 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1697445867; x=1728981867;\n h=from:to:cc:subject:date:message-id;\n bh=ZIbAO6V7OBwRkmaLAOM2ChCH63mnIao2UqfuwFb3CmI=;\n b=eg00is/OVYgLEX/8RbCTDnXtZu4jjYFBjHNIzqW8agrwp4MIDpItvB+k\n Ad/Uzc44BF60rWukPYvyRNoR07W2v5cJd9gaPteqP3SfVtYfBH8N+eybh\n 3T7cSED/Xk17lXT1dc6/SJhRj1L4GhmC8Vd4udtS19JIGSdrNUaG3fA1a\n ScOWUrs+B85RUTw/Vv8A0XMSNYF6/wz6k18w5CU3bJMrJB6Cj1Pp20eBJ\n XuwsWKYoX9WonQ8H2PnZoiXCJrobeSs206D054Kh3ye4Fi4Hs7vmc7HKT\n IhiM4KTYIvDi6Kh2ErcdmplQQ9n5LCK7h5GCzH3EJNoU66RW9bvD7OM7m g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10863\"; a=\"385320150\"",
            "E=Sophos;i=\"6.03,228,1694761200\"; d=\"scan'208\";a=\"385320150\"",
            "E=McAfee;i=\"6600,9927,10863\"; a=\"846320679\"",
            "E=Sophos;i=\"6.03,228,1694761200\"; d=\"scan'208\";a=\"846320679\""
        ],
        "X-ExtLoop1": "1",
        "From": "Simei Su <simei.su@intel.com>",
        "To": "yuying.zhang@intel.com,\n\tbeilei.xing@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org, jingjing.wu@intel.com, Simei Su <simei.su@intel.com>,\n stable@dpdk.org",
        "Subject": "[PATCH] net/cpfl: fix incorrect status calculation",
        "Date": "Mon, 16 Oct 2023 16:42:00 +0800",
        "Message-Id": "<20231016084200.288546-1-simei.su@intel.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "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": "Fix the incorrect ingress and egress packet number calculation.\n\nFixes: e3289d8fb63f (\"net/cpfl: support basic statistics\")\nCc: stable@dpdk.org\n\nSigned-off-by: Simei Su <simei.su@intel.com>\n---\n drivers/net/cpfl/cpfl_ethdev.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex 189072a..75d2d22 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -313,9 +313,11 @@ cpfl_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \n \t\tidpf_vport_stats_update(&vport->eth_stats_offset, pstats);\n \t\tstats->ipackets = pstats->rx_unicast + pstats->rx_multicast +\n-\t\t\t\tpstats->rx_broadcast - pstats->rx_discards;\n+\t\t\t\tpstats->rx_broadcast + pstats->rx_discards +\n+\t\t\t\tpstats->rx_errors + pstats->rx_unknown_protocol;\n \t\tstats->opackets = pstats->tx_broadcast + pstats->tx_multicast +\n-\t\t\t\t\t\tpstats->tx_unicast;\n+\t\t\t\tpstats->tx_unicast + pstats->tx_discards +\n+\t\t\t\tpstats->tx_errors;\n \t\tstats->imissed = pstats->rx_discards;\n \t\tstats->ierrors = pstats->rx_errors;\n \t\tstats->oerrors = pstats->tx_errors + pstats->tx_discards;\n",
    "prefixes": []
}