get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87989,
    "url": "http://patches.dpdk.org/api/patches/87989/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20c35b607a623f615338a84c4af5b80c1d95b39b.1613664690.git.dekelp@nvidia.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": "<20c35b607a623f615338a84c4af5b80c1d95b39b.1613664690.git.dekelp@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20c35b607a623f615338a84c4af5b80c1d95b39b.1613664690.git.dekelp@nvidia.com",
    "date": "2021-02-18T16:18:05",
    "name": "common/mlx5: fix output buffer size calculation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ac0473859b9578d4fc1b6e65009c85073adca174",
    "submitter": {
        "id": 1897,
        "url": "http://patches.dpdk.org/api/people/1897/?format=api",
        "name": "Dekel Peled",
        "email": "dekelp@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20c35b607a623f615338a84c4af5b80c1d95b39b.1613664690.git.dekelp@nvidia.com/mbox/",
    "series": [
        {
            "id": 15288,
            "url": "http://patches.dpdk.org/api/series/15288/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15288",
            "date": "2021-02-18T16:18:05",
            "name": "common/mlx5: fix output buffer size calculation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/15288/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/87989/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/87989/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 026C3A054A;\n\tThu, 18 Feb 2021 17:18:17 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 51ADB1607DE;\n\tThu, 18 Feb 2021 17:18:16 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id C701F40040\n for <dev@dpdk.org>; Thu, 18 Feb 2021 17:18:14 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n dekelp@nvidia.com) with SMTP; 18 Feb 2021 18:18:12 +0200",
            "from mtl-vdi-280.wap.labs.mlnx. (mtl-vdi-280.wap.labs.mlnx\n [10.228.136.74])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 11IGICh4028243;\n Thu, 18 Feb 2021 18:18:12 +0200"
        ],
        "From": "Dekel Peled <dekelp@nvidia.com>",
        "To": "matan@nvidia.com, shahafs@nvidia.com, viacheslavo@nvidia.com",
        "Cc": "dev@dpdk.org, stable@dpdk.org",
        "Date": "Thu, 18 Feb 2021 18:18:05 +0200",
        "Message-Id": "\n <20c35b607a623f615338a84c4af5b80c1d95b39b.1613664690.git.dekelp@nvidia.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] common/mlx5: fix output buffer size calculation",
        "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": "Previous patch included a glue function call, with wrong size\ncalculation for an output buffer.\nThis patch fixes the issue, using the correct size calculation.\n\nFixes: bb7ef9a96281 (\"common/mlx5: add register access DevX routine\")\nCc: stable@dpdk.org\n\nSigned-off-by: Dekel Peled <dekelp@nvidia.com>\nAcked-by: Slava Ovsiienko <viacheslavo@nvidia.com>\n---\n drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c\nindex cc70c794e7..0185d57036 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.c\n@@ -53,8 +53,8 @@ mlx5_devx_cmd_register_read(void *ctx, uint16_t reg_id, uint32_t arg,\n \tMLX5_SET(access_register_in, in, register_id, reg_id);\n \tMLX5_SET(access_register_in, in, argument, arg);\n \trc = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out,\n-\t\t\t\t\t MLX5_ST_SZ_DW(access_register_out) *\n-\t\t\t\t\t sizeof(uint32_t) + dw_cnt);\n+\t\t\t\t\t MLX5_ST_SZ_BYTES(access_register_out) +\n+\t\t\t\t\t sizeof(uint32_t) * dw_cnt);\n \tif (rc)\n \t\tgoto error;\n \tstatus = MLX5_GET(access_register_out, out, status);\n",
    "prefixes": []
}