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 74DD1A04B5; Fri, 11 Sep 2020 01:50:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 593D01BFC3; Fri, 11 Sep 2020 01:50:48 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 1FEDB1BFC3 for ; Fri, 11 Sep 2020 01:50:46 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6E8385C010D; Thu, 10 Sep 2020 19:50:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 10 Sep 2020 19:50:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=P2b8BjwmN1OQz QdoaU+qnam5gkIkGQlwwPe4tkaDDxE=; b=M/lax9BDmzFYk5HWb6gFF5TY1H2wC 1aC8b15V2IA6VZh0443ArypfmocAOUZ3aaP+YxKb3t7rErzzE3gKs6K0DwAIYhtz tZwDjGZA0c5YvbEmcqwfEWDmECAyDS+P9JmwRnZiqcT/6Vzr8qLwrBj5DF1LrbUV jhfXG+p7+KsUPmtm3jJdRwOfENR35sts93wzdSEIBe4At6vo+unNVMrw6Z0G7OK0 m5BJra+2G7/t0IctgSSTg0crZDhoSzgwbT/+2R/la9vRLuZ72y6hWT8YoOXoV+Rn e2F31oNul7Ad8yHFeg/CjDX6RqSnV9pvzWetsLtHbAtZ5pMKvaE462Ncg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=P2b8BjwmN1OQzQdoaU+qnam5gkIkGQlwwPe4tkaDDxE=; b=CEaZt099 HvSKqStbZvNPxn5IuaKG+P4Mt3LOldohfLg9RA0v0Zbyf3dP1suP7DpjLXhx7AWg rhkzZfsWsZwirhiXTqA06lAjRykgOPV7ZQPPV8MjbDmITnXaRXfKKu74A3EMj9cN 96F6C/zk6kaMVSx9f+8/gHBxcuTTovalqPRt9gmcyQgf8cugpR89AR1/LoWiptGi ++vp2rWv8pD2HWKI9oBjUP0LqDQLPDoqb99c2t19mjZP1autG/rEufNyG4630usD NQyslhsoXVy0zhDK7G0nyZFJJ1MmvtlLwecsInTLD+WY2zonqVgT7GWB1LXjVeaC uaHM2Z97+BAZjw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehkedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A1C03064683; Thu, 10 Sep 2020 19:50:43 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, Fady Bader , Narcisa Vasile , Dmitry Kozlyuk , Ranjit Menon , Dmitry Malloy , Pallavi Kadam , Harman Kalra Date: Fri, 11 Sep 2020 01:50:01 +0200 Message-Id: <20200910235005.2420342-2-thomas@monjalon.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910235005.2420342-1-thomas@monjalon.net> References: <20200625133038.25180-1-fady@mellanox.com> <20200910235005.2420342-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 1/5] eal/windows: add stub for Rx interrupt control 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" From: Fady Bader Interrupts are not implemented for Windows. In order to compile ethdev on Windows, an empty interrupt control function stub has to be added for Windows. Signed-off-by: Fady Bader Acked-by: Narcisa Vasile Acked-by: Dmitry Kozlyuk Acked-by: Ranjit Menon Signed-off-by: Thomas Monjalon --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/windows/eal_interrupts.c | 13 +++++++++++++ lib/librte_eal/windows/meson.build | 1 + 3 files changed, 15 insertions(+) create mode 100644 lib/librte_eal/windows/eal_interrupts.c diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def index f54ed74a58..1d4d3fb365 100644 --- a/lib/librte_eal/rte_eal_exports.def +++ b/lib/librte_eal/rte_eal_exports.def @@ -30,6 +30,7 @@ EXPORTS rte_eal_using_phys_addrs rte_free rte_hexdump + rte_intr_rx_ctl rte_log_register rte_log_register_type_and_pick_level rte_log_set_level diff --git a/lib/librte_eal/windows/eal_interrupts.c b/lib/librte_eal/windows/eal_interrupts.c new file mode 100644 index 0000000000..d3ecdaccbc --- /dev/null +++ b/lib/librte_eal/windows/eal_interrupts.c @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2020 Mellanox Technologies, Ltd + */ + +#include + +int +rte_intr_rx_ctl(__rte_unused struct rte_intr_handle *intr_handle, + __rte_unused int epfd, __rte_unused int op, + __rte_unused unsigned int vec, __rte_unused void *data) +{ + return -ENOTSUP; +} diff --git a/lib/librte_eal/windows/meson.build b/lib/librte_eal/windows/meson.build index 08c888e018..b690bc6b0a 100644 --- a/lib/librte_eal/windows/meson.build +++ b/lib/librte_eal/windows/meson.build @@ -8,6 +8,7 @@ sources += files( 'eal_debug.c', 'eal_file.c', 'eal_hugepages.c', + 'eal_interrupts.c', 'eal_lcore.c', 'eal_log.c', 'eal_memalloc.c', -- 2.28.0