From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 4/5] igb_uio: use msi mask functions from kernel, little corrections Date: Mon, 4 Sep 2017 17:55:36 +0100 Message-ID: <7ff5b4ae-2354-73c1-a724-668935de0232@intel.com> References: <1504174949-25656-3-git-send-email-markus.theil@tu-ilmenau.de> <1504216020-16067-1-git-send-email-markus.theil@tu-ilmenau.de> <1504216020-16067-4-git-send-email-markus.theil@tu-ilmenau.de> <7f2b5fab-4e5d-aa21-48f8-54675949dc94@intel.com> <5713124c-cc52-016a-9e74-1c22220b856b@tu-ilmenau.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org To: Markus Theil , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0C6427D0D for ; Mon, 4 Sep 2017 18:55:41 +0200 (CEST) In-Reply-To: <5713124c-cc52-016a-9e74-1c22220b856b@tu-ilmenau.de> Content-Language: en-US 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 9/4/2017 4:16 PM, Markus Theil wrote: > On 04.09.2017 14:43, Ferruh Yigit wrote: >> On 8/31/2017 10:46 PM, Markus Theil wrote: >>> This patch substitutes the custom MSI/MSI-X mask code and uses >>> already existing kernel APIs. Feedback/small corrections to the previous >>> patch of this series are also incorporated. >>> >>> Signed-off-by: Markus Theil >> <...> >> >>> + if (udev->mode == RTE_INTR_MODE_MSIX || udev->mode == RTE_INTR_MODE_MSI) { >>> +#ifdef HAVE_PCI_MSI_MASK_IRQ >>> + if (irq_state == 1) >>> + pci_msi_unmask_irq(irq); >>> + else >>> + pci_msi_mask_irq(irq); >> It is an option to keep using mask_msi_irq() without #ifdef, it seems in >> newer version of the kernel mask_msi_irq() is already wrapper to the >> pci_msi_mask_irq(). >> >> Although this may make the code simpler, it can break it if >> mask_msi_irq() wrapper removed. >> >> I would go with using mask_msi_irq() directly, but no strong opinion... >> >> <...> > I don't know what the comment "Conversion helpers. Should be removed > after merging" in msi.h really means. If the functions following the > comment are deleted in one of the next versions, I would not change > these lines. Otherwise I second your comment. That comment seems there since version 3.19 :) But it shows the intention to delete the wrappers, so lets stick with your version. Thanks, ferruh