From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F4A0A09E4; Sat, 5 Dec 2020 02:22:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35CEAC9CA; Sat, 5 Dec 2020 02:21:17 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id DCB5134F3 for ; Sat, 5 Dec 2020 02:21:11 +0100 (CET) IronPort-SDR: 5E4BujxdrTDOh8Wg9F0jWQ4qkgQ949VlHqAB4lUgpYEr2AHM6fbnq3n88rk6kp+BmfyvQ5LfTU 4YAmHgam+k8A== X-IronPort-AV: E=McAfee;i="6000,8403,9825"; a="160530094" X-IronPort-AV: E=Sophos;i="5.78,394,1599548400"; d="scan'208";a="160530094" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2020 17:20:58 -0800 IronPort-SDR: OYOorZ5hVZNGZLqN8nTRrQoTAmirAnhZsQ5Ym8nxpoYdYrdATOqc++iO1WXWLkBBcVyvY/TDYb vnwTDpbV0yVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,394,1599548400"; d="scan'208";a="317133377" Received: from win-dpdk-pallavi.jf.intel.com (HELO localhost.localdomain) ([10.166.188.111]) by fmsmga007.fm.intel.com with ESMTP; 04 Dec 2020 17:20:57 -0800 From: Pallavi Kadam To: dev@dpdk.org, thomas@monjalon.net Cc: ranjit.menon@intel.com, dmitry.kozliuk@gmail.com, Narcisa.Vasile@microsoft.com, talshn@nvidia.com, ferruh.yigit@intel.com, beilei.xing@intel.com, jia.guo@intel.com, pallavi.kadam@intel.com Date: Fri, 4 Dec 2020 17:10:18 -0800 Message-Id: <20201205011020.6276-2-pallavi.kadam@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <20201205011020.6276-1-pallavi.kadam@intel.com> References: <20201205011020.6276-1-pallavi.kadam@intel.com> Subject: [dpdk-dev] [PATCH 1/3] eal/windows: add some interrupt functions stub X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Adding some interrupt implementations on Windows to help compile i40e PMD code. Also added respective functions to export file. Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon --- lib/librte_eal/rte_eal_exports.def | 10 ++++ lib/librte_eal/windows/eal_interrupts.c | 70 +++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def index 6a6be1cfa..89166acd7 100644 --- a/lib/librte_eal/rte_eal_exports.def +++ b/lib/librte_eal/rte_eal_exports.def @@ -63,6 +63,16 @@ EXPORTS rte_get_tsc_hz rte_hexdump rte_hypervisor_get + rte_intr_ack + rte_intr_allow_others + rte_intr_callback_register + rte_intr_callback_unregister + rte_intr_cap_multiple + rte_intr_disable + rte_intr_dp_is_en + rte_intr_efd_disable + rte_intr_efd_enable + rte_intr_enable rte_intr_rx_ctl rte_lcore_count rte_lcore_has_role diff --git a/lib/librte_eal/windows/eal_interrupts.c b/lib/librte_eal/windows/eal_interrupts.c index 6c64a48f3..f6c24787f 100644 --- a/lib/librte_eal/windows/eal_interrupts.c +++ b/lib/librte_eal/windows/eal_interrupts.c @@ -105,3 +105,73 @@ eal_intr_thread_schedule(void (*func)(void *arg), void *arg) return 0; } + +int +rte_intr_callback_register( + __rte_unused const struct rte_intr_handle *intr_handle, + __rte_unused rte_intr_callback_fn cb, __rte_unused void *cb_arg) +{ + return -ENOTSUP; +} + +int +rte_intr_callback_unregister( + __rte_unused const struct rte_intr_handle *intr_handle, + __rte_unused rte_intr_callback_fn cb_fn, __rte_unused void *cb_arg) +{ + return 0; +} + +int +rte_intr_enable(__rte_unused const struct rte_intr_handle *intr_handle) +{ + return -ENOTSUP; +} + +int +rte_intr_ack(__rte_unused const struct rte_intr_handle *intr_handle) +{ + return -ENOTSUP; +} + +int +rte_intr_disable(__rte_unused const struct rte_intr_handle *intr_handle) +{ + return -ENOTSUP; +} + +int +rte_intr_efd_enable(struct rte_intr_handle *intr_handle, uint32_t nb_efd) +{ + RTE_SET_USED(intr_handle); + RTE_SET_USED(nb_efd); + + return 0; +} + +void +rte_intr_efd_disable(struct rte_intr_handle *intr_handle) +{ + RTE_SET_USED(intr_handle); +} + +int +rte_intr_dp_is_en(struct rte_intr_handle *intr_handle) +{ + RTE_SET_USED(intr_handle); + return 0; +} + +int +rte_intr_allow_others(struct rte_intr_handle *intr_handle) +{ + RTE_SET_USED(intr_handle); + return 1; +} + +int +rte_intr_cap_multiple(struct rte_intr_handle *intr_handle) +{ + RTE_SET_USED(intr_handle); + return 0; +} -- 2.18.0.windows.1