From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B759A0C43; Tue, 19 Oct 2021 12:42:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2028140683; Tue, 19 Oct 2021 12:42:36 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 576F44003E for ; Tue, 19 Oct 2021 12:42:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10141"; a="225938867" X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="225938867" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 03:42:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="443833293" Received: from spdk-wcp-00.igk.intel.com ([10.211.11.55]) by orsmga006.jf.intel.com with ESMTP; 19 Oct 2021 03:42:29 -0700 From: Maciej Szwed To: dev@dpdk.org Cc: hkalra@marvell.com, anatoly.burakov@intel.com, jia.guo@intel.com, david.marchand@redhat.com, Maciej Szwed Date: Tue, 19 Oct 2021 12:06:57 +0200 Message-Id: <20211019100657.692706-1-maciej.szwed@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6] eal: fix: read data buffer on RTE_INTR_HANDLE_VFIO_REQ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" We should call read() on RTE_INTR_HANDLE_VFIO_REQ event to confirm that event. Signed-off-by: Maciej Szwed --- lib/eal/linux/eal_interrupts.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c index 22b3b7bcd9..7c716a3812 100644 --- a/lib/eal/linux/eal_interrupts.c +++ b/lib/eal/linux/eal_interrupts.c @@ -918,17 +918,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds) bytes_read = sizeof(buf.timerfd_num); break; #ifdef VFIO_PRESENT +#ifdef HAVE_VFIO_DEV_REQ_INTERFACE + case RTE_INTR_HANDLE_VFIO_REQ: +#endif case RTE_INTR_HANDLE_VFIO_MSIX: case RTE_INTR_HANDLE_VFIO_MSI: case RTE_INTR_HANDLE_VFIO_LEGACY: bytes_read = sizeof(buf.vfio_intr_count); break; -#ifdef HAVE_VFIO_DEV_REQ_INTERFACE - case RTE_INTR_HANDLE_VFIO_REQ: - bytes_read = 0; - call = true; - break; -#endif #endif case RTE_INTR_HANDLE_VDEV: case RTE_INTR_HANDLE_EXT: -- 2.27.0