get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82462,
    "url": "https://patches.dpdk.org/api/patches/82462/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201027232335.31427-63-ophirmu@nvidia.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20201027232335.31427-63-ophirmu@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201027232335.31427-63-ophirmu@nvidia.com",
    "date": "2020-10-27T23:23:25",
    "name": "[v1,62/72] net/mlx5/linux: fix add OS dest_devx_tir action",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "737fb5359896ff0f03968bff160ea21bffea630c",
    "submitter": {
        "id": 1908,
        "url": "https://patches.dpdk.org/api/people/1908/?format=api",
        "name": "Ophir Munk",
        "email": "ophirmu@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "https://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201027232335.31427-63-ophirmu@nvidia.com/mbox/",
    "series": [
        {
            "id": 13395,
            "url": "https://patches.dpdk.org/api/series/13395/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13395",
            "date": "2020-10-27T23:22:23",
            "name": "mlx5 Windows support - part #5",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13395/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/82462/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/82462/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 2D0A9A04B5;\n\tWed, 28 Oct 2020 00:47:17 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1C543C974;\n\tWed, 28 Oct 2020 00:26:05 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id C55864C96\n for <dev@dpdk.org>; Wed, 28 Oct 2020 00:24:03 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n ophirmu@nvidia.com) with SMTP; 28 Oct 2020 01:23:58 +0200",
            "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 09RNNrsE026642;\n Wed, 28 Oct 2020 01:23:58 +0200"
        ],
        "From": "Ophir Munk <ophirmu@nvidia.com>",
        "To": "dev@dpdk.org, Raslan Darawsheh <rasland@nvidia.com>",
        "Cc": "Ophir Munk <ophirmu@nvidia.com>, Matan Azrad <matan@nvidia.com>,\n Tal Shnaiderman <talshn@nvidia.com>,\n Thomas Monjalon <thomas@monjalon.net>, stable@dpdk.org",
        "Date": "Tue, 27 Oct 2020 23:23:25 +0000",
        "Message-Id": "<20201027232335.31427-63-ophirmu@nvidia.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20201027232335.31427-1-ophirmu@nvidia.com>",
        "References": "<20201027232335.31427-1-ophirmu@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v1 62/72] net/mlx5/linux: fix add OS\n\tdest_devx_tir action",
        "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": "Wrap glue call dv_create_flow_action_dest_devx_tir() with an OS API.\n\nFixes: b293fbf9672b (\"net/mlx5: add OS specific flow actions operations\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\n---\n drivers/net/mlx5/linux/mlx5_flow_os.h | 26 ++++++++++++++++++++++++++\n drivers/net/mlx5/mlx5_devx.c          |  7 +++----\n 2 files changed, 29 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/linux/mlx5_flow_os.h b/drivers/net/mlx5/linux/mlx5_flow_os.h\nindex 7706b3b..6f3b732 100644\n--- a/drivers/net/mlx5/linux/mlx5_flow_os.h\n+++ b/drivers/net/mlx5/linux/mlx5_flow_os.h\n@@ -367,6 +367,32 @@ mlx5_flow_os_create_flow_action_default_miss(void **action)\n }\n \n /**\n+ * Create flow action: dest_devx_tir\n+ *\n+ * @param[in] tir\n+ *   Pointer to DevX tir object\n+ * @param[out] action\n+ *   Pointer to a valid action on success, NULL otherwise.\n+ *\n+ * @return\n+ *   0 on success, or -1 on failure and errno is set.\n+ */\n+static inline int\n+mlx5_flow_os_create_flow_action_dest_devx_tir(struct mlx5_devx_obj *tir,\n+\t\t\t\t\t      void **action)\n+{\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+\t*action = mlx5_glue->dv_create_flow_action_dest_devx_tir(tir->obj);\n+\treturn (*action) ? 0 : -1;\n+#else\n+\t/* If no DV support - skip the operation and return success */\n+\tRTE_SET_USED(tir);\n+\t*action = 0;\n+\treturn 0;\n+#endif\n+}\n+\n+/**\n  * Destroy flow action.\n  *\n  * @param[in] action\ndiff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c\nindex 23d4190..1aff17c 100644\n--- a/drivers/net/mlx5/mlx5_devx.c\n+++ b/drivers/net/mlx5/mlx5_devx.c\n@@ -23,7 +23,7 @@\n #include \"mlx5_utils.h\"\n #include \"mlx5_devx.h\"\n #include \"mlx5_flow.h\"\n-\n+#include \"mlx5_flow_os.h\"\n \n /**\n  * Modify RQ vlan stripping offload\n@@ -855,9 +855,8 @@ mlx5_devx_hrxq_new(struct rte_eth_dev *dev, struct mlx5_hrxq *hrxq,\n \t\tgoto error;\n \t}\n #ifdef HAVE_IBV_FLOW_DV_SUPPORT\n-\thrxq->action = mlx5_glue->dv_create_flow_action_dest_devx_tir\n-\t\t\t\t\t\t\t       (hrxq->tir->obj);\n-\tif (!hrxq->action) {\n+\tif (mlx5_flow_os_create_flow_action_dest_devx_tir(hrxq->tir,\n+\t\t\t\t\t\t\t  &hrxq->action)) {\n \t\trte_errno = errno;\n \t\tgoto error;\n \t}\n",
    "prefixes": [
        "v1",
        "62/72"
    ]
}