get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104977,
    "url": "http://patchwork.dpdk.org/api/patches/104977/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1638859858-734-19-git-send-email-anoobj@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1638859858-734-19-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1638859858-734-19-git-send-email-anoobj@marvell.com",
    "date": "2021-12-07T06:50:51",
    "name": "[18/25] crypto/cnxk: fix inflight cnt calculation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b75e660f16bce85acd1e10e333dcc6442ae142c4",
    "submitter": {
        "id": 1205,
        "url": "http://patchwork.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1638859858-734-19-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 20882,
            "url": "http://patchwork.dpdk.org/api/series/20882/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20882",
            "date": "2021-12-07T06:50:34",
            "name": "New features and improvements in cnxk crypto PMD",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20882/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104977/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/104977/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 93EBBA034F;\n\tTue,  7 Dec 2021 07:53:07 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 13BDC42776;\n\tTue,  7 Dec 2021 07:52:16 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id EC46742758\n for <dev@dpdk.org>; Tue,  7 Dec 2021 07:52:11 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1B76pMGB018337\n for <dev@dpdk.org>; Mon, 6 Dec 2021 22:52:11 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ct2q90057-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 06 Dec 2021 22:52:11 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Mon, 6 Dec 2021 22:52:09 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 6 Dec 2021 22:52:09 -0800",
            "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id 372993F7071;\n Mon,  6 Dec 2021 22:52:06 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=Goj5xAoeseeAM9xu2jYxBMSoxAfGgekZIQ9y6kmtU7A=;\n b=YIJBKk6AFjKHYDHEq2fclKkSqIShCEM4gLh4ZiitNcDD4kM+wVGDXalGP394fB1guldX\n vP3O96TPrvQGnXG9hPUM6TGfU6+vLG1/2YNOZVr36hi5BDnKPSJiPZED9PLKCHiUmcS8\n gBkq1g7j+EVMndzOevJ6lTLY4F1BEPulN+XzRkaU3lrCw34HAzXiBJL+3AXs/p+/rNR1\n UadqeqspEz/4rFLPNhmdBSjLQ46yYaPHc4v99EMBtpcMBJa9ydya430gW1Tfh7Bqm69c\n XG4XaJf6Co+FnifhVTNrD24w+De6bJgu7LfIleguRlWxjAlOO476lafraGXNLLIDCb+a xA==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Archana Muniganti\n <marchana@marvell.com>,\n Tejasree Kondoj <ktejasree@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 18/25] crypto/cnxk: fix inflight cnt calculation",
        "Date": "Tue, 7 Dec 2021 12:20:51 +0530",
        "Message-ID": "<1638859858-734-19-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1638859858-734-1-git-send-email-anoobj@marvell.com>",
        "References": "<1638859858-734-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "0yiMPxNwigSUdLpJgGvmfhLacdp7zmcI",
        "X-Proofpoint-ORIG-GUID": "0yiMPxNwigSUdLpJgGvmfhLacdp7zmcI",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-07_02,2021-12-06_02,2021-12-02_01",
        "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": "Inflight count calculation is updated to cover wrap around cases where\nhead can become smaller than tail.\n\n\nReported-by: Kiran Kumar K <kirankumark@marvell.com>\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\n---\n drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\nindex ca363bb..0336ae1 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\n@@ -156,7 +156,11 @@ pending_queue_retreat(uint64_t *index, const uint64_t mask, uint64_t nb_entry)\n static __rte_always_inline uint64_t\n pending_queue_infl_cnt(uint64_t head, uint64_t tail, const uint64_t mask)\n {\n-\treturn (head - tail) & mask;\n+\t/*\n+\t * Mask is nb_desc - 1. Add nb_desc to head and mask to account for\n+\t * cases when tail > head, which happens during wrap around.\n+\t */\n+\treturn ((head + mask + 1) - tail) & mask;\n }\n \n static __rte_always_inline uint64_t\n",
    "prefixes": [
        "18/25"
    ]
}