get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 70745,
    "url": "http://patchwork.dpdk.org/api/patches/70745/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1591113104-79071-1-git-send-email-matan@mellanox.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": "<1591113104-79071-1-git-send-email-matan@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1591113104-79071-1-git-send-email-matan@mellanox.com",
    "date": "2020-06-02T15:51:43",
    "name": "[1/2] common/mlx5: add virtio queue protection domain",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d561275ca797952bca325d0279b08d34e162a114",
    "submitter": {
        "id": 796,
        "url": "http://patchwork.dpdk.org/api/people/796/?format=api",
        "name": "Matan Azrad",
        "email": "matan@mellanox.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patchwork.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1591113104-79071-1-git-send-email-matan@mellanox.com/mbox/",
    "series": [
        {
            "id": 10296,
            "url": "http://patchwork.dpdk.org/api/series/10296/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10296",
            "date": "2020-06-02T15:51:43",
            "name": "[1/2] common/mlx5: add virtio queue protection domain",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/10296/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/70745/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/70745/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 11DC8A0514;\n\tTue,  2 Jun 2020 17:52:14 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EEB711BF9E;\n\tTue,  2 Jun 2020 17:52:12 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 23E531E34\n for <dev@dpdk.org>; Tue,  2 Jun 2020 17:52:12 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 2 Jun 2020 18:52:11 +0300",
            "from pegasus25.mtr.labs.mlnx. (pegasus25.mtr.labs.mlnx\n [10.210.16.10])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 052FqBDC015290;\n Tue, 2 Jun 2020 18:52:11 +0300"
        ],
        "From": "Matan Azrad <matan@mellanox.com>",
        "To": "Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Cc": "dev@dpdk.org, Maxime Coquelin <maxime.coquelin@redhat.com>,\n stable@dpdk.org, Xueming Li <xuemingl@mellanox.com>",
        "Date": "Tue,  2 Jun 2020 15:51:43 +0000",
        "Message-Id": "<1591113104-79071-1-git-send-email-matan@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dpdk-dev] [PATCH 1/2] common/mlx5: add virtio queue protection\n\tdomain",
        "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 <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": "Starting from FW version 22.27.4002, it is required to configure\nprotection domain (PD) for each virtq created by DevX.\n\nAdd PD requirement in virtq DevX APIs.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Matan Azrad <matan@mellanox.com>\nSigned-off-by: Xueming Li <xuemingl@mellanox.com>\n---\n drivers/common/mlx5/mlx5_devx_cmds.c | 1 +\n drivers/common/mlx5/mlx5_devx_cmds.h | 1 +\n drivers/common/mlx5/mlx5_prm.h       | 4 +++-\n 3 files changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c\nindex 4bf22ce..3b6a857 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.c\n@@ -1262,6 +1262,7 @@ struct mlx5_devx_obj *\n \tMLX5_SET(virtio_q, virtctx, umem_3_size, attr->umems[2].size);\n \tMLX5_SET64(virtio_q, virtctx, umem_3_offset, attr->umems[2].offset);\n \tMLX5_SET(virtio_q, virtctx, counter_set_id, attr->counters_obj_id);\n+\tMLX5_SET(virtio_q, virtctx, pd, attr->pd);\n \tMLX5_SET(virtio_net_q, virtq, tisn_or_qpn, attr->tis_id);\n \tvirtq_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out,\n \t\t\t\t\t\t    sizeof(out));\ndiff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h\nindex 59a70a0..3ce44c3 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.h\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.h\n@@ -259,6 +259,7 @@ struct mlx5_devx_virtq_attr {\n \tuint16_t hw_available_index;\n \tuint16_t hw_used_index;\n \tuint16_t q_size;\n+\tuint32_t pd:24;\n \tuint32_t virtio_version_1_0:1;\n \tuint32_t tso_ipv4:1;\n \tuint32_t tso_ipv6:1;\ndiff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h\nindex 5fc10d6..c63795f 100644\n--- a/drivers/common/mlx5/mlx5_prm.h\n+++ b/drivers/common/mlx5/mlx5_prm.h\n@@ -2088,7 +2088,9 @@ struct mlx5_ifc_virtio_q_bits {\n \tu8 umem_3_size[0x20];\n \tu8 umem_3_offset[0x40];\n \tu8 counter_set_id[0x20];\n-\tu8 reserved_at_320[0xe0];\n+\tu8 reserved_at_320[0x8];\n+\tu8 pd[0x18];\n+\tu8 reserved_at_340[0xc0];\n };\n \n struct mlx5_ifc_virtio_net_q_bits {\n",
    "prefixes": [
        "1/2"
    ]
}