get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55293,
    "url": "https://patches.dpdk.org/api/patches/55293/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1561449612-26372-3-git-send-email-andy.pei@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": "<1561449612-26372-3-git-send-email-andy.pei@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1561449612-26372-3-git-send-email-andy.pei@intel.com",
    "date": "2019-06-25T08:00:11",
    "name": "[v4,3/4] net/ipn3ke: clear statistics when init and start dev",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8120e5d8c30772dbba25b0c1452aae47cd29dc04",
    "submitter": {
        "id": 1185,
        "url": "https://patches.dpdk.org/api/people/1185/?format=api",
        "name": "Pei, Andy",
        "email": "andy.pei@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/1561449612-26372-3-git-send-email-andy.pei@intel.com/mbox/",
    "series": [
        {
            "id": 5148,
            "url": "https://patches.dpdk.org/api/series/5148/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=5148",
            "date": "2019-06-25T08:00:09",
            "name": "[v4,1/4] net/ipn3ke: add new register address",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/5148/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/55293/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/55293/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 6C8CE1BBF6;\n\tTue, 25 Jun 2019 10:07:30 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id CDA641BBF4\n\tfor <dev@dpdk.org>; Tue, 25 Jun 2019 10:07:28 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t25 Jun 2019 01:07:14 -0700",
            "from dipei-st-npg.sh.intel.com ([10.67.110.220])\n\tby FMSMGA003.fm.intel.com with ESMTP; 25 Jun 2019 01:07:13 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,415,1557212400\"; d=\"scan'208\";a=\"169711503\"",
        "From": "Andy Pei <andy.pei@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "andy.pei@intel.com,\n\trosen.xu@intel.com",
        "Date": "Tue, 25 Jun 2019 16:00:11 +0800",
        "Message-Id": "<1561449612-26372-3-git-send-email-andy.pei@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1561449612-26372-1-git-send-email-andy.pei@intel.com>",
        "References": "<1560934174-408632-4-git-send-email-andy.pei@intel.com>\n\t<1561449612-26372-1-git-send-email-andy.pei@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 3/4] net/ipn3ke: clear statistics when init\n\tand start dev",
        "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": "clear line side and NIC side statistics registers when HW init and\nuinit, and when dev start.\n\nFixes: c01c748e4ae6 (\"net/ipn3ke: add new driver\")\nCc: rosen.xu@intel.com\n\nSigned-off-by: Andy Pei <andy.pei@intel.com>\n---\n drivers/net/ipn3ke/ipn3ke_ethdev.c      | 59 ++++++++++++++++++++++++++++-----\n drivers/net/ipn3ke/ipn3ke_representor.c | 27 ++++++++++++---\n 2 files changed, 74 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/ipn3ke/ipn3ke_ethdev.c b/drivers/net/ipn3ke/ipn3ke_ethdev.c\nindex 8d3084d..27ebfb5 100644\n--- a/drivers/net/ipn3ke/ipn3ke_ethdev.c\n+++ b/drivers/net/ipn3ke/ipn3ke_ethdev.c\n@@ -244,11 +244,33 @@\n \t\t\t/* Enable the RX path */\n \t\t\tipn3ke_xmac_rx_enable(hw, i, 1);\n \n-\t\t\t/* Clear all TX statistics counters */\n-\t\t\tipn3ke_xmac_tx_clr_stcs(hw, i, 1);\n+\t\t\t/* Clear NIC side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, i, 1);\n \n-\t\t\t/* Clear all RX statistics counters */\n-\t\t\tipn3ke_xmac_rx_clr_stcs(hw, i, 1);\n+\t\t\t/* Clear NIC side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear line side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, i, 0);\n+\n+\t\t\t/* Clear line RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, i, 0);\n+\t\t}\n+\t} else if (hw->retimer.mac_type ==\n+\t\t\tIFPGA_RAWDEV_RETIMER_MAC_TYPE_25GE_25GAUI) {\n+\t\t/* Enable inter connect channel */\n+\t\tfor (i = 0; i < hw->port_num; i++) {\n+\t\t\t/* Clear NIC side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear NIC side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear line side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, i, 0);\n+\n+\t\t\t/* Clear line side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, i, 0);\n \t\t}\n \t}\n \n@@ -291,11 +313,32 @@\n \t\t\t/* Disable the RX path */\n \t\t\tipn3ke_xmac_rx_disable(hw, i, 1);\n \n-\t\t\t/* Clear all TX statistics counters */\n-\t\t\tipn3ke_xmac_tx_clr_stcs(hw, i, 1);\n+\t\t\t/* Clear NIC side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear NIC side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear line side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, i, 0);\n+\n+\t\t\t/* Clear line side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, i, 0);\n+\t\t}\n+\t} else if (hw->retimer.mac_type ==\n+\t\t\tIFPGA_RAWDEV_RETIMER_MAC_TYPE_25GE_25GAUI) {\n+\t\tfor (i = 0; i < hw->port_num; i++) {\n+\t\t\t/* Clear NIC side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear NIC side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, i, 1);\n+\n+\t\t\t/* Clear line side TX statistics counters */\n+\t\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, i, 0);\n \n-\t\t\t/* Clear all RX statistics counters */\n-\t\t\tipn3ke_xmac_rx_clr_stcs(hw, i, 1);\n+\t\t\t/* Clear line side RX statistics counters */\n+\t\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, i, 0);\n \t\t}\n \t}\n }\ndiff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c\nindex 01ad92e..4456d9d 100644\n--- a/drivers/net/ipn3ke/ipn3ke_representor.c\n+++ b/drivers/net/ipn3ke/ipn3ke_representor.c\n@@ -159,11 +159,30 @@\n \t\t/* Enable the RX path */\n \t\tipn3ke_xmac_rx_enable(hw, rpst->port_id, 0);\n \n-\t\t/* Clear all TX statistics counters */\n-\t\tipn3ke_xmac_tx_clr_stcs(hw, rpst->port_id, 0);\n+\t\t/* Clear line side TX statistics counters */\n+\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, rpst->port_id, 0);\n \n-\t\t/* Clear all RX statistics counters */\n-\t\tipn3ke_xmac_rx_clr_stcs(hw, rpst->port_id, 0);\n+\t\t/* Clear line side RX statistics counters */\n+\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, rpst->port_id, 0);\n+\n+\t\t/* Clear NIC side TX statistics counters */\n+\t\tipn3ke_xmac_tx_clr_10G_stcs(hw, rpst->port_id, 1);\n+\n+\t\t/* Clear NIC side RX statistics counters */\n+\t\tipn3ke_xmac_rx_clr_10G_stcs(hw, rpst->port_id, 1);\n+\t} else if (hw->retimer.mac_type ==\n+\t\t\t\tIFPGA_RAWDEV_RETIMER_MAC_TYPE_25GE_25GAUI) {\n+\t\t/* Clear line side TX statistics counters */\n+\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, rpst->port_id, 0);\n+\n+\t\t/* Clear line side RX statistics counters */\n+\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, rpst->port_id, 0);\n+\n+\t\t/* Clear NIC side TX statistics counters */\n+\t\tipn3ke_xmac_tx_clr_25G_stcs(hw, rpst->port_id, 1);\n+\n+\t\t/* Clear NIC side RX statistics counters */\n+\t\tipn3ke_xmac_rx_clr_25G_stcs(hw, rpst->port_id, 1);\n \t}\n \n \tipn3ke_rpst_link_update(dev, 0);\n",
    "prefixes": [
        "v4",
        "3/4"
    ]
}