get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 73848,
    "url": "http://patchwork.dpdk.org/api/patches/73848/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1594587541-110442-11-git-send-email-orika@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": "<1594587541-110442-11-git-send-email-orika@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1594587541-110442-11-git-send-email-orika@mellanox.com",
    "date": "2020-07-12T20:58:51",
    "name": "[v2,10/20] regex/mlx5: add engine status check",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fa9d75ddb5dbc110398a5cb35c79a8c56689fb9a",
    "submitter": {
        "id": 795,
        "url": "http://patchwork.dpdk.org/api/people/795/?format=api",
        "name": "Ori Kam",
        "email": "orika@mellanox.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1594587541-110442-11-git-send-email-orika@mellanox.com/mbox/",
    "series": [
        {
            "id": 10973,
            "url": "http://patchwork.dpdk.org/api/series/10973/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10973",
            "date": "2020-07-12T20:58:41",
            "name": "add Mellanox RegEx PMD",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/10973/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/73848/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/73848/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 8E1BDA052A;\n\tSun, 12 Jul 2020 23:00:58 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id AB5C21D561;\n\tSun, 12 Jul 2020 22:59:58 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 594A21D55C\n for <dev@dpdk.org>; Sun, 12 Jul 2020 22:59:56 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n orika@mellanox.com) with SMTP; 12 Jul 2020 23:59:53 +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 06CKxFG5025997;\n Sun, 12 Jul 2020 23:59:53 +0300"
        ],
        "From": "Ori Kam <orika@mellanox.com>",
        "To": "jerinj@marvell.com, xiang.w.wang@intel.com, matan@mellanox.com,\n viacheslavo@mellanox.com",
        "Cc": "guyk@marvell.com, dev@dpdk.org, pbhagavatula@marvell.com,\n shahafs@mellanox.com, hemant.agrawal@nxp.com, opher@mellanox.com,\n alexr@mellanox.com, dovrat@marvell.com, pkapoor@marvell.com,\n nipun.gupta@nxp.com, 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",
        "Date": "Sun, 12 Jul 2020 20:58:51 +0000",
        "Message-Id": "<1594587541-110442-11-git-send-email-orika@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1594587541-110442-1-git-send-email-orika@mellanox.com>",
        "References": "<1593941027-86651-1-git-send-email-orika@mellanox.com>\n <1594587541-110442-1-git-send-email-orika@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v2 10/20] regex/mlx5: add engine status check",
        "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": "This commit checks the engine status.\n\nSigned-off-by: Ori Kam <orika@mellanox.com>\n---\n drivers/regex/mlx5/mlx5_regex.c | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)",
    "diff": "diff --git a/drivers/regex/mlx5/mlx5_regex.c b/drivers/regex/mlx5/mlx5_regex.c\nindex d264ecd..c469a10 100644\n--- a/drivers/regex/mlx5/mlx5_regex.c\n+++ b/drivers/regex/mlx5/mlx5_regex.c\n@@ -17,6 +17,7 @@\n \n #include \"mlx5_regex.h\"\n #include \"mlx5_regex_utils.h\"\n+#include \"mlx5_rxp_csrs.h\"\n \n int mlx5_regex_logtype;\n \n@@ -49,6 +50,28 @@\n \tmlx5_glue->free_device_list(ibv_list);\n \treturn ibv_match;\n }\n+static int\n+mlx5_regex_engines_status(struct ibv_context *ctx, int num_engines)\n+{\n+\tuint32_t fpga_ident = 0;\n+\tint err;\n+\tint i;\n+\n+\tfor (i = 0; i < num_engines; i++) {\n+\t\terr = mlx5_devx_regex_register_read(ctx, i,\n+\t\t\t\t\t\t    MLX5_RXP_CSR_IDENTIFIER,\n+\t\t\t\t\t\t    &fpga_ident);\n+\t\tfpga_ident = (fpga_ident & (0x0000FFFF));\n+\t\tif (err || fpga_ident != MLX5_RXP_IDENTIFER) {\n+\t\t\tDRV_LOG(ERR, \"Failed setup RXP %d err %d database \"\n+\t\t\t\t\"memory 0x%x\", i, err, fpga_ident);\n+\t\t\tif (!err)\n+\t\t\t\terr = EINVAL;\n+\t\t\treturn err;\n+\t\t}\n+\t}\n+\treturn 0;\n+}\n \n static void\n mlx5_regex_get_name(char *name, struct rte_pci_device *pci_dev __rte_unused)\n@@ -109,6 +132,11 @@\n \t\trte_errno = ENOTSUP;\n \t\tgoto error;\n \t}\n+\tif (mlx5_regex_engines_status(ctx, 2)) {\n+\t\tDRV_LOG(ERR, \"RegEx engine error.\");\n+\t\trte_errno = ENOMEM;\n+\t\tgoto error;\n+\t}\n \tpriv = rte_zmalloc(\"mlx5 regex device private\", sizeof(*priv),\n \t\t\t   RTE_CACHE_LINE_SIZE);\n \tif (!priv) {\n",
    "prefixes": [
        "v2",
        "10/20"
    ]
}