Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85361/?format=api
https://patches.dpdk.org/api/patches/85361/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201217173037.11396-27-talshn@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": "<20201217173037.11396-27-talshn@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201217173037.11396-27-talshn@nvidia.com", "date": "2020-12-17T17:30:28", "name": "[26/35] net/mlx5/windows: create flow action dest TIR object", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "456c75834fbeec428ec08cb13bc82c7b263f8d23", "submitter": { "id": 1893, "url": "https://patches.dpdk.org/api/people/1893/?format=api", "name": "Tal Shnaiderman", "email": "talshn@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/20201217173037.11396-27-talshn@nvidia.com/mbox/", "series": [ { "id": 14351, "url": "https://patches.dpdk.org/api/series/14351/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14351", "date": "2020-12-17T17:30:04", "name": "mlx5 Windows support - part #6", "version": 1, "mbox": "https://patches.dpdk.org/series/14351/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85361/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85361/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 54E45A09F6;\n\tThu, 17 Dec 2020 18:41:26 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C2E9BCB9F;\n\tThu, 17 Dec 2020 18:33:47 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id F3324CA56\n for <dev@dpdk.org>; Thu, 17 Dec 2020 18:33:10 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 17 Dec 2020 19:33:07 +0200", "from nvidia.com (l-wincomp04-vm.mtl.labs.mlnx [10.237.1.5])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BHHX45l021771;\n Thu, 17 Dec 2020 19:33:07 +0200" ], "From": "Tal Shnaiderman <talshn@nvidia.com>", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, matan@nvidia.com, rasland@nvidia.com,\n ophirmu@nvidia.com", "Date": "Thu, 17 Dec 2020 19:30:28 +0200", "Message-Id": "<20201217173037.11396-27-talshn@nvidia.com>", "X-Mailer": "git-send-email 2.16.1.windows.4", "In-Reply-To": "<20201217173037.11396-1-talshn@nvidia.com>", "References": "<20201217173037.11396-1-talshn@nvidia.com>", "Subject": "[dpdk-dev] [PATCH 26/35] net/mlx5/windows: create flow action dest\n\tTIR object", "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: Ophir Munk <ophirmu@nvidia.com>\n\nThis commit implements mlx5_flow_os_create_flow_action_dest_devx_tir()\nAPI as the Linux rdma-core equivalent. Missing rdma-core parameters are\nadded to file mlx5_win_defs.h. The action TIR id and type\n(MLX5_FLOW_CONTEXT_DEST_TYPE_TIR) are saved in the action struct. The\naction struct will be added to array of actions and will be used later\nby the flow creation API.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/windows/mlx5_win_defs.h | 17 +++++++++++++++++\n drivers/net/mlx5/windows/mlx5_flow_os.c | 22 +++++++++++++++-------\n 2 files changed, 32 insertions(+), 7 deletions(-)", "diff": "diff --git a/drivers/common/mlx5/windows/mlx5_win_defs.h b/drivers/common/mlx5/windows/mlx5_win_defs.h\nindex 231c3220a3..8a1c2c5af9 100644\n--- a/drivers/common/mlx5/windows/mlx5_win_defs.h\n+++ b/drivers/common/mlx5/windows/mlx5_win_defs.h\n@@ -189,6 +189,17 @@ struct mlx5_matcher {\n \tuint64_t match_buf[];\n };\n \n+/*\n+ * Windows mlx5_action. This struct is the\n+ * equivalent of rdma-core struct mlx5dv_dr_action.\n+ */\n+struct mlx5_action {\n+\tint type;\n+\tstruct {\n+\t\tuint32_t id;\n+\t} dest_tir;\n+};\n+\n struct mlx5_err_cqe {\n \tuint8_t\t\trsvd0[32];\n \tuint32_t\tsrqn;\n@@ -233,4 +244,10 @@ enum {\n \tMLX5_FLOW_CONTEXT_DEST_TYPE_TIR = 0x2,\n \tMLX5_FLOW_CONTEXT_DEST_TYPE_QP = 0x3,\n };\n+\n+enum {\n+\tMLX5_MATCH_OUTER_HEADERS = 1 << 0,\n+\tMLX5_MATCH_MISC_PARAMETERS = 1 << 1,\n+\tMLX5_MATCH_INNER_HEADERS = 1 << 2,\n+};\n #endif /* __MLX5_WIN_DEFS_H__ */\ndiff --git a/drivers/net/mlx5/windows/mlx5_flow_os.c b/drivers/net/mlx5/windows/mlx5_flow_os.c\nindex 0ade518910..0c0fba3720 100644\n--- a/drivers/net/mlx5/windows/mlx5_flow_os.c\n+++ b/drivers/net/mlx5/windows/mlx5_flow_os.c\n@@ -134,10 +134,19 @@ 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-\tRTE_SET_USED(tir);\n-\t*action = NULL;\n-\trte_errno = ENOTSUP;\n-\treturn -rte_errno;\n+\tstruct mlx5_action *mlx5_action =\n+\t\tmlx5_malloc(MLX5_MEM_ZERO,\n+\t\t sizeof(struct mlx5_action),\n+\t\t 0, SOCKET_ID_ANY);\n+\n+\tif (!mlx5_action) {\n+\t\trte_errno = ENOMEM;\n+\t\treturn -rte_errno;\n+\t}\n+\tmlx5_action->type = MLX5_FLOW_CONTEXT_DEST_TYPE_TIR;\n+\tmlx5_action->dest_tir.id = tir->id;\n+\t*action = mlx5_action;\n+\treturn 0;\n }\n \n /**\n@@ -152,9 +161,8 @@ mlx5_flow_os_create_flow_action_dest_devx_tir(struct mlx5_devx_obj *tir,\n int\n mlx5_flow_os_destroy_flow_action(void *action)\n {\n-\tRTE_SET_USED(action);\n-\trte_errno = ENOTSUP;\n-\treturn -rte_errno;\n+\tmlx5_free(action);\n+\treturn 0;\n }\n \n /**\n", "prefixes": [ "26/35" ] }{ "id": 85361, "url": "