get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73116,
    "url": "http://patches.dpdk.org/api/patches/73116/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1593941027-86651-6-git-send-email-orika@mellanox.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": "<1593941027-86651-6-git-send-email-orika@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1593941027-86651-6-git-send-email-orika@mellanox.com",
    "date": "2020-07-05T09:23:32",
    "name": "[05/20] common/mlx5: add support for regex capability query",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "acddd22eb24a0432588cf4c038ad6d6a6b3267bb",
    "submitter": {
        "id": 795,
        "url": "http://patches.dpdk.org/api/people/795/?format=api",
        "name": "Ori Kam",
        "email": "orika@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1593941027-86651-6-git-send-email-orika@mellanox.com/mbox/",
    "series": [
        {
            "id": 10792,
            "url": "http://patches.dpdk.org/api/series/10792/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10792",
            "date": "2020-07-05T09:23:27",
            "name": "add Mellanox RegEx PMD",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10792/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/73116/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/73116/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 857B0A00C5;\n\tSun,  5 Jul 2020 11:25:07 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 521DA1DAE3;\n\tSun,  5 Jul 2020 11:24:40 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id C42E81DAD4\n for <dev@dpdk.org>; Sun,  5 Jul 2020 11:24:37 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n orika@mellanox.com) with SMTP; 5 Jul 2020 12:24:36 +0300",
            "from pegasus04.mtr.labs.mlnx. (pegasus04.mtr.labs.mlnx\n [10.210.16.126])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0659OC3p028191;\n Sun, 5 Jul 2020 12:24:35 +0300"
        ],
        "From": "Ori Kam <orika@mellanox.com>",
        "To": "jerinj@marvell.com, xiang.w.wang@intel.com, matan@mellanox.com,\n viacheslavo@mellanox.com, Shahaf Shuler <shahafs@mellanox.com>",
        "Cc": "guyk@marvell.com, dev@dpdk.org, pbhagavatula@marvell.com,\n hemant.agrawal@nxp.com, opher@mellanox.com, alexr@mellanox.com,\n dovrat@marvell.com, pkapoor@marvell.com, nipun.gupta@nxp.com,\n bruce.richardson@intel.com, yang.a.hong@intel.com,\n harry.chang@intel.com, gu.jian1@zte.com.cn, shanjiangh@chinatelecom.cn,\n zhangy.yun@chinatelecom.cn, lixingfu@huachentel.com,\n wushuai@inspur.com, yuyingxia@yxlink.com, fanchenggang@sunyainfo.com,\n davidfgao@tencent.com, liuzhong1@chinaunicom.cn, zhaoyong11@huawei.com,\n oc@yunify.com, jim@netgate.com, hongjun.ni@intel.com, deri@ntop.org,\n fc@napatech.com, arthur.su@lionic.com, thomas@monjalon.net,\n orika@mellanox.com, rasland@mellanox.com,\n Yuval Avnery <yuvalav@mellanox.com>",
        "Date": "Sun,  5 Jul 2020 09:23:32 +0000",
        "Message-Id": "<1593941027-86651-6-git-send-email-orika@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1593941027-86651-1-git-send-email-orika@mellanox.com>",
        "References": "<1593941027-86651-1-git-send-email-orika@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH 05/20] common/mlx5: add support for regex\n\tcapability query",
        "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": "From: Yuval Avnery <yuvalav@mellanox.com>\n\nUpdate hca cap struct and common query hca cap function.\n\nSigned-off-by: Yuval Avnery <yuvalav@mellanox.com>\n---\n drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++\n drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++\n drivers/common/mlx5/mlx5_prm.h       | 9 +++++++--\n 3 files changed, 12 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c\nindex ec92eb6..74df035 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.c\n@@ -467,6 +467,9 @@ struct mlx5_devx_obj *\n \tattr->vdpa.queue_counters_valid = !!(MLX5_GET64(cmd_hca_cap, hcattr,\n \t\t\t\t\t\t\tgeneral_obj_types) &\n \t\t\t\t  MLX5_GENERAL_OBJ_TYPES_CAP_VIRTIO_Q_COUNTERS);\n+\tattr->regex = MLX5_GET(cmd_hca_cap, hcattr, regexp);\n+\tattr->regexp_num_of_engines = MLX5_GET(cmd_hca_cap, hcattr,\n+\t\t\t\t\t       regexp_num_of_engines);\n \tif (attr->qos.sup) {\n \t\tMLX5_SET(query_hca_cap_in, in, op_mod,\n \t\t\t MLX5_GET_HCA_CAP_OP_MOD_QOS_CAP |\ndiff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h\nindex 25704ef..bb14ca5 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.h\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.h\n@@ -90,6 +90,8 @@ struct mlx5_hca_attr {\n \tuint32_t vhca_id:16;\n \tuint32_t relaxed_ordering_write:1;\n \tuint32_t relaxed_ordering_read:1;\n+\tuint32_t regex:1;\n+\tuint32_t regexp_num_of_engines;\n \tstruct mlx5_hca_qos_attr qos;\n \tstruct mlx5_hca_vdpa_attr vdpa;\n };\ndiff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h\nindex ede7810..bfbc58b 100644\n--- a/drivers/common/mlx5/mlx5_prm.h\n+++ b/drivers/common/mlx5/mlx5_prm.h\n@@ -1034,9 +1034,14 @@ struct mlx5_ifc_cmd_hca_cap_bits {\n \tu8 log_max_qp_sz[0x8];\n \tu8 reserved_at_90[0xb];\n \tu8 log_max_qp[0x5];\n-\tu8 reserved_at_a0[0xb];\n+\tu8 regexp[0x1];\n+\tu8 reserved_at_a1[0x3];\n+\tu8 regexp_num_of_engines[0x4];\n+\tu8 reserved_at_a8[0x3];\n \tu8 log_max_srq[0x5];\n-\tu8 reserved_at_b0[0x10];\n+\tu8 reserved_at_b0[0x3];\n+\tu8 regexp_log_crspace_size[0x5];\n+\tu8 reserved_at_b8[0x8];\n \tu8 reserved_at_c0[0x8];\n \tu8 log_max_cq_sz[0x8];\n \tu8 reserved_at_d0[0xb];\n",
    "prefixes": [
        "05/20"
    ]
}