get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85358,
    "url": "https://patches.dpdk.org/api/patches/85358/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201217173037.11396-18-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": "<20201217173037.11396-18-talshn@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201217173037.11396-18-talshn@nvidia.com",
    "date": "2020-12-17T17:30:19",
    "name": "[17/35] net/mlx5/windows: support open device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f0a2ae70984e26737208cae1ee8fd09db58c1320",
    "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/20201217173037.11396-18-talshn@nvidia.com/mbox/",
    "series": [
        {
            "id": 14351,
            "url": "https://patches.dpdk.org/api/series/14351/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14351",
            "date": "2020-12-17T17:30:04",
            "name": "mlx5 Windows support - part #6",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/14351/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/85358/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/85358/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 F3222A09F6;\n\tThu, 17 Dec 2020 18:40:34 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 88435CB47;\n\tThu, 17 Dec 2020 18:33:43 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id C7F20CA39\n for <dev@dpdk.org>; Thu, 17 Dec 2020 18:33:10 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 17 Dec 2020 19:33:05 +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 0BHHX45c021771;\n Thu, 17 Dec 2020 19:33:05 +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, 17 Dec 2020 19:30:19 +0200",
        "Message-Id": "<20201217173037.11396-18-talshn@nvidia.com>",
        "X-Mailer": "git-send-email 2.16.1.windows.4",
        "In-Reply-To": "<20201217173037.11396-1-talshn@nvidia.com>",
        "References": "<20201217173037.11396-1-talshn@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH 17/35] net/mlx5/windows: support open device",
        "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\nThis commit implements mlx5_os_open_device() API. It calls glue API\nopen_device() then glue API query_device() to fill in 'struct\nmlx5_context' with data for later usage.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\nSigned-off-by: Tal Shnaiderman <talshn@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/net/mlx5/windows/mlx5_os.c | 44 ++++++++++++++++++++++++++++++++++++++\n 1 file changed, 44 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/windows/mlx5_os.c b/drivers/net/mlx5/windows/mlx5_os.c\nindex 01d66cc855..14bd5bf39a 100644\n--- a/drivers/net/mlx5/windows/mlx5_os.c\n+++ b/drivers/net/mlx5/windows/mlx5_os.c\n@@ -103,6 +103,50 @@ mlx5_os_set_nonblock_channel_fd(int fd)\n \treturn -ENOTSUP;\n }\n \n+/**\n+ * Function API open device under Windows\n+ *\n+ * This function calls the Windows glue APIs to open a device.\n+ *\n+ * @param[in] spawn\n+ *   Pointer to the device attributes (name, port, etc).\n+ * @param[out] config\n+ *   Pointer to device configuration structure.\n+ * @param[out] sh\n+ *   Pointer to shared context structure.\n+ *\n+ * @return\n+ *   0 on success, a positive error value otherwise.\n+ */\n+int\n+mlx5_os_open_device(const struct mlx5_dev_spawn_data *spawn,\n+\t\t const struct mlx5_dev_config *config,\n+\t\t struct mlx5_dev_ctx_shared *sh)\n+{\n+\tRTE_SET_USED(config);\n+\tint err = 0;\n+\tstruct mlx5_context *mlx5_ctx;\n+\n+\tpthread_mutex_init(&sh->txpp.mutex, NULL);\n+\t/* Set numa node from pci probe */\n+\tsh->numa_node = spawn->pci_dev->device.numa_node;\n+\n+\t/* Try to open device with DevX */\n+\trte_errno = 0;\n+\tsh->ctx = mlx5_glue->open_device(spawn->phys_dev);\n+\tif (!sh->ctx) {\n+\t\tDRV_LOG(ERR, \"open_device failed\");\n+\t\terr = errno;\n+\t\treturn err;\n+\t}\n+\tsh->devx = 1;\n+\tmlx5_ctx = (struct mlx5_context *)sh->ctx;\n+\terr = mlx5_glue->query_device(spawn->phys_dev, &mlx5_ctx->mlx5_dev);\n+\tif (err)\n+\t\tDRV_LOG(ERR, \"Failed to query device context fields.\");\n+\treturn err;\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",
    "prefixes": [
        "17/35"
    ]
}