Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85076/?format=api
https://patches.dpdk.org/api/patches/85076/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201213102056.11380-32-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": "<20201213102056.11380-32-talshn@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201213102056.11380-32-talshn@nvidia.com", "date": "2020-12-13T10:20:55", "name": "[v3,31/32] net/mlx5/windows: implement mlx5 mac addr add", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4cf61df0ce5504b631a9af974debcfcb9c341518", "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/20201213102056.11380-32-talshn@nvidia.com/mbox/", "series": [ { "id": 14276, "url": "https://patches.dpdk.org/api/series/14276/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14276", "date": "2020-12-13T10:20:24", "name": "mlx5 Windows support - part #5", "version": 3, "mbox": "https://patches.dpdk.org/series/14276/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85076/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85076/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 DFC67A04B5;\n\tSun, 13 Dec 2020 11:31:09 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 240D1CAC0;\n\tSun, 13 Dec 2020 11:22:32 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id F2E23C9BC\n for <dev@dpdk.org>; Sun, 13 Dec 2020 11:21:48 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 13 Dec 2020 12:21:44 +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 0BDALe1v018562;\n Sun, 13 Dec 2020 12:21:44 +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": "Sun, 13 Dec 2020 12:20:55 +0200", "Message-Id": "<20201213102056.11380-32-talshn@nvidia.com>", "X-Mailer": "git-send-email 2.16.1.windows.4", "In-Reply-To": "<20201213102056.11380-1-talshn@nvidia.com>", "References": "<20201210150648.8784-2-talshn@nvidia.com>\n <20201213102056.11380-1-talshn@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v3 31/32] net/mlx5/windows: implement mlx5 mac\n\taddr add", "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": "Get the list of MAC addresses and verify if the input mac parameter\nalready exists. If not - return -ENOTSUP (as Windows does not support\nadding new MAC addresses). If the MAC address exists (EEXIST) return 0\n(the equivalent of Linux implementation of this API).\n\nSigned-off-by: Tal Shnaiderman <talshn@nvidia.com>\n---\n drivers/net/mlx5/windows/mlx5_os.c | 36 ++++++++++++++++++++++++++++++++++++\n 1 file changed, 36 insertions(+)", "diff": "diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c\nindex bef10aba30..ccf0bc3be9 100644\n--- a/drivers/net/mlx5/windows/mlx5_os.c\n+++ b/drivers/net/mlx5/windows/mlx5_os.c\n@@ -188,6 +188,42 @@ mlx5_os_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)\n \tDRV_LOG(WARNING, \"mlx5_os_mac_addr_remove is not support\");\n }\n \n+/**\n+ * Adds a MAC address to the device\n+ * Currently it has no support under Windows.\n+ *\n+ * @param dev\n+ * Pointer to Ethernet device structure.\n+ * @param mac_addr\n+ * MAC address to register.\n+ * @param index\n+ * MAC address index.\n+ *\n+ * @return\n+ * 0 on success, a negative errno value otherwise\n+ */\n+int\n+mlx5_os_mac_addr_add(struct rte_eth_dev *dev, struct rte_ether_addr *mac,\n+\t\t uint32_t index)\n+{\n+\t(void)index;\n+\tstruct rte_ether_addr lmac;\n+\n+\tif (mlx5_get_mac(dev, &lmac.addr_bytes)) {\n+\t\tDRV_LOG(ERR,\n+\t\t\t\"port %u cannot get MAC address, is mlx5_en\"\n+\t\t\t\" loaded? (errno: %s)\",\n+\t\t\tdev->data->port_id, strerror(rte_errno));\n+\t\treturn rte_errno;\n+\t}\n+\tif (!rte_is_same_ether_addr(&lmac, mac)) {\n+\t\tDRV_LOG(ERR,\n+\t\t\t\"adding new mac address to device is unsupported\");\n+\t\treturn -ENOTSUP;\n+\t}\n+\treturn 0;\n+}\n+\n /**\n * Modify a VF MAC address\n * Currently it has no support under Windows.\n", "prefixes": [ "v3", "31/32" ] }{ "id": 85076, "url": "