get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82842,
    "url": "https://patches.dpdk.org/api/patches/82842/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1604008681-414157-5-git-send-email-matan@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": "<1604008681-414157-5-git-send-email-matan@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1604008681-414157-5-git-send-email-matan@nvidia.com",
    "date": "2020-10-29T21:57:57",
    "name": "[4/8] common/mlx5: add glue func create flow hit action",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "24493711256265a8c52bbf79b7828118cfac669a",
    "submitter": {
        "id": 1911,
        "url": "https://patches.dpdk.org/api/people/1911/?format=api",
        "name": "Matan Azrad",
        "email": "matan@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/1604008681-414157-5-git-send-email-matan@nvidia.com/mbox/",
    "series": [
        {
            "id": 13477,
            "url": "https://patches.dpdk.org/api/series/13477/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13477",
            "date": "2020-10-29T21:57:53",
            "name": "net/mlx5: support flow hit steering action",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13477/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/82842/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/82842/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 62B93A04B5;\n\tThu, 29 Oct 2020 22:59:00 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 46885CAD4;\n\tThu, 29 Oct 2020 22:58:16 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 79582CAAF\n for <dev@dpdk.org>; Thu, 29 Oct 2020 22:58:11 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@nvidia.com) with SMTP; 29 Oct 2020 23:58:04 +0200",
            "from nvidia.com (pegasus25.mtr.labs.mlnx [10.210.16.10])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 09TLw4Tr022832;\n Thu, 29 Oct 2020 23:58:04 +0200"
        ],
        "From": "Matan Azrad <matan@nvidia.com>",
        "To": "Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "Cc": "dev@dpdk.org, Dekel Peled <dekelp@nvidia.com>",
        "Date": "Thu, 29 Oct 2020 21:57:57 +0000",
        "Message-Id": "<1604008681-414157-5-git-send-email-matan@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1604008681-414157-1-git-send-email-matan@nvidia.com>",
        "References": "<1604008681-414157-1-git-send-email-matan@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH 4/8] common/mlx5: add glue func create flow hit\n\taction",
        "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: Dekel Peled <dekelp@nvidia.com>\n\nAdd glue function to create the flow hit action using DV API,\nif rdma-core support exists.\n\nSigned-off-by: Dekel Peled <dekelp@nvidia.com>\n---\n drivers/common/mlx5/linux/meson.build |  2 ++\n drivers/common/mlx5/linux/mlx5_glue.c | 16 ++++++++++++++++\n drivers/common/mlx5/linux/mlx5_glue.h |  3 +++\n 3 files changed, 21 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/linux/meson.build b/drivers/common/mlx5/linux/meson.build\nindex 9ef8e18..7c552a3 100644\n--- a/drivers/common/mlx5/linux/meson.build\n+++ b/drivers/common/mlx5/linux/meson.build\n@@ -179,6 +179,8 @@ has_sym_args = [\n \t[ 'HAVE_MLX5_DR_CREATE_ACTION_DEST_ARRAY', 'infiniband/mlx5dv.h',\n \t'mlx5dv_dr_action_create_dest_array'],\n \t[ 'HAVE_DEVLINK', 'linux/devlink.h', 'DEVLINK_GENL_NAME' ],\n+        [ 'HAVE_MLX5DV_DR_ACTION_FLOW_HIT', 'infiniband/mlx5dv.h',\n+        'mlx5dv_dr_action_create_flow_hit'],\n ]\n config = configuration_data()\n foreach arg:has_sym_args\ndiff --git a/drivers/common/mlx5/linux/mlx5_glue.c b/drivers/common/mlx5/linux/mlx5_glue.c\nindex 4a76902..02007f6 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.c\n+++ b/drivers/common/mlx5/linux/mlx5_glue.c\n@@ -1283,6 +1283,21 @@\n #endif\n }\n \n+static void *\n+mlx5_glue_dr_action_create_flow_hit(struct mlx5dv_devx_obj *devx_obj,\n+\t\t\t\t    uint32_t offset, uint8_t reg_c_index)\n+{\n+#ifdef HAVE_MLX5DV_DR_ACTION_FLOW_HIT\n+\treturn mlx5dv_dr_action_create_flow_hit(devx_obj, offset, reg_c_index);\n+#else\n+\t(void)(devx_obj);\n+\t(void)(offset);\n+\t(void)(reg_c_index);\n+\terrno = ENOTSUP;\n+\treturn NULL;\n+#endif\n+}\n+\n __rte_cache_aligned\n const struct mlx5_glue *mlx5_glue = &(const struct mlx5_glue) {\n \t.version = MLX5_GLUE_VERSION,\n@@ -1402,4 +1417,5 @@\n \t.dv_free_var = mlx5_glue_dv_free_var,\n \t.dv_alloc_pp = mlx5_glue_dv_alloc_pp,\n \t.dv_free_pp = mlx5_glue_dv_free_pp,\n+\t.dr_action_create_flow_hit = mlx5_glue_dr_action_create_flow_hit,\n };\ndiff --git a/drivers/common/mlx5/linux/mlx5_glue.h b/drivers/common/mlx5/linux/mlx5_glue.h\nindex a5e7fb3..1a50e01 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.h\n+++ b/drivers/common/mlx5/linux/mlx5_glue.h\n@@ -345,6 +345,9 @@ struct mlx5_glue {\n \t\t\t(void *domain,\n \t\t\t size_t num_dest,\n \t\t\t struct mlx5dv_dr_action_dest_attr *dests[]);\n+\tvoid *(*dr_action_create_flow_hit)(struct mlx5dv_devx_obj *devx_obj,\n+\t\t\t\t\t   uint32_t offset,\n+\t\t\t\t\t   uint8_t reg_c_index);\n };\n \n extern const struct mlx5_glue *mlx5_glue;\n",
    "prefixes": [
        "4/8"
    ]
}