Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/82443/?format=api
https://patches.dpdk.org/api/patches/82443/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201027232335.31427-54-ophirmu@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": "<20201027232335.31427-54-ophirmu@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201027232335.31427-54-ophirmu@nvidia.com", "date": "2020-10-27T23:23:16", "name": "[v1,53/72] net/mlx5/windws: add VLAN stubs", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9aa0c4beb83926a528f02d8baa0731c371601494", "submitter": { "id": 1908, "url": "https://patches.dpdk.org/api/people/1908/?format=api", "name": "Ophir Munk", "email": "ophirmu@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/20201027232335.31427-54-ophirmu@nvidia.com/mbox/", "series": [ { "id": 13395, "url": "https://patches.dpdk.org/api/series/13395/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13395", "date": "2020-10-27T23:22:23", "name": "mlx5 Windows support - part #5", "version": 1, "mbox": "https://patches.dpdk.org/series/13395/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/82443/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/82443/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 6A940A04B5;\n\tWed, 28 Oct 2020 00:41:29 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BB6DDC864;\n\tWed, 28 Oct 2020 00:25:33 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 444CB31FC\n for <dev@dpdk.org>; Wed, 28 Oct 2020 00:24:03 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n ophirmu@nvidia.com) with SMTP; 28 Oct 2020 01:23:57 +0200", "from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 09RNNrs5026642;\n Wed, 28 Oct 2020 01:23:57 +0200" ], "From": "Ophir Munk <ophirmu@nvidia.com>", "To": "dev@dpdk.org, Raslan Darawsheh <rasland@nvidia.com>", "Cc": "Ophir Munk <ophirmu@nvidia.com>, Matan Azrad <matan@nvidia.com>,\n Tal Shnaiderman <talshn@nvidia.com>, Thomas Monjalon <thomas@monjalon.net>", "Date": "Tue, 27 Oct 2020 23:23:16 +0000", "Message-Id": "<20201027232335.31427-54-ophirmu@nvidia.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20201027232335.31427-1-ophirmu@nvidia.com>", "References": "<20201027232335.31427-1-ophirmu@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v1 53/72] net/mlx5/windws: add VLAN stubs", "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": "This commit adds stubs to VLAN VM operations. It is the Windows\nequivalent implementation of (1). The Linux implementation was based on\nNetlink APIs which are not supported in Windows.\n\n(1)\ncommit 7af10d29a4a0 (\"net/mlx5/linux: refactor VLAN\")\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\n---\n drivers/net/mlx5/windows/meson.build | 1 +\n drivers/net/mlx5/windows/mlx5_vlan_os.c | 83 +++++++++++++++++++++++++++++++++\n 2 files changed, 84 insertions(+)\n create mode 100644 drivers/net/mlx5/windows/mlx5_vlan_os.c", "diff": "diff --git a/drivers/net/mlx5/windows/meson.build b/drivers/net/mlx5/windows/meson.build\nindex b5d9f0e..87e34d3 100644\n--- a/drivers/net/mlx5/windows/meson.build\n+++ b/drivers/net/mlx5/windows/meson.build\n@@ -6,5 +6,6 @@ sources += files(\n \t'mlx5_os.c',\n \t'mlx5_mp_os.c',\n \t'mlx5_ethdev_os.c',\n+\t'mlx5_vlan_os.c',\n )\n \ndiff --git a/drivers/net/mlx5/windows/mlx5_vlan_os.c b/drivers/net/mlx5/windows/mlx5_vlan_os.c\nnew file mode 100644\nindex 0000000..d3b11e0\n--- /dev/null\n+++ b/drivers/net/mlx5/windows/mlx5_vlan_os.c\n@@ -0,0 +1,83 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#include <stddef.h>\n+#include <errno.h>\n+#include <stdint.h>\n+#include <unistd.h>\n+\n+/*\n+ * Not needed by this file; included to work around the lack of off_t\n+ * definition for mlx5dv.h with unpatched rdma-core versions.\n+ */\n+#include <sys/types.h>\n+\n+#include <rte_ethdev_driver.h>\n+#include <rte_common.h>\n+\n+#include <mlx5.h>\n+#include <mlx5_malloc.h>\n+\n+/*\n+ * Release VLAN network device, created for VM workaround.\n+ *\n+ * @param[in] dev\n+ * Ethernet device object, Netlink context provider.\n+ * @param[in] vlan\n+ * Object representing the network device to release.\n+ */\n+void\n+mlx5_vlan_vmwa_release(struct rte_eth_dev *dev,\n+\t\t\t struct mlx5_vf_vlan *vlan)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(vlan);\n+}\n+\n+/**\n+ * Acquire VLAN interface with specified tag for VM workaround.\n+ *\n+ * @param[in] dev\n+ * Ethernet device object, Netlink context provider.\n+ * @param[in] vlan\n+ * Object representing the network device to acquire.\n+ */\n+void\n+mlx5_vlan_vmwa_acquire(struct rte_eth_dev *dev,\n+\t\t\t struct mlx5_vf_vlan *vlan)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(vlan);\n+}\n+\n+/*\n+ * Create per ethernet device VLAN VM workaround context\n+ *\n+ * @param dev\n+ * Pointer to Ethernet device structure.\n+ * @param ifindex\n+ * Interface index.\n+ *\n+ * @Return\n+ * Pointer to mlx5_nl_vlan_vmwa_context\n+ */\n+void *\n+mlx5_vlan_vmwa_init(struct rte_eth_dev *dev, uint32_t ifindex)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(ifindex);\n+\treturn NULL;\n+}\n+\n+/*\n+ * Destroy per ethernet device VLAN VM workaround context\n+ *\n+ * @param dev\n+ * Pointer to VM context\n+ */\n+void\n+mlx5_vlan_vmwa_exit(void *vmctx)\n+{\n+\tRTE_SET_USED(vmctx);\n+}\n", "prefixes": [ "v1", "53/72" ] }{ "id": 82443, "url": "