Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84971/?format=api
http://patches.dpdk.org/api/patches/84971/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201210150648.8784-25-talshn@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": "<20201210150648.8784-25-talshn@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201210150648.8784-25-talshn@nvidia.com", "date": "2020-12-10T15:06:39", "name": "[v2,24/33] common/mlx5/windows: add getter functions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "94f141360977d7b75d6e52ef1132adf5ddd1007a", "submitter": { "id": 1893, "url": "http://patches.dpdk.org/api/people/1893/?format=api", "name": "Tal Shnaiderman", "email": "talshn@nvidia.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201210150648.8784-25-talshn@nvidia.com/mbox/", "series": [ { "id": 14240, "url": "http://patches.dpdk.org/api/series/14240/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14240", "date": "2020-12-10T15:06:17", "name": "mlx5 Windows support - part #5", "version": 2, "mbox": "http://patches.dpdk.org/series/14240/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/84971/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/84971/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 0C9A3A04DB;\n\tThu, 10 Dec 2020 16:15:26 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0FAC6CA62;\n\tThu, 10 Dec 2020 16:08:21 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 0AC2BC9A2\n for <dev@dpdk.org>; Thu, 10 Dec 2020 16:07:52 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 10 Dec 2020 17:07:47 +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 0BAF7h9G007994;\n Thu, 10 Dec 2020 17:07:47 +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, 10 Dec 2020 17:06:39 +0200", "Message-Id": "<20201210150648.8784-25-talshn@nvidia.com>", "X-Mailer": "git-send-email 2.16.1.windows.4", "In-Reply-To": "<20201210150648.8784-1-talshn@nvidia.com>", "References": "<20201027232335.31427-2-ophirmu@nvidia.com>\n <20201210150648.8784-1-talshn@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v2 24/33] common/mlx5/windows: add getter\n\tfunctions", "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\nAdd file mlx5/windows/mlx5_common_os.h the equivalent of Linux file\nmlx5/linux/mlx5_common_os.h. It contains getters functions\nmlx5_os_get_dev_device_name, mlx5_os_get_ctx_device_name,\nmlx5_os_get_ctx_device_path, mlx5_os_get_umem_id,\nmlx5_os_get_devx_channel_fd.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/common/mlx5/windows/mlx5_common_os.h | 91 ++++++++++++++++++++++++++++\n 1 file changed, 91 insertions(+)", "diff": "diff --git a/drivers/common/mlx5/windows/mlx5_common_os.h b/drivers/common/mlx5/windows/mlx5_common_os.h\nindex cce7c88c6a..2abdb2c3ae 100644\n--- a/drivers/common/mlx5/windows/mlx5_common_os.h\n+++ b/drivers/common/mlx5/windows/mlx5_common_os.h\n@@ -48,4 +48,95 @@ mlx5_os_free(void *addr)\n {\n \t_aligned_free(addr);\n }\n+\n+/**\n+ * Get fd. Given a pointer to DevX channel object of type\n+ * 'struct mlx5dv_devx_event_channel*' - return its fd.\n+ * Under Windows it is a stub.\n+ *\n+ * @param[in] channel\n+ * Pointer to channel object.\n+ *\n+ * @return\n+ * 0\n+ */\n+static inline int\n+mlx5_os_get_devx_channel_fd(void *channel)\n+{\n+\tif (!channel)\n+\t\treturn 0;\n+\treturn 0;\n+}\n+\n+/**\n+ * Get device name. Given a device pointer - return a\n+ * pointer to the corresponding device name.\n+ *\n+ * @param[in] dev\n+ * Pointer to device.\n+ *\n+ * @return\n+ * Pointer to device name if dev is valid, NULL otherwise.\n+ */\n+static inline const char *\n+mlx5_os_get_dev_device_name(void *dev)\n+{\n+\tif (!dev)\n+\t\treturn NULL;\n+\treturn ((struct devx_device *)dev)->name;\n+}\n+\n+/**\n+ * Get device name. Given a context pointer - return a\n+ * pointer to the corresponding device name.\n+ *\n+ * @param[in] ctx\n+ * Pointer to context.\n+ *\n+ * @return\n+ * Pointer to device name if ctx is valid, NULL otherwise.\n+ */\n+static inline const char *\n+mlx5_os_get_ctx_device_name(void *ctx)\n+{\n+\tif (!ctx)\n+\t\treturn NULL;\n+\treturn ((mlx5_context_st *)ctx)->mlx5_dev.name;\n+}\n+\n+/**\n+ * Get a device path name. Given acontext pointer - return a\n+ * pointer to the corresponding device path name.\n+ *\n+ * @param[in] ctx\n+ * Pointer to context.\n+ *\n+ * @return\n+ * Pointer to device path name if ctx is valid, NULL otherwise.\n+ */\n+\n+static inline const char *\n+mlx5_os_get_ctx_device_path(void *ctx)\n+{\n+\tif (!ctx)\n+\t\treturn NULL;\n+\treturn ((mlx5_context_st *)ctx)->mlx5_dev.dev_pnp_id;\n+}\n+\n+/**\n+ * Get umem id. Given a pointer to umem object of type return its id.\n+ *\n+ * @param[in] umem\n+ * Pointer to umem object.\n+ *\n+ * @return\n+ * The umem id if umem is valid, 0 otherwise.\n+ */\n+static inline uint32_t\n+mlx5_os_get_umem_id(void *umem)\n+{\n+\tif (!umem)\n+\t\treturn 0;\n+\treturn ((struct mlx5_devx_umem *)umem)->umem_id;\n+}\n #endif /* RTE_PMD_MLX5_COMMON_OS_H_ */\n", "prefixes": [ "v2", "24/33" ] }{ "id": 84971, "url": "