Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85829/?format=api
https://patches.dpdk.org/api/patches/85829/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201228123302.3608-24-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": "<20201228123302.3608-24-talshn@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201228123302.3608-24-talshn@nvidia.com", "date": "2020-12-28T12:32:50", "name": "[v2,23/35] net/mlx5/linux: fix add OS dest_devx_tir action", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "bf6dbf01cfa7541f25c338d2742b23941448ab22", "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/20201228123302.3608-24-talshn@nvidia.com/mbox/", "series": [ { "id": 14482, "url": "https://patches.dpdk.org/api/series/14482/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14482", "date": "2020-12-28T12:32:28", "name": "mlx5 Windows support - part #6", "version": 2, "mbox": "https://patches.dpdk.org/series/14482/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85829/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85829/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 3B93AA09FF;\n\tMon, 28 Dec 2020 13:40:44 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8D6D1CB56;\n\tMon, 28 Dec 2020 13:34:11 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 5B0AACA4C\n for <dev@dpdk.org>; Mon, 28 Dec 2020 13:33:37 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 28 Dec 2020 14:33:34 +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 0BSCXWnc001295;\n Mon, 28 Dec 2020 14:33:34 +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, stable@dpdk.org", "Date": "Mon, 28 Dec 2020 14:32:50 +0200", "Message-Id": "<20201228123302.3608-24-talshn@nvidia.com>", "X-Mailer": "git-send-email 2.16.1.windows.4", "In-Reply-To": "<20201228123302.3608-1-talshn@nvidia.com>", "References": "<20201217173037.11396-2-talshn@nvidia.com>\n <20201228123302.3608-1-talshn@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v2 23/35] 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": "From: Ophir Munk <ophirmu@nvidia.com>\n\nWrap 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>\nAcked-by: Matan Azrad <matan@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 7706b3be48..6f3b7324ff 100644\n--- a/drivers/net/mlx5/linux/mlx5_flow_os.h\n+++ b/drivers/net/mlx5/linux/mlx5_flow_os.h\n@@ -366,6 +366,32 @@ mlx5_flow_os_create_flow_action_default_miss(void **action)\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 * Destroy flow action.\n *\ndiff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c\nindex 84a5c55ee0..aa8ca7f401 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@@ -942,9 +942,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": [ "v2", "23/35" ] }{ "id": 85829, "url": "