get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85341,
    "url": "http://patches.dpdk.org/api/patches/85341/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201217173037.11396-8-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": "<20201217173037.11396-8-talshn@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201217173037.11396-8-talshn@nvidia.com",
    "date": "2020-12-17T17:30:09",
    "name": "[07/35] net/mlx5/windows: add stubs for MP requests",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "68ed2b2337c4b8b00a77c8c850767d6ed8ff6180",
    "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/20201217173037.11396-8-talshn@nvidia.com/mbox/",
    "series": [
        {
            "id": 14351,
            "url": "http://patches.dpdk.org/api/series/14351/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14351",
            "date": "2020-12-17T17:30:04",
            "name": "mlx5 Windows support - part #6",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14351/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/85341/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/85341/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 1CA60A09F6;\n\tThu, 17 Dec 2020 18:34:19 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BA992CA52;\n\tThu, 17 Dec 2020 18:33:18 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 110F6CA39\n for <dev@dpdk.org>; Thu, 17 Dec 2020 18:33:09 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n talshn@nvidia.com) with SMTP; 17 Dec 2020 19:33:04 +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 0BHHX45S021771;\n Thu, 17 Dec 2020 19:33:04 +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:09 +0200",
        "Message-Id": "<20201217173037.11396-8-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 07/35] net/mlx5/windows: add stubs for MP requests",
        "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\nWindows supports the primary process with no secondary process control.\nThis commit adds stubs for requests to start/stop the data-path to the\nsecondary process and for requests to start/stop a queue of the primary\nprocess.\n\nSigned-off-by: Ophir Munk <ophirmu@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/net/mlx5/windows/meson.build  |  1 +\n drivers/net/mlx5/windows/mlx5_mp_os.c | 71 +++++++++++++++++++++++++++++++++++\n 2 files changed, 72 insertions(+)\n create mode 100644 drivers/net/mlx5/windows/mlx5_mp_os.c",
    "diff": "diff --git a/drivers/net/mlx5/windows/meson.build b/drivers/net/mlx5/windows/meson.build\nindex 2ea0792a40..f87dcb1b4c 100644\n--- a/drivers/net/mlx5/windows/meson.build\n+++ b/drivers/net/mlx5/windows/meson.build\n@@ -4,5 +4,6 @@\n includes += include_directories('.')\n sources += files(\n \t'mlx5_os.c',\n+\t'mlx5_mp_os.c',\n )\n \ndiff --git a/drivers/net/mlx5/windows/mlx5_mp_os.c b/drivers/net/mlx5/windows/mlx5_mp_os.c\nnew file mode 100644\nindex 0000000000..db793b1f7d\n--- /dev/null\n+++ b/drivers/net/mlx5/windows/mlx5_mp_os.c\n@@ -0,0 +1,71 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#include <stdio.h>\n+#include <time.h>\n+\n+#include <rte_eal.h>\n+#include <rte_ethdev_driver.h>\n+#include <rte_string_fns.h>\n+\n+#include <mlx5_common_mp.h>\n+#include <mlx5_common_mr.h>\n+#include <mlx5_malloc.h>\n+\n+#include \"mlx5.h\"\n+#include \"mlx5_rxtx.h\"\n+#include \"mlx5_utils.h\"\n+\n+/**\n+ * Broadcast request of starting data-path to secondary processes. The request\n+ * is synchronous.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet structure.\n+ */\n+void\n+mlx5_mp_os_req_start_rxtx(struct rte_eth_dev *dev)\n+{\n+\tRTE_SET_USED(dev);\n+}\n+\n+/**\n+ * Broadcast request of stopping data-path to secondary processes. The request\n+ * is synchronous.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet structure.\n+ */\n+void\n+mlx5_mp_os_req_stop_rxtx(struct rte_eth_dev *dev)\n+{\n+\tRTE_SET_USED(dev);\n+}\n+\n+/**\n+ * Request Verbs Rx/Tx queue stop or start to the primary process.\n+ *\n+ * @param[in] dev\n+ *   Pointer to Ethernet structure.\n+ * @param queue_id\n+ *   Queue ID to control.\n+ * @param req_type\n+ *   request type\n+ *     MLX5_MP_REQ_QUEUE_RX_START - start Rx queue\n+ *     MLX5_MP_REQ_QUEUE_TX_START - stop Tx queue\n+ *     MLX5_MP_REQ_QUEUE_RX_STOP - stop Rx queue\n+ *     MLX5_MP_REQ_QUEUE_TX_STOP - stop Tx queue\n+ * @return\n+ *   0 on success, a negative errno value otherwise and\n+ *     rte_errno is set.\n+ */\n+int\n+mlx5_mp_os_req_queue_control(struct rte_eth_dev *dev, uint16_t queue_id,\n+\t\t\t  enum mlx5_mp_req_type req_type)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(queue_id);\n+\tRTE_SET_USED(req_type);\n+\treturn -ENOTSUP;\n+}\n",
    "prefixes": [
        "07/35"
    ]
}