get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 99825,
    "url": "https://patches.dpdk.org/api/patches/99825/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210927134231.11177-9-srikanth.k@oneconvergence.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": "<20210927134231.11177-9-srikanth.k@oneconvergence.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210927134231.11177-9-srikanth.k@oneconvergence.com",
    "date": "2021-09-27T13:42:28",
    "name": "[08/11] net/netvsc: moving event monitoring support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "43cbb55c0c64bb332d535a672dff353c7aa18201",
    "submitter": {
        "id": 2368,
        "url": "https://patches.dpdk.org/api/people/2368/?format=api",
        "name": "Srikanth Kaka",
        "email": "srikanth.k@oneconvergence.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210927134231.11177-9-srikanth.k@oneconvergence.com/mbox/",
    "series": [
        {
            "id": 19194,
            "url": "https://patches.dpdk.org/api/series/19194/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19194",
            "date": "2021-09-27T13:42:20",
            "name": "add FreeBSD support to VMBUS & NetVSC PMDs",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/19194/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/99825/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/99825/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B66C0A0C46;\n\tMon, 27 Sep 2021 17:01:31 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 367A5411AB;\n\tMon, 27 Sep 2021 16:58:39 +0200 (CEST)",
            "from mail-pj1-f44.google.com (mail-pj1-f44.google.com\n [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 613A7410DA\n for <dev@dpdk.org>; Mon, 27 Sep 2021 15:43:21 +0200 (CEST)",
            "by mail-pj1-f44.google.com with SMTP id\n u1-20020a17090ae00100b0019ec31d3ba2so4238196pjy.1\n for <dev@dpdk.org>; Mon, 27 Sep 2021 06:43:21 -0700 (PDT)",
            "from srikanth-ThinkPad-T450.domain.name ([223.178.22.200])\n by smtp.gmail.com with ESMTPSA id b3sm16960665pfo.23.2021.09.27.06.43.18\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 27 Sep 2021 06:43:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oneconvergence.com; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Imf48FjimLm0M8J8OyFai005M0N3mInOi98nlSOlYW0=;\n b=UIST+WDZEpv2dtfg7zntA1lMctXdhXhw8MOc0sPljjXO9/jsN9gDzI6ZvOaEsnmjgg\n TX3KnaFW7Mr3ZDCquXbpzfK2162ZUbQG9oR2kOTckPeB6qUS1bfJzYo6d4Iupy3uO7gA\n pAHpPCrWnkjT1165NteZ1d7d7iT0El/d2em3g=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Imf48FjimLm0M8J8OyFai005M0N3mInOi98nlSOlYW0=;\n b=jopYzsGLhRbRaK5jg+XlOaBDgFZa/kDGZlyPEOTXT138kCs/fg35W07HL0eX1tQpnA\n upOMRqjxP2/ayvX2K6tehEanEQHLBXLU9VrjAwMgfW5g5BiLbwcSIEX6uGuZL8dkynh+\n eSAThfOJ1kli4C5r/QcV6CGBqH4wlEHwj6q0tEcYnIun7QxQrK42GdX0CStY8eR7nQU+\n bfL29jZQSAborR5DVM1t8fr36i8pumbhg52jYWqYZbM6yyzZqTVvNC+wFv6rdFN1pVdU\n lrjeFfziCZQNakMSplHCSVQWa76R/Mcw4SuvYsIF7hMWbpVU6OxXVEpnTkKiyJ6RGBZ6\n JtOg==",
        "X-Gm-Message-State": "AOAM530sFK3gpKjYANCXP7k/a8htDE/sh5vUyUTASshCsnfZCDjGwyqA\n uFvydR+ZdOYP5W149OxIFOtJkQ==",
        "X-Google-Smtp-Source": "\n ABdhPJw1r+TEG/EQ/FqoMbOqyb/Q9JfDAS+FvFiOSwGuzhf+1ETFogMTqI+SLRffn96JE+FlMyVJQw==",
        "X-Received": "by 2002:a17:902:904b:b0:13d:c33b:294f with SMTP id\n w11-20020a170902904b00b0013dc33b294fmr22526551plz.35.1632750200637;\n Mon, 27 Sep 2021 06:43:20 -0700 (PDT)",
        "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>",
        "To": "Stephen Hemminger <sthemmin@microsoft.com>, Long Li <longli@microsoft.com>",
        "Cc": "dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>,\n Anand Thulasiram <avelu@juniper.net>,\n Srikanth Kaka <srikanth.k@oneconvergence.com>",
        "Date": "Mon, 27 Sep 2021 19:12:28 +0530",
        "Message-Id": "<20210927134231.11177-9-srikanth.k@oneconvergence.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20210927134231.11177-1-srikanth.k@oneconvergence.com>",
        "References": "<20210927134231.11177-1-srikanth.k@oneconvergence.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Mon, 27 Sep 2021 16:58:07 +0200",
        "Subject": "[dpdk-dev] [PATCH 08/11] net/netvsc: moving event monitoring support",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Event monitoring is not yet supported on FreeBSD, hence moving it\nthe OS specific files\n\nSigned-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>\nSigned-off-by: Vag Singh <vag.singh@oneconvergence.com>\nSigned-off-by: Anand Thulasiram <avelu@juniper.net>\n---\n drivers/net/netvsc/freebsd/hn_os.c | 14 ++++++++++++++\n drivers/net/netvsc/hn_ethdev.c     |  7 +++----\n drivers/net/netvsc/hn_os.h         |  6 ++++++\n drivers/net/netvsc/linux/hn_os.c   | 19 +++++++++++++++++++\n 4 files changed, 42 insertions(+), 4 deletions(-)\n create mode 100644 drivers/net/netvsc/freebsd/hn_os.c\n create mode 100644 drivers/net/netvsc/hn_os.h\n create mode 100644 drivers/net/netvsc/linux/hn_os.c",
    "diff": "diff --git a/drivers/net/netvsc/freebsd/hn_os.c b/drivers/net/netvsc/freebsd/hn_os.c\nnew file mode 100644\nindex 0000000000..3bd67e06c8\n--- /dev/null\n+++ b/drivers/net/netvsc/freebsd/hn_os.c\n@@ -0,0 +1,14 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2021 Microsoft Corporation\n+ */\n+\n+#include <stdio.h>\n+\n+#include \"hn_logs.h\"\n+#include \"hn_os.h\"\n+\n+int eth_hn_os_dev_event(void)\n+{\n+\tPMD_DRV_LOG(DEBUG, \"rte_dev_event_monitor_start not supported on FreeBSD\");\n+\treturn 0;\n+}\ndiff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 6f9053c4d5..61d7d3daeb 100644\n--- a/drivers/net/netvsc/hn_ethdev.c\n+++ b/drivers/net/netvsc/hn_ethdev.c\n@@ -39,6 +39,7 @@\n #include \"hn_rndis.h\"\n #include \"hn_nvs.h\"\n #include \"ndis.h\"\n+#include \"hn_os.h\"\n \n #define HN_TX_OFFLOAD_CAPS (DEV_TX_OFFLOAD_IPV4_CKSUM | \\\n \t\t\t    DEV_TX_OFFLOAD_TCP_CKSUM  | \\\n@@ -1244,11 +1245,9 @@ static int eth_hn_probe(struct rte_vmbus_driver *drv __rte_unused,\n \n \tPMD_INIT_FUNC_TRACE();\n \n-\tret = rte_dev_event_monitor_start();\n-\tif (ret) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to start device event monitoring\");\n+\tret = eth_hn_os_dev_event();\n+\tif (ret)\n \t\treturn ret;\n-\t}\n \n \teth_dev = eth_dev_vmbus_allocate(dev, sizeof(struct hn_data));\n \tif (!eth_dev)\ndiff --git a/drivers/net/netvsc/hn_os.h b/drivers/net/netvsc/hn_os.h\nnew file mode 100644\nindex 0000000000..618c53cdcd\n--- /dev/null\n+++ b/drivers/net/netvsc/hn_os.h\n@@ -0,0 +1,6 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (c) 2009-2021 Microsoft Corp.\n+ * All rights reserved.\n+ */\n+\n+int eth_hn_os_dev_event(void);\ndiff --git a/drivers/net/netvsc/linux/hn_os.c b/drivers/net/netvsc/linux/hn_os.c\nnew file mode 100644\nindex 0000000000..862dc190c1\n--- /dev/null\n+++ b/drivers/net/netvsc/linux/hn_os.c\n@@ -0,0 +1,19 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2021 Microsoft Corporation\n+ */\n+\n+#include <rte_ethdev.h>\n+\n+#include \"hn_logs.h\"\n+#include \"hn_os.h\"\n+\n+int eth_hn_os_dev_event(void)\n+{\n+\tint ret;\n+\n+\tret = rte_dev_event_monitor_start();\n+\tif (ret)\n+\t\tPMD_DRV_LOG(ERR, \"Failed to start device event monitoring\");\n+\n+\treturn ret;\n+}\n",
    "prefixes": [
        "08/11"
    ]
}