get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109877,
    "url": "https://patches.dpdk.org/api/patches/109877/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220418042915.5765-8-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": "<20220418042915.5765-8-srikanth.k@oneconvergence.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220418042915.5765-8-srikanth.k@oneconvergence.com",
    "date": "2022-04-18T04:29:08",
    "name": "[v4,07/14] net/netvsc: make event monitor OS dependent",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c6d5b73d16b9d6c4d8185cf65f599841a0fd5eb5",
    "submitter": {
        "id": 2368,
        "url": "https://patches.dpdk.org/api/people/2368/?format=api",
        "name": "Srikanth Kaka",
        "email": "srikanth.k@oneconvergence.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220418042915.5765-8-srikanth.k@oneconvergence.com/mbox/",
    "series": [
        {
            "id": 22557,
            "url": "https://patches.dpdk.org/api/series/22557/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=22557",
            "date": "2022-04-18T04:29:01",
            "name": "add FreeBSD support to VMBUS & NetVSC PMDs",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/22557/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/109877/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/109877/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 1746DA00BE;\n\tTue, 19 Apr 2022 11:34:30 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4EBFF4280C;\n\tTue, 19 Apr 2022 11:33:46 +0200 (CEST)",
            "from mail-pg1-f171.google.com (mail-pg1-f171.google.com\n [209.85.215.171])\n by mails.dpdk.org (Postfix) with ESMTP id 9C01140141\n for <dev@dpdk.org>; Mon, 18 Apr 2022 06:29:52 +0200 (CEST)",
            "by mail-pg1-f171.google.com with SMTP id q12so16713831pgj.13\n for <dev@dpdk.org>; Sun, 17 Apr 2022 21:29:52 -0700 (PDT)",
            "from srikanth-ThinkPad-T450.. ([49.37.158.191])\n by smtp.gmail.com with ESMTPSA id\n e14-20020aa78c4e000000b00506475da4cesm10377577pfd.49.2022.04.17.21.29.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 17 Apr 2022 21:29:51 -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=HNp+9krAUZCTlinhvwcmE1tsnrPILb+jRRSaMZ1qovo=;\n b=FrKCVK6pI3stkWVgXIf3IwBcWDy8KYyukf9ds5QqxcQhy3SfgRuykJkTL1mdaifJNe\n wkwT68DKLF7k6wkbVeoHW6YeYgLcAxo+EgVKoxkCB8KQ8VeUH8224I0EXXk1DWrhlyI7\n dNl5DdvsNUhqRZd3++wCjtxMCAew01Kpg8gPE=",
        "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=HNp+9krAUZCTlinhvwcmE1tsnrPILb+jRRSaMZ1qovo=;\n b=xOa8oEreZyp7G+yMsqhPrs+OHCB1MZCLOf2g8Ky+2M1qnJY/FWKh+zua+C93g2YBVs\n nQG4BYiX0MhRG6j5sup1WKatPkW0CuOTFdFNWo0vi3ng3gg/0Lfv7zjTL1Olxt7Q/BhK\n oDtuPA0WttaWWm7RK4GKBQexEbqiKE3N67/ANeBD9o13Zg3SPs8rCXZsHAzjbD3TcRbN\n 15MVr1hOmTG4uOlySEvYE2R90BpaBROHthbz0T5+8vsaeqHeeSqtufdpznGnOIIGSVnd\n DTiKe172dMuZK7vUhgKX/iffv8wm4d3eSWUyAPx9U7PPOsLnEb+wxEwh+BrpAJF6azm2\n B3rA==",
        "X-Gm-Message-State": "AOAM5324iZFlrMNlMpkIkINojnVe9r1FFTL8qtgNi2ggyiGYfwF4IhZa\n xLbN0rWLlesGVIACE0c7/P7iog==",
        "X-Google-Smtp-Source": "\n ABdhPJzQgEG1NFvM/65fk2/LL/wQKNcjjjLRt0VrMM94qG1sDHelndcV5E6Tc8F+aRzIFd/lcwYADg==",
        "X-Received": "by 2002:aa7:8893:0:b0:4fb:10e1:8976 with SMTP id\n z19-20020aa78893000000b004fb10e18976mr10213216pfe.36.1650256191876;\n Sun, 17 Apr 2022 21:29:51 -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>",
        "Subject": "[PATCH v4 07/14] net/netvsc: make event monitor OS dependent",
        "Date": "Mon, 18 Apr 2022 09:59:08 +0530",
        "Message-Id": "<20220418042915.5765-8-srikanth.k@oneconvergence.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20220418042915.5765-1-srikanth.k@oneconvergence.com>",
        "References": "<20220217160613.70161-16-srikanth.k@oneconvergence.com>\n <20220418042915.5765-1-srikanth.k@oneconvergence.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Tue, 19 Apr 2022 11:33:36 +0200",
        "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"
    },
    "content": "- Event monitoring is not yet supported on FreeBSD, hence moving it\nto the OS specific files\n- Add meson support to OS environment\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     | 16 ++++++++++++++++\n drivers/net/netvsc/freebsd/meson.build |  6 ++++++\n drivers/net/netvsc/hn_ethdev.c         |  7 +++----\n drivers/net/netvsc/hn_os.h             |  6 ++++++\n drivers/net/netvsc/linux/hn_os.c       | 21 +++++++++++++++++++++\n drivers/net/netvsc/linux/meson.build   |  6 ++++++\n drivers/net/netvsc/meson.build         |  3 +++\n 7 files changed, 61 insertions(+), 4 deletions(-)\n create mode 100644 drivers/net/netvsc/freebsd/hn_os.c\n create mode 100644 drivers/net/netvsc/freebsd/meson.build\n create mode 100644 drivers/net/netvsc/hn_os.h\n create mode 100644 drivers/net/netvsc/linux/hn_os.c\n create mode 100644 drivers/net/netvsc/linux/meson.build",
    "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..4c6a79872d\n--- /dev/null\n+++ b/drivers/net/netvsc/freebsd/hn_os.c\n@@ -0,0 +1,16 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2021 Microsoft Corporation\n+ */\n+\n+#include <stdio.h>\n+\n+#include <rte_common.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/freebsd/meson.build b/drivers/net/netvsc/freebsd/meson.build\nnew file mode 100644\nindex 0000000000..78f824f701\n--- /dev/null\n+++ b/drivers/net/netvsc/freebsd/meson.build\n@@ -0,0 +1,6 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Microsoft Corporation\n+\n+sources += files(\n+\t'hn_os.c',\n+)\ndiff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 8a950403ac..8b1e07b775 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 (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | \\\n \t\t\t    RTE_ETH_TX_OFFLOAD_TCP_CKSUM  | \\\n@@ -1240,11 +1241,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..1ea12ce928\n--- /dev/null\n+++ b/drivers/net/netvsc/linux/hn_os.c\n@@ -0,0 +1,21 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2021 Microsoft Corporation\n+ */\n+\n+#include <unistd.h>\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+}\ndiff --git a/drivers/net/netvsc/linux/meson.build b/drivers/net/netvsc/linux/meson.build\nnew file mode 100644\nindex 0000000000..78f824f701\n--- /dev/null\n+++ b/drivers/net/netvsc/linux/meson.build\n@@ -0,0 +1,6 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Microsoft Corporation\n+\n+sources += files(\n+\t'hn_os.c',\n+)\ndiff --git a/drivers/net/netvsc/meson.build b/drivers/net/netvsc/meson.build\nindex bb6225d05a..c50414de07 100644\n--- a/drivers/net/netvsc/meson.build\n+++ b/drivers/net/netvsc/meson.build\n@@ -8,6 +8,7 @@ if is_windows\n endif\n \n deps += 'bus_vmbus'\n+includes += include_directories(exec_env)\n sources = files(\n         'hn_ethdev.c',\n         'hn_nvs.c',\n@@ -15,3 +16,5 @@ sources = files(\n         'hn_rxtx.c',\n         'hn_vf.c',\n )\n+\n+subdir(exec_env)\n",
    "prefixes": [
        "v4",
        "07/14"
    ]
}