Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/107742/?format=api
https://patches.dpdk.org/api/patches/107742/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220217160613.70161-6-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": "<20220217160613.70161-6-srikanth.k@oneconvergence.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220217160613.70161-6-srikanth.k@oneconvergence.com", "date": "2022-02-17T16:06:03", "name": "[v3,05/15] net/netvsc: make event monitor OS dependent", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8261c0457d7f45e8a48bfec8eab1d5e7a531aa93", "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/20220217160613.70161-6-srikanth.k@oneconvergence.com/mbox/", "series": [ { "id": 21713, "url": "https://patches.dpdk.org/api/series/21713/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=21713", "date": "2022-02-17T16:05:58", "name": "add FreeBSD support to VMBUS & NetVSC PMDs", "version": 3, "mbox": "https://patches.dpdk.org/series/21713/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/107742/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/107742/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 25D28A034E;\n\tThu, 17 Feb 2022 17:11:27 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2C34041161;\n\tThu, 17 Feb 2022 17:10:57 +0100 (CET)", "from mail-pj1-f54.google.com (mail-pj1-f54.google.com\n [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id 8304140DDD\n for <dev@dpdk.org>; Thu, 17 Feb 2022 17:06:42 +0100 (CET)", "by mail-pj1-f54.google.com with SMTP id\n k60-20020a17090a4cc200b001b932781f3eso6576227pjh.0\n for <dev@dpdk.org>; Thu, 17 Feb 2022 08:06:42 -0800 (PST)", "from srikanth-ThinkPad-T450.. ([49.37.144.122])\n by smtp.gmail.com with ESMTPSA id z14sm47807pfh.173.2022.02.17.08.06.39\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 17 Feb 2022 08:06:41 -0800 (PST)" ], "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=u0fv533wF2B+YqedxSjqeabC24fFHSNjsRbhFAGcrp8=;\n b=Q3MMe8pT2L+p982gh3V28gdXLUf3am8cjC65OP8x/kaBXSWjJdIPGo2yI+PVQYZyF6\n 77c6BfjzcmmpEWnKrN/RDZDxElRWCQyVQb26BTFam/b0jUd/T8P3WwrlbgSqvsanBS4c\n 9mEPLBTSvIB1+Uo2HFFwJB04EJLhl/QkHxxoE=", "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=u0fv533wF2B+YqedxSjqeabC24fFHSNjsRbhFAGcrp8=;\n b=jOkG9xaDuLEbZ650p3kE43dRceJ3N2O4sulcDqhGekg5YKfLDVvQCSqtK++Wv/NiWo\n rjt2MSBrbAXyRsiD0bH/Betqx+ZYDcWjRg71lxYxF0paR09U5hdZsZtruWHYFA2ePMXB\n /7G4gHEKrI2x6TaSySgj2aPxwH+R3SVPc77Jf5lYr9y1YX7zM5mnIAWHAxiYtvyB8KRU\n +7h9++3AMcDNB96hoyySd02/9pk6R6I1IvF5RgZmcxkyes/GWnEZnOWF5I2rNN+cR0le\n ejCyx3p+S10Eg2Zf2n9UhgzmvsDAGcm15hq9Fz6lCGOO4Osv5gNGy5FnmSdFEhrusDq7\n RRjw==", "X-Gm-Message-State": "AOAM533w4UYyDqPfcighBe4xcBVwwO1C16l9BNrSNvTzofkM2Ic77B8h\n 1jMAurpN70f98ZdBmLsyxmqwGw==", "X-Google-Smtp-Source": "\n ABdhPJxow1WVvPSJmtXGuVfc5us4HHFQwLZsvWmNodPAoGjLfQ10N+KGsJfrm5gXQLVy1aoKQqEKKg==", "X-Received": "by 2002:a17:902:e94e:b0:14d:85a1:c846 with SMTP id\n b14-20020a170902e94e00b0014d85a1c846mr3500099pll.120.1645114001731;\n Thu, 17 Feb 2022 08:06:41 -0800 (PST)", "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>", "To": "sthemmin@microsoft.com,\n\tlongli@microsoft.com", "Cc": "dev@dpdk.org, vag.singh@oneconvergence.com, avelu@juniper.net,\n Srikanth Kaka <srikanth.k@oneconvergence.com>", "Subject": "[PATCH v3 05/15] net/netvsc: make event monitor OS dependent", "Date": "Thu, 17 Feb 2022 21:36:03 +0530", "Message-Id": "<20220217160613.70161-6-srikanth.k@oneconvergence.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20220217160613.70161-1-srikanth.k@oneconvergence.com>", "References": "<20210927134231.11177-1-srikanth.k@oneconvergence.com>\n <20220217160613.70161-1-srikanth.k@oneconvergence.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Thu, 17 Feb 2022 17:10:51 +0100", "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\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/hn_ethdev.c | 7 +++----\n drivers/net/netvsc/hn_os.h | 6 ++++++\n drivers/net/netvsc/linux/hn_os.c | 21 +++++++++++++++++++++\n 4 files changed, 46 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..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/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+}\n", "prefixes": [ "v3", "05/15" ] }{ "id": 107742, "url": "