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 5D0E1A04BB; Fri, 25 Sep 2020 03:19:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E2C341DEF8; Fri, 25 Sep 2020 03:19:05 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by dpdk.org (Postfix) with ESMTP id 0ADBA1DEEF for ; Fri, 25 Sep 2020 03:19:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1059) id 3DA8120B7179; Thu, 24 Sep 2020 18:19:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3DA8120B7179 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1600996743; bh=mrR/wWnx3Mced9M/p6/oVlal7TLxUEQ2tNw6jlgErZk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MoMroNcRQmjsCGfta1xXR9SPCpJVCRkc05LMis44xyBMHUt/UIQGn3vWvEmPcXwyc zjQa5uhCeUPp8ZQO959SYiCsWCWiRRDAltlCp7qPsS2dPA8yyhPa3UV71NkQX7A4kZ lhGy/218RAUevEq4Cur7JtEjtrb3UhtDtR8W5pUY= Date: Thu, 24 Sep 2020 18:19:03 -0700 From: Narcisa Ana Maria Vasile To: Dmitry Kozlyuk Cc: dev@dpdk.org, Harman Kalra , Dmitry Malloy , Pallavi Kadam Message-ID: <20200925011903.GA7110@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20200911002207.31813-1-dmitry.kozliuk@gmail.com> <20200911002207.31813-2-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200911002207.31813-2-dmitry.kozliuk@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [dpdk-dev] [PATCH 1/2] eal/windows: add interrupt thread skeleton 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" On Fri, Sep 11, 2020 at 03:22:06AM +0300, Dmitry Kozlyuk wrote: > Windows interrupt support is based on IO completion ports (IOCP). > Interrupt thread would send the devices requests to notify about > interrupts and then wait for any request completion. Add skeleton code > of this model without any hardware support. > > Another way to wake up the interrupt thread is APC (asynchronous procedure > call), scheduled by any other thread via eal_intr_thread_schedule(). > This internal API is intended for alarm implementation. > > Signed-off-by: Dmitry Kozlyuk > --- > lib/librte_eal/include/rte_eal_interrupts.h | 14 ++- > lib/librte_eal/rte_eal_exports.def | 1 + > lib/librte_eal/windows/eal.c | 5 ++ > lib/librte_eal/windows/eal_interrupts.c | 99 +++++++++++++++++++++ > lib/librte_eal/windows/eal_windows.h | 12 +++ > lib/librte_eal/windows/include/pthread.h | 7 ++ > lib/librte_eal/windows/meson.build | 1 + > 7 files changed, 136 insertions(+), 3 deletions(-) > create mode 100644 lib/librte_eal/windows/eal_interrupts.c > Reviewed-by: Narcisa Vasile Getting an "undefined reference to rte_intr_rx_ctl", guess we need to add a stub for this. Otherwise, compiles successfully with both clang and mingw.