get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/85078/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 85078,
    "url": "https://patches.dpdk.org/api/patches/85078/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201213102056.11380-31-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-31-talshn@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201213102056.11380-31-talshn@nvidia.com",
    "date": "2020-12-13T10:20:54",
    "name": "[v3,30/32] net/mlx5/windows: add mlx5_os.c stubs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b6958cec29544e4655c686aabba92d7276ee97e3",
    "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-31-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/85078/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/85078/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 5F4DCA04B5;\n\tSun, 13 Dec 2020 11:31:47 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C4335CACE;\n\tSun, 13 Dec 2020 11:22:34 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id F30ECC9C0\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 0BDALe1u018562;\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:54 +0200",
        "Message-Id": "<20201213102056.11380-31-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 30/32] net/mlx5/windows: add mlx5_os.c 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": "From: Ophir Munk <ophirmu@nvidia.com>\n\nmlx5_os_set_nonblock_channel_fd\nmlx5_os_dev_shared_handler_install\nmlx5_os_dev_shared_handler_uninstall\nmlx5_os_read_dev_stat\nmlx5_os_mac_addr_flush\nmlx5_os_mac_addr_remove\nmlx5_os_vf_mac_addr_modify\nmlx5_os_set_promisc\nmlx5_os_set_allmulti\n\nSet struct mlx5_flow_driver_ops mlx5_flow_verbs_drv_ops with NULL\npointers.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\n---\n drivers/net/mlx5/windows/mlx5_os.c | 187 +++++++++++++++++++++++++++++++++++++\n 1 file changed, 187 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c\nindex e0646670a3..bef10aba30 100644\n--- a/drivers/net/mlx5/windows/mlx5_os.c\n+++ b/drivers/net/mlx5/windows/mlx5_os.c\n@@ -13,10 +13,18 @@\n #include <mlx5_glue.h>\n #include <mlx5_devx_cmds.h>\n #include <mlx5_common.h>\n+#include <mlx5_common_mp.h>\n+#include <mlx5_common_mr.h>\n+#include <mlx5_malloc.h>\n \n #include \"mlx5_defs.h\"\n #include \"mlx5.h\"\n+#include \"mlx5_common_os.h\"\n+#include \"mlx5_utils.h\"\n+#include \"mlx5_rxtx.h\"\n #include \"mlx5_autoconf.h\"\n+#include \"mlx5_mr.h\"\n+#include \"mlx5_flow.h\"\n \n /**\n  * Get mlx5 device attributes.\n@@ -73,3 +81,182 @@ mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr)\n \t}\n \treturn err;\n }\n+\n+/**\n+ * Set the completion channel file descriptor interrupt as non-blocking.\n+ * Currently it has no support under Windows.\n+ *\n+ * @param[in] rxq_obj\n+ *   Pointer to RQ channel object, which includes the channel fd\n+ *\n+ * @param[out] fd\n+ *   The file descriptor (representing the intetrrupt) used in this channel.\n+ *\n+ * @return\n+ *   0 on successfully setting the fd to non-blocking, non-zero otherwise.\n+ */\n+int\n+mlx5_os_set_nonblock_channel_fd(int fd)\n+{\n+\t(void)fd;\n+\tDRV_LOG(WARNING, \"mlx5_os_set_nonblock_channel_fd is not support\");\n+\treturn -ENOTSUP;\n+}\n+\n+/**\n+ * This function should share events between multiple ports of single IB\n+ * device.  Currently it has no support under Windows.\n+ *\n+ * @param sh\n+ *   Pointer to mlx5_dev_ctx_shared object.\n+ */\n+void\n+mlx5_os_dev_shared_handler_install(struct mlx5_dev_ctx_shared *sh)\n+{\n+\t(void)sh;\n+\tDRV_LOG(WARNING, \"mlx5_os_dev_shared_handler_install is not support\");\n+}\n+\n+/**\n+ * This function should share events between multiple ports of single IB\n+ * device.  Currently it has no support under Windows.\n+ *\n+ * @param dev\n+ *   Pointer to mlx5_dev_ctx_shared object.\n+ */\n+void\n+mlx5_os_dev_shared_handler_uninstall(struct mlx5_dev_ctx_shared *sh)\n+{\n+\t(void)sh;\n+\tDRV_LOG(WARNING, \"mlx5_os_dev_shared_handler_uninstall is not support\");\n+}\n+\n+/**\n+ * Read statistics by a named counter.\n+ *\n+ * @param[in] priv\n+ *   Pointer to the private device data structure.\n+ * @param[in] ctr_name\n+ *   Pointer to the name of the statistic counter to read\n+ * @param[out] stat\n+ *   Pointer to read statistic value.\n+ * @return\n+ *   0 on success and stat is valud, 1 if failed to read the value\n+ *   rte_errno is set.\n+ *\n+ */\n+int\n+mlx5_os_read_dev_stat(struct mlx5_priv *priv, const char *ctr_name,\n+\t\t      uint64_t *stat)\n+{\n+\tRTE_SET_USED(priv);\n+\tRTE_SET_USED(ctr_name);\n+\tRTE_SET_USED(stat);\n+\tDRV_LOG(WARNING, \"mlx5_os_read_dev_stat is not support\");\n+\treturn -ENOTSUP;\n+}\n+\n+/**\n+ * Flush device MAC addresses\n+ * Currently it has no support under Windows.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ *\n+ */\n+void\n+mlx5_os_mac_addr_flush(struct rte_eth_dev *dev)\n+{\n+\t(void)dev;\n+\tDRV_LOG(WARNING, \"mlx5_os_mac_addr_flush is not support\");\n+}\n+\n+/**\n+ * Remove a MAC address from device\n+ * Currently it has no support under Windows.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ * @param index\n+ *   MAC address index.\n+ */\n+void\n+mlx5_os_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index)\n+{\n+\t(void)dev;\n+\t(void)(index);\n+\tDRV_LOG(WARNING, \"mlx5_os_mac_addr_remove is not support\");\n+}\n+\n+/**\n+ * Modify a VF MAC address\n+ * Currently it has no support under Windows.\n+ *\n+ * @param priv\n+ *   Pointer to device private data.\n+ * @param mac_addr\n+ *   MAC address to modify into.\n+ * @param iface_idx\n+ *   Net device interface index\n+ * @param vf_index\n+ *   VF index\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise\n+ */\n+int\n+mlx5_os_vf_mac_addr_modify(struct mlx5_priv *priv,\n+\t\t\t   unsigned int iface_idx,\n+\t\t\t   struct rte_ether_addr *mac_addr,\n+\t\t\t   int vf_index)\n+{\n+\t(void)priv;\n+\t(void)iface_idx;\n+\t(void)mac_addr;\n+\t(void)vf_index;\n+\tDRV_LOG(WARNING, \"mlx5_os_vf_mac_addr_modify is not support\");\n+\treturn -ENOTSUP;\n+}\n+\n+/**\n+ * Set device promiscuous mode\n+ * Currently it has no support under Windows.\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ * @param enable\n+ *   0 - promiscuous is disabled, otherwise - enabled\n+ *\n+ * @return\n+ *   0 on success, a negative error value otherwise\n+ */\n+int\n+mlx5_os_set_promisc(struct rte_eth_dev *dev, int enable)\n+{\n+\t(void)dev;\n+\t(void)enable;\n+\tDRV_LOG(WARNING, \"mlx5_os_set_promisc is not support\");\n+\treturn -ENOTSUP;\n+}\n+\n+/**\n+ * Set device allmulti mode\n+ *\n+ * @param dev\n+ *   Pointer to Ethernet device structure.\n+ * @param enable\n+ *   0 - all multicase is disabled, otherwise - enabled\n+ *\n+ * @return\n+ *   0 on success, a negative error value otherwise\n+ */\n+int\n+mlx5_os_set_allmulti(struct rte_eth_dev *dev, int enable)\n+{\n+\t(void)dev;\n+\t(void)enable;\n+\tDRV_LOG(WARNING, \"mlx5_os_set_allmulti is not support\");\n+\treturn -ENOTSUP;\n+}\n+\n+const struct mlx5_flow_driver_ops mlx5_flow_verbs_drv_ops = {0};\n",
    "prefixes": [
        "v3",
        "30/32"
    ]
}