get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77001,
    "url": "http://patches.dpdk.org/api/patches/77001/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1599634114-148013-9-git-send-email-jiaweiw@nvidia.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": "<1599634114-148013-9-git-send-email-jiaweiw@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1599634114-148013-9-git-send-email-jiaweiw@nvidia.com",
    "date": "2020-09-09T06:48:30",
    "name": "[v6,08/12] common/mlx5: add glue function for mirroring",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "337bf103712023df1ea0a8e8ff395beeee7a287f",
    "submitter": {
        "id": 1939,
        "url": "http://patches.dpdk.org/api/people/1939/?format=api",
        "name": "Jiawei Wang",
        "email": "jiaweiw@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1599634114-148013-9-git-send-email-jiaweiw@nvidia.com/mbox/",
    "series": [
        {
            "id": 12045,
            "url": "http://patches.dpdk.org/api/series/12045/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12045",
            "date": "2020-09-09T06:48:29",
            "name": "support the flow-based traffic sampling",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/12045/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77001/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77001/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 D4FA6A04B1;\n\tWed,  9 Sep 2020 08:49:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 99EF31C0D9;\n\tWed,  9 Sep 2020 08:48:42 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 85C691C0BD\n for <dev@dpdk.org>; Wed,  9 Sep 2020 08:48:36 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n jiaweiw@nvidia.com) with SMTP; 9 Sep 2020 09:48:34 +0300",
            "from nvidia.com (gen-l-vrt-280.mtl.labs.mlnx [10.237.45.1])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0896mYG3029471;\n Wed, 9 Sep 2020 09:48:34 +0300"
        ],
        "From": "Jiawei Wang <jiaweiw@nvidia.com>",
        "To": "orika@nvidia.com, viacheslavo@nvidia.com, matan@nvidia.com,\n thomas@monjalon.net, ferruh.yigit@intel.com, marko.kovacevic@intel.com,\n arybchenko@solarflare.com",
        "Cc": "dev@dpdk.org, rasland@nvidia.com, ian.stokes@intel.com, fbl@redhat.com,\n asafp@nvidia.com",
        "Date": "Wed,  9 Sep 2020 09:48:30 +0300",
        "Message-Id": "<1599634114-148013-9-git-send-email-jiaweiw@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1599634114-148013-1-git-send-email-jiaweiw@nvidia.com>",
        "References": "<1598540492-406340-1-git-send-email-jiaweiw@nvidia.com>\n <1599634114-148013-1-git-send-email-jiaweiw@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v6 08/12] common/mlx5: add glue function for\n\tmirroring",
        "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": "Using extend Destination list in the FTE to implement the mirroring\nfeature.\n\nAdd two new rdma-core command for create group action and multiple\ndestination action.\n\nGroup action which is a group of sub-action will be used together\nfor input to multiple destination action.\n\nMultiple destination action can be used for mirroring packet to\ndifferent vport or Queue.\n\nSigned-off-by: Jiawei Wang <jiaweiw@nvidia.com>\n---\n drivers/common/mlx5/linux/meson.build |  2 ++\n drivers/common/mlx5/linux/mlx5_glue.c | 37 +++++++++++++++++++++++++++++++++++\n drivers/common/mlx5/linux/mlx5_glue.h |  5 +++++\n 3 files changed, 44 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/linux/meson.build b/drivers/common/mlx5/linux/meson.build\nindex 1aa137d..d53b891 100644\n--- a/drivers/common/mlx5/linux/meson.build\n+++ b/drivers/common/mlx5/linux/meson.build\n@@ -176,6 +176,8 @@ has_sym_args = [\n \t'mlx5dv_dr_action_create_flow_sampler'],\n \t[ 'HAVE_MLX5DV_DR_MEM_RECLAIM', 'infiniband/mlx5dv.h',\n \t'mlx5dv_dr_domain_set_reclaim_device_memory'],\n+\t[ 'HAVE_MLX5_DR_CREATE_ACTION_MULTI_DEST', 'infiniband/mlx5dv.h',\n+\t'mlx5dv_dr_action_create_multi_dest'],\n \t[ 'HAVE_DEVLINK', 'linux/devlink.h', 'DEVLINK_GENL_NAME' ],\n ]\n config = configuration_data()\ndiff --git a/drivers/common/mlx5/linux/mlx5_glue.c b/drivers/common/mlx5/linux/mlx5_glue.c\nindex 771a47c..e44d822 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.c\n+++ b/drivers/common/mlx5/linux/mlx5_glue.c\n@@ -1076,6 +1076,39 @@\n #endif\n }\n \n+static void *\n+mlx5_glue_dr_create_flow_action_group(size_t num_actions, void *actions[])\n+{\n+#ifdef HAVE_MLX5_DR_CREATE_ACTION_MULTI_DEST\n+\treturn mlx5dv_dr_action_create_group(num_actions,\n+\t\t\t\t(struct mlx5dv_dr_action **)actions);\n+#else\n+\t(void)num_actions;\n+\t(void)actions;\n+\terrno = ENOTSUP;\n+\treturn NULL;\n+#endif\n+}\n+\n+static void *\n+mlx5_glue_dr_create_flow_action_multi_dest(void *domain,\n+\t\t\t\t\t   size_t num_actions,\n+\t\t\t\t\t   void *actions[])\n+{\n+#ifdef HAVE_MLX5_DR_CREATE_ACTION_MULTI_DEST\n+\treturn mlx5dv_dr_action_create_multi_dest\n+\t\t\t\t(domain,\n+\t\t\t\tnum_actions,\n+\t\t\t\t(struct mlx5dv_dr_action **)actions);\n+#else\n+\t(void)domain;\n+\t(void)num_actions;\n+\t(void)actions;\n+\terrno = ENOTSUP;\n+\treturn NULL;\n+#endif\n+}\n+\n static int\n mlx5_glue_devx_query_eqn(struct ibv_context *ctx, uint32_t cpus,\n \t\t\t uint32_t *eqn)\n@@ -1354,6 +1387,10 @@\n \t.dr_reclaim_domain_memory = mlx5_glue_dr_reclaim_domain_memory,\n \t.dr_create_flow_action_sampler =\n \t\tmlx5_glue_dr_create_flow_action_sampler,\n+\t.dr_create_flow_action_group =\n+\t\tmlx5_glue_dr_create_flow_action_group,\n+\t.dr_create_flow_action_multi_dest =\n+\t\tmlx5_glue_dr_create_flow_action_multi_dest,\n \t.devx_query_eqn = mlx5_glue_devx_query_eqn,\n \t.devx_create_event_channel = mlx5_glue_devx_create_event_channel,\n \t.devx_destroy_event_channel = mlx5_glue_devx_destroy_event_channel,\ndiff --git a/drivers/common/mlx5/linux/mlx5_glue.h b/drivers/common/mlx5/linux/mlx5_glue.h\nindex a77d239..d5232d1 100644\n--- a/drivers/common/mlx5/linux/mlx5_glue.h\n+++ b/drivers/common/mlx5/linux/mlx5_glue.h\n@@ -322,6 +322,11 @@ struct mlx5_glue {\n \tvoid (*dv_free_pp)(struct mlx5dv_pp *pp);\n \tvoid *(*dr_create_flow_action_sampler)\n \t\t\t(struct mlx5dv_dr_flow_sampler_attr *attr);\n+\tvoid *(*dr_create_flow_action_group)(size_t num_actions,\n+\t\t\t\t\t     void *actions[]);\n+\tvoid *(*dr_create_flow_action_multi_dest)(void *domain,\n+\t\t\t\t\t\t  size_t num_actions,\n+\t\t\t\t\t\t  void *actions[]);\n };\n \n extern const struct mlx5_glue *mlx5_glue;\n",
    "prefixes": [
        "v6",
        "08/12"
    ]
}