get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94360,
    "url": "https://patches.dpdk.org/api/patches/94360/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210617141815.93367-1-kevin.laatz@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": "<20210617141815.93367-1-kevin.laatz@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210617141815.93367-1-kevin.laatz@intel.com",
    "date": "2021-06-17T14:18:15",
    "name": "raw/ioat: fix missing ring pointer reset",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "092315c3b9b8dac569e67065d579d525a63f2387",
    "submitter": {
        "id": 921,
        "url": "https://patches.dpdk.org/api/people/921/?format=api",
        "name": "Kevin Laatz",
        "email": "kevin.laatz@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210617141815.93367-1-kevin.laatz@intel.com/mbox/",
    "series": [
        {
            "id": 17378,
            "url": "https://patches.dpdk.org/api/series/17378/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17378",
            "date": "2021-06-17T14:18:15",
            "name": "raw/ioat: fix missing ring pointer reset",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17378/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94360/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/94360/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 BC85DA0C4B;\n\tThu, 17 Jun 2021 16:18:22 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C13B0410F4;\n\tThu, 17 Jun 2021 16:18:21 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 81E5A410E2;\n Thu, 17 Jun 2021 16:18:19 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Jun 2021 07:18:18 -0700",
            "from silpixa00401122.ir.intel.com ([10.55.128.10])\n by fmsmga008.fm.intel.com with ESMTP; 17 Jun 2021 07:18:17 -0700"
        ],
        "IronPort-SDR": [
            "\n WDJHkqUw96HCBjSDzMbj1Apa4QclLIy5K12kPmzmrmzgg7DMHpSn+o/mZYumnouYYZCwNwS8AU\n pAxvG+yPEosg==",
            "\n +HPNn53k/nlCFibXx4zMWNPKQ7sXunO8nXk6UPP0kmn6CMJLwlOw25IybjR26HKZ3Yi/VIslIu\n 4f2h1y19Nr9w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10017\"; a=\"267524852\"",
            "E=Sophos;i=\"5.83,280,1616482800\"; d=\"scan'208\";a=\"267524852\"",
            "E=Sophos;i=\"5.83,280,1616482800\"; d=\"scan'208\";a=\"452793348\""
        ],
        "X-ExtLoop1": "1",
        "From": "Kevin Laatz <kevin.laatz@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, bruce.richardson@intel.com,\n Kevin Laatz <kevin.laatz@intel.com>",
        "Date": "Thu, 17 Jun 2021 14:18:15 +0000",
        "Message-Id": "<20210617141815.93367-1-kevin.laatz@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] raw/ioat: fix missing ring pointer reset",
        "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": "In the event of a device reconfigure, \"hdls_avail\" is not being reset. This\ncan lead to miscalculations in rte_ioat_completed_ops(), causing the\nfunction to report an incorrect amount of completed operations. This patch\nfixes the issue by resetting \"hdls_avail\" during the device configure.\n\nFixes: 74464005a2af (\"raw/ioat: rework SW ring layout\")\n\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\n---\n drivers/raw/ioat/ioat_common.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/raw/ioat/ioat_common.c b/drivers/raw/ioat/ioat_common.c\nindex f4771745cc..60de41152a 100644\n--- a/drivers/raw/ioat/ioat_common.c\n+++ b/drivers/raw/ioat/ioat_common.c\n@@ -174,6 +174,7 @@ idxd_dev_configure(const struct rte_rawdev *dev,\n \t}\n \trte_idxd->hdls_read = rte_idxd->batch_start = 0;\n \trte_idxd->batch_size = 0;\n+\trte_idxd->hdls_avail = 0;\n \n \treturn 0;\n }\n",
    "prefixes": []
}