get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 133637,
    "url": "http://patches.dpdk.org/api/patches/133637/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231031070426.843086-1-zhichaox.zeng@intel.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": "<20231031070426.843086-1-zhichaox.zeng@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231031070426.843086-1-zhichaox.zeng@intel.com",
    "date": "2023-10-31T07:04:26",
    "name": "net/ice: fix DCF port statistics not cleared",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "af8e8892270ed221bea3a2b2319b0ac9ac59e701",
    "submitter": {
        "id": 2644,
        "url": "http://patches.dpdk.org/api/people/2644/?format=api",
        "name": "Zhichao Zeng",
        "email": "zhichaox.zeng@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231031070426.843086-1-zhichaox.zeng@intel.com/mbox/",
    "series": [
        {
            "id": 30068,
            "url": "http://patches.dpdk.org/api/series/30068/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30068",
            "date": "2023-10-31T07:04:26",
            "name": "net/ice: fix DCF port statistics not cleared",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30068/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/133637/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/133637/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 EDCE84324D;\n\tTue, 31 Oct 2023 07:56:03 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B85204027F;\n\tTue, 31 Oct 2023 07:56:03 +0100 (CET)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 9ED7E400EF;\n Tue, 31 Oct 2023 07:56:01 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Oct 2023 23:56:00 -0700",
            "from unknown (HELO zhichao-dpdk..) ([10.239.252.103])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Oct 2023 23:55:57 -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=1698735362; x=1730271362;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=0viGzSr1nCsAEj/oUHrLHTfNw///uFX5Xvt5H8IWztk=;\n b=GhjkXJ4BrSKBrv58zWzRgz3lPzEdJLo0OvuwvToS6WUKDnhIuUCiNdQw\n BaQaXX+4mtBKY8RQUlKOf2Shrp6sLvwwVXxmF0knWuVtxSO2wrpNguTvk\n 7bGfWzVAyRXo7eRA01T/MwRKE2yMWbs/okw1gNu5NE28dcJ+NkobjDdAM\n z3KZhcxHjlYpVg0a7CrFjbiQOcGSeSSA9v0kX/PM4ljypUHR96KZxUCAS\n HIE+9+cXZ4q6Bqg35pjx77W2ZlNKyvHrDCfwq2jFm2Cyww4yNCd8aT8Fc\n eL1NlhHRIOb6lBTJ4Ye+PoRhAxita8vAdv7d0GI3ijt1elVVUxfMQtaJE Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10879\"; a=\"387108058\"",
            "E=Sophos;i=\"6.03,265,1694761200\"; d=\"scan'208\";a=\"387108058\"",
            "E=McAfee;i=\"6600,9927,10879\"; a=\"884110737\"",
            "E=Sophos;i=\"6.03,265,1694761200\"; d=\"scan'208\";a=\"884110737\""
        ],
        "X-ExtLoop1": "1",
        "From": "Zhichao Zeng <zhichaox.zeng@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, tingtingx.liao@intel.com,\n Zhichao Zeng <zhichaox.zeng@intel.com>,\n Qiming Yang <qiming.yang@intel.com>, Qi Zhang <qi.z.zhang@intel.com>,\n Haiyue Wang <haiyue.wang@intel.com>",
        "Subject": "[PATCH] net/ice: fix DCF port statistics not cleared",
        "Date": "Tue, 31 Oct 2023 15:04:26 +0800",
        "Message-Id": "<20231031070426.843086-1-zhichaox.zeng@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "As the kernel driver does not reset the statistics after exiting testpmd,\nthe previous statistics being retained the next time testpmd is started.\n\nCall 'ice_dcf_stats_reset' during the initialization of the DCF in\norder to clear any statistics that may exist from the last use of the DCF\nand to avoid statistics errors.\n\nFixes: 7564d5509611 (\"net/ice: add DCF hardware initialization\")\nCc: stable@dpdk.org\n\nSigned-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>\n---\n drivers/net/ice/ice_dcf_ethdev.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex 065ec728c2..29699c2c32 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -1937,6 +1937,8 @@ ice_dcf_dev_init(struct rte_eth_dev *eth_dev)\n \t\treturn -1;\n \t}\n \n+\tice_dcf_stats_reset(eth_dev);\n+\n \tdcf_config_promisc(adapter, false, false);\n \treturn 0;\n }\n",
    "prefixes": []
}