get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100802,
    "url": "https://patches.dpdk.org/api/patches/100802/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-35-srikanth.k@oneconvergence.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": "<20211007184350.73858-35-srikanth.k@oneconvergence.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-35-srikanth.k@oneconvergence.com",
    "date": "2021-10-07T18:43:43",
    "name": "[v2,34/41] net/mlx5: add flow workspace APIs",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "e406909512d2300e6201611585d37dd8dc93155c",
    "submitter": {
        "id": 2368,
        "url": "https://patches.dpdk.org/api/people/2368/?format=api",
        "name": "Srikanth Kaka",
        "email": "srikanth.k@oneconvergence.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/20211007184350.73858-35-srikanth.k@oneconvergence.com/mbox/",
    "series": [
        {
            "id": 19455,
            "url": "https://patches.dpdk.org/api/series/19455/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19455",
            "date": "2021-10-07T18:43:09",
            "name": "add MLX5 FreeBSD support",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/19455/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/100802/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/100802/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5B83BA034F;\n\tFri,  8 Oct 2021 12:59:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B8422411F9;\n\tFri,  8 Oct 2021 12:56:35 +0200 (CEST)",
            "from mail-pg1-f181.google.com (mail-pg1-f181.google.com\n [209.85.215.181])\n by mails.dpdk.org (Postfix) with ESMTP id 17B0841217\n for <dev@dpdk.org>; Thu,  7 Oct 2021 20:45:47 +0200 (CEST)",
            "by mail-pg1-f181.google.com with SMTP id v11so647720pgb.8\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:45:47 -0700 (PDT)",
            "from srikanth-ThinkPad-T450.domain.name ([136.185.113.102])\n by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.45.43\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:45:45 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oneconvergence.com; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=NUPlaeL0knM7pWFGfVbew1QdeAM25axBWBhq5Sm0xD0=;\n b=R7ROlTRy3z4GH2Ygfx0AUvgGI9Pcw/zzNyvzRMBKQMuvsxcdZXNfzNqygp9+IzV0/a\n sa5zAsz8dacObcTFxZbGrAc2FH+qOjKqxp7+DuU56g6D8ntjsJD+GIHqZKGHNUzYN6fX\n h1VgF1qazGlKGXFUCWNhUNtzJ6PZEu+fv6DlM=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=NUPlaeL0knM7pWFGfVbew1QdeAM25axBWBhq5Sm0xD0=;\n b=xdkMmyzCWVnhH6FeBKXLudO1fFY6R2UAM33Y3e8Yjc/Jy4Td1FSbBLELbbkc+0C451\n dvyN5ibRXqo3+rGVxp3qE7s5kP5PPxKvCgSj0R9E1nuWK1PgUHalqdrNv0+2P/4bgH7K\n VIO2ofJL1ZNxiDOSwJnd70b0eLZgtMtTNdxdpQcL/qKQ8Ek9pD8wiNF2BlrWhM2MjyMH\n ZEE17DQRw0M9GTlHi10JBwghBAen+4vvZ7k6IzwJqtwP19PT2NouGu5oRtbffT0qB6rq\n +qSunZgUuxicbswDs55ETiBw8eErCGAx0HwXSssSsN+SnWUo4i4k7EW2+SU8MZrEhHcF\n tlcA==",
        "X-Gm-Message-State": "AOAM533GHJraWhFmXTRIDm8/XI6A50K1kQQ+VpzArFFpD4FKFBCYFPT6\n +j2MC+hl71oIkbX7Kv59hHZ+YA==",
        "X-Google-Smtp-Source": "\n ABdhPJzwvsbfApRfwfaouA5nuQZDfGyCje+4Gx3uktipsc8i2C912ij/kii/TpXVJUNcOuretvO/FA==",
        "X-Received": "by 2002:a62:6587:0:b0:44b:5c4b:fe8c with SMTP id\n z129-20020a626587000000b0044b5c4bfe8cmr6000834pfb.33.1633632346127;\n Thu, 07 Oct 2021 11:45:46 -0700 (PDT)",
        "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>",
        "To": "Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "Cc": "dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>,\n Anand Thulasiram <avelu@juniper.net>,\n Srikanth Kaka <srikanth.k@oneconvergence.com>",
        "Date": "Fri,  8 Oct 2021 00:13:43 +0530",
        "Message-Id": "<20211007184350.73858-35-srikanth.k@oneconvergence.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>",
        "References": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Fri, 08 Oct 2021 12:55:54 +0200",
        "Subject": "[dpdk-dev] [PATCH v2 34/41] net/mlx5: add flow workspace APIs",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "add flow workspace APIs\n\nSigned-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>\nSigned-off-by: Vag Singh <vag.singh@oneconvergence.com>\nSigned-off-by: Anand Thulasiram <avelu@juniper.net>\n---\n drivers/net/mlx5/freebsd/mlx5_flow_os.c |  38 ++\n drivers/net/mlx5/freebsd/mlx5_flow_os.h | 484 ++++++++++++++++++++++++\n 2 files changed, 522 insertions(+)\n create mode 100644 drivers/net/mlx5/freebsd/mlx5_flow_os.c\n create mode 100644 drivers/net/mlx5/freebsd/mlx5_flow_os.h",
    "diff": "diff --git a/drivers/net/mlx5/freebsd/mlx5_flow_os.c b/drivers/net/mlx5/freebsd/mlx5_flow_os.c\nnew file mode 100644\nindex 0000000000..893f00b824\n--- /dev/null\n+++ b/drivers/net/mlx5/freebsd/mlx5_flow_os.c\n@@ -0,0 +1,38 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#include \"mlx5_flow_os.h\"\n+\n+#include <rte_thread.h>\n+\n+/* Key of thread specific flow workspace data. */\n+static rte_thread_key key_workspace;\n+\n+int\n+mlx5_flow_os_init_workspace_once(void)\n+{\n+\tif (rte_thread_key_create(&key_workspace, flow_release_workspace)) {\n+\t\tDRV_LOG(ERR, \"Can't create flow workspace data thread key.\");\n+\t\treturn -ENOMEM;\n+\t}\n+\treturn 0;\n+}\n+\n+void *\n+mlx5_flow_os_get_specific_workspace(void)\n+{\n+\treturn rte_thread_value_get(key_workspace);\n+}\n+\n+int\n+mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data)\n+{\n+\treturn rte_thread_value_set(key_workspace, data);\n+}\n+\n+void\n+mlx5_flow_os_release_workspace(void)\n+{\n+\trte_thread_key_delete(key_workspace);\n+}\ndiff --git a/drivers/net/mlx5/freebsd/mlx5_flow_os.h b/drivers/net/mlx5/freebsd/mlx5_flow_os.h\nnew file mode 100644\nindex 0000000000..985e870b8a\n--- /dev/null\n+++ b/drivers/net/mlx5/freebsd/mlx5_flow_os.h\n@@ -0,0 +1,484 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#ifndef RTE_PMD_MLX5_FLOW_OS_H_\n+#define RTE_PMD_MLX5_FLOW_OS_H_\n+\n+#include \"mlx5_flow.h\"\n+\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n+extern const struct mlx5_flow_driver_ops mlx5_flow_dv_drv_ops;\n+#endif\n+\n+/**\n+ * Get OS enforced flow type. MLX5_FLOW_TYPE_MAX means \"non enforced type\".\n+ *\n+ * @return\n+ *   Flow type (MLX5_FLOW_TYPE_MAX)\n+ */\n+static inline enum mlx5_flow_drv_type\n+mlx5_flow_os_get_type(void)\n+{\n+\treturn MLX5_FLOW_TYPE_MAX;\n+}\n+\n+/**\n+ * Check if item type is supported.\n+ *\n+ * @param item\n+ *   Item type to check.\n+ *\n+ * @return\n+ *   True is this item type is supported, false if not supported.\n+ */\n+static inline bool\n+mlx5_flow_os_item_supported(int item __rte_unused)\n+{\n+\treturn true;\n+}\n+\n+/**\n+ * Check if action type is supported.\n+ *\n+ * @param action\n+ *   Action type to check.\n+ *\n+ * @return\n+ *   True is this action type is supported, false if not supported.\n+ */\n+static inline bool\n+mlx5_flow_os_action_supported(int action __rte_unused)\n+{\n+\treturn true;\n+}\n+\n+/**\n+ * Create flow rule.\n+ *\n+ * @param[in] matcher\n+ *   Pointer to match mask structure.\n+ * @param[in] match_value\n+ *   Pointer to match value structure.\n+ * @param[in] num_actions\n+ *   Number of actions in flow rule.\n+ * @param[in] actions\n+ *   Pointer to array of flow rule actions.\n+ * @param[out] flow\n+ *   Pointer to a valid flow rule object 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(void *matcher, void *match_value,\n+\t\t\t size_t num_actions, void *actions[], void **flow)\n+{\n+\t*flow = mlx5_glue->dv_create_flow(matcher, match_value,\n+\t\t\t\t\t  num_actions, actions);\n+\treturn (*flow) ? 0 : -1;\n+}\n+\n+/**\n+ * Destroy flow rule.\n+ *\n+ * @param[in] drv_flow_ptr\n+ *   Pointer to flow rule object.\n+ *\n+ * @return\n+ *   0 on success, or the value of errno on failure.\n+ */\n+static inline int\n+mlx5_flow_os_destroy_flow(void *drv_flow_ptr)\n+{\n+\treturn mlx5_glue->dv_destroy_flow(drv_flow_ptr);\n+}\n+\n+/**\n+ * Create flow table.\n+ *\n+ * @param[in] domain\n+ *   Pointer to relevant domain.\n+ * @param[in] table_id\n+ *   Table ID.\n+ * @param[out] table\n+ *   Pointer to a valid flow table object 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_tbl(void *domain, uint32_t table_id, void **table)\n+{\n+\t*table = mlx5_glue->dr_create_flow_tbl(domain, table_id);\n+\treturn (*table) ? 0 : -1;\n+}\n+\n+/**\n+ * Destroy flow table.\n+ *\n+ * @param[in] table\n+ *   Pointer to table object to destroy.\n+ *\n+ * @return\n+ *   0 on success, or the value of errno on failure.\n+ */\n+static inline int\n+mlx5_flow_os_destroy_flow_tbl(void *table)\n+{\n+\treturn mlx5_glue->dr_destroy_flow_tbl(table);\n+}\n+\n+/**\n+ * Create flow matcher in a flow table.\n+ *\n+ * @param[in] ctx\n+ *   Pointer to relevant device context.\n+ * @param[in] attr\n+ *   Pointer to relevant attributes.\n+ * @param[in] table\n+ *   Pointer to table object.\n+ * @param[out] matcher\n+ *   Pointer to a valid flow matcher object 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_matcher(void *ctx, void *attr, void *table,\n+\t\t\t\t void **matcher)\n+{\n+\t*matcher = mlx5_glue->dv_create_flow_matcher(ctx, attr, table);\n+\treturn (*matcher) ? 0 : -1;\n+}\n+\n+/**\n+ * Destroy flow matcher.\n+ *\n+ * @param[in] matcher\n+ *   Pointer to matcher object to destroy.\n+ *\n+ * @return\n+ *   0 on success, or the value of errno on failure.\n+ */\n+static inline int\n+mlx5_flow_os_destroy_flow_matcher(void *matcher)\n+{\n+\treturn mlx5_glue->dv_destroy_flow_matcher(matcher);\n+}\n+\n+/**\n+ * Create flow action: packet reformat.\n+ *\n+ * @param[in] ctx\n+ *   Pointer to relevant device context.\n+ * @param[in] domain\n+ *   Pointer to domain handler.\n+ * @param[in] resource\n+ *   Pointer to action data resource.\n+ * @param[out] action\n+ *   Pointer to a valid action on success, NULL otherwise.\n+ *\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_packet_reformat(void *ctx, void *domain,\n+\t\t\t\t\t\tvoid *resource, void **action)\n+{\n+\tstruct mlx5_flow_dv_encap_decap_resource *res =\n+\t\t\t(struct mlx5_flow_dv_encap_decap_resource *)resource;\n+\n+\t*action = mlx5_glue->dv_create_flow_action_packet_reformat\n+\t\t\t\t\t(ctx, res->reformat_type, res->ft_type,\n+\t\t\t\t\t domain, res->flags, res->size,\n+\t\t\t\t\t (res->size ? res->buf : NULL));\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: modify header.\n+ *\n+ * @param[in] ctx\n+ *   Pointer to relevant device context.\n+ * @param[in] domain\n+ *   Pointer to domain handler.\n+ * @param[in] resource\n+ *   Pointer to action data resource.\n+ * @param[in] actions_len\n+ *   Total length of actions data in resource.\n+ * @param[out] action\n+ *   Pointer to a valid action on success, NULL otherwise.\n+ *\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_modify_header(void *ctx, void *domain,\n+\t\t\t\t\t      void *resource,\n+\t\t\t\t\t      uint32_t actions_len,\n+\t\t\t\t\t      void **action)\n+{\n+\tstruct mlx5_flow_dv_modify_hdr_resource *res =\n+\t\t\t(struct mlx5_flow_dv_modify_hdr_resource *)resource;\n+\n+\t*action = mlx5_glue->dv_create_flow_action_modify_header\n+\t\t\t\t\t(ctx, res->ft_type, domain, res->root ?\n+\t\t\t\t\t MLX5DV_DR_ACTION_FLAGS_ROOT_LEVEL : 0,\n+\t\t\t\t\t actions_len, (uint64_t *)res->actions);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: destination flow table.\n+ *\n+ * @param[in] tbl_obj\n+ *   Pointer to destination table 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_flow_tbl(void *tbl_obj, void **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_dest_flow_tbl(tbl_obj);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: destination port.\n+ *\n+ * @param[in] domain\n+ *   Pointer to domain handler.\n+ * @param[in] port_id\n+ *   Destination port ID.\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_port(void *domain, uint32_t port_id,\n+\t\t\t\t\t  void **action)\n+{\n+\t/*\n+\t * Depending on rdma_core version the glue routine calls\n+\t * either mlx5dv_dr_action_create_dest_ib_port(domain, dev_port)\n+\t * or mlx5dv_dr_action_create_dest_vport(domain, vport_id).\n+\t */\n+\t*action = mlx5_glue->dr_create_flow_action_dest_port(domain, port_id);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: push vlan.\n+ *\n+ * @param[in] domain\n+ *   Pointer to domain handler.\n+ * @param[in] vlan_tag\n+ *   VLAN tag value.\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_push_vlan(void *domain, rte_be32_t vlan_tag,\n+\t\t\t\t\t  void **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_push_vlan(domain, vlan_tag);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: count.\n+ *\n+ * @param[in] cnt_obj\n+ *   Pointer to DevX counter object.\n+ * @param[in] offset\n+ *   Offset of counter in array.\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_count(void *cnt_obj, uint16_t offset,\n+\t\t\t\t      void **action)\n+{\n+\t*action = mlx5_glue->dv_create_flow_action_counter(cnt_obj, offset);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: tag.\n+ *\n+ * @param[in] tag\n+ *   Tag value.\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_tag(uint32_t tag, void **action)\n+{\n+\t*action = mlx5_glue->dv_create_flow_action_tag(tag);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: drop.\n+ *\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_drop(void **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_drop();\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: default miss.\n+ *\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_default_miss(void **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_default_miss();\n+\treturn (*action) ? 0 : -1;\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+ * Create flow action: sampler\n+ *\n+ * @param[in] attr\n+ *   Pointer to sampler attribute\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_os_flow_dr_create_flow_action_sampler\n+\t\t\t(struct mlx5dv_dr_flow_sampler_attr *attr,\n+\t\t\tvoid **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_sampler(attr);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Create flow action: dest_array\n+ *\n+ * @param[in] domain\n+ *   Pointer to relevant domain.\n+ * @param[in] num_dest\n+ *   Number of destinations array.\n+ * @param[in] dests\n+ *   Array of destination attributes.\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_os_flow_dr_create_flow_action_dest_array\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+\t\t\t void **action)\n+{\n+\t*action = mlx5_glue->dr_create_flow_action_dest_array(domain,\n+\t\t\t\t\t\t     num_dest, dests);\n+\treturn (*action) ? 0 : -1;\n+}\n+\n+/**\n+ * Destroy flow action.\n+ *\n+ * @param[in] action\n+ *   Pointer to action object to destroy.\n+ *\n+ * @return\n+ *   0 on success, or the value of errno on failure.\n+ */\n+static inline int\n+mlx5_flow_os_destroy_flow_action(void *action)\n+{\n+\treturn mlx5_glue->destroy_flow_action(action);\n+}\n+\n+/**\n+ * OS wrapper over Verbs API.\n+ * Adjust flow priority based on the highest layer and the request priority.\n+ *\n+ * @param[in] dev\n+ *    Pointer to the Ethernet device structure.\n+ * @param[in] priority\n+ *    The rule base priority.\n+ * @param[in] subpriority\n+ *    The priority based on the items.\n+ *\n+ * @return\n+ *    The new priority.\n+ */\n+static inline uint32_t\n+mlx5_os_flow_adjust_priority(struct rte_eth_dev *dev, int32_t priority,\n+\t\t\t  uint32_t subpriority)\n+{\n+\treturn mlx5_flow_adjust_priority(dev, priority, subpriority);\n+}\n+\n+static inline int\n+mlx5_os_flow_dr_sync_domain(void *domain, uint32_t flags)\n+{\n+\treturn mlx5_glue->dr_sync_domain(domain, flags);\n+}\n+#endif /* RTE_PMD_MLX5_FLOW_OS_H_ */\n",
    "prefixes": [
        "v2",
        "34/41"
    ]
}