From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by dpdk.org (Postfix) with ESMTP id 7CB1A5A06 for ; Mon, 2 Nov 2015 16:59:08 +0100 (CET) Received: by obctp1 with SMTP id tp1so97331508obc.2 for ; Mon, 02 Nov 2015 07:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fYP71XMyz257YdcScGKQximbQFFLN1663UqXy82gb2o=; b=xC7ZGY7F4GVk75QGOOjPqDSqM+3STQyVyw/eUyIt+R6S2xxcxgsUVklXFBv9rZDRcD a4tiduBskTYahn8T4G2SdmUIqVNaE3Tpbwjfst0JY3O6sAJzDiY06E/Px/6QPIPd7U0a vPEN+3GwxiuzqI5K67gL6FXlui2iyzMPkIW4qsvrz70Tw9WzJ5PJ8NBqB7u/tRCf6xFk 7vxhB/rCUWuoA/qztrR8ldkc651ho7Zu9ham/Ws/1Ki5zS3Vtvx0XS6yVgtwyYYG0Xxa tJuqUQSRmZorGC5PbxB8YEXLxC/mGQTrZqIpXlRELgCz/sxY4Xqn0AiA8cVUdZVNH29D Ccrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=fYP71XMyz257YdcScGKQximbQFFLN1663UqXy82gb2o=; b=WbHPBYJ9PJ2oh5uvO4B4c/vtH4LdA4YxssJmyzEefljGKr7ahe1xBpNPjiEVwc0ho9 F0IEQEFTwPvl93w74Pcer3ZwERTfzNNBubHJJLoksWVbgewiXsLZlAeKqNEjGmdy3h1S zQ3PzzSuU6dgkJ91//h9yrLE0fGZz/HpsbsgkoSGiFYNaXniuBkqZMpIvDX3aOgoPTSd LJFVogYMQHzLfCTX/ex+1i6sgGK7b7IDHivv5G4/efElxPU21Y4zhig/1aHw0Gpkkvtr omCrbdWnhjdsNAUNgEEL3Wwt9bUVbdhrB7WHLGoPsnJMv+zqzB3CyBbtHTQqZlOla1TZ tOCw== X-Gm-Message-State: ALoCoQkCTDg0wYdGdXhLV/vGG8pkFHOWJEvGe9A7jYI4MnUU6bjIqlVxHX27gPRFuzMjbpWfkz86 MIME-Version: 1.0 X-Received: by 10.60.92.136 with SMTP id cm8mr14541169oeb.46.1446479947833; Mon, 02 Nov 2015 07:59:07 -0800 (PST) Received: by 10.76.131.166 with HTTP; Mon, 2 Nov 2015 07:59:07 -0800 (PST) In-Reply-To: <1446182873-28814-6-git-send-email-cunming.liang@intel.com> References: <1443072831-19065-1-git-send-email-cunming.liang@intel.com> <1446182873-28814-1-git-send-email-cunming.liang@intel.com> <1446182873-28814-6-git-send-email-cunming.liang@intel.com> Date: Mon, 2 Nov 2015 16:59:07 +0100 Message-ID: From: David Marchand To: Cunming Liang Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 05/11] eal/linux: add intr api to report multi-vector capability X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 15:59:08 -0000 On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang wrote: > VFIO allows multiple MSI-X vector, others doesn't, but maybe will allow it > in the future. > Device drivers need to be aware of the capability. > It's better to avoid condition check on interrupt type(VFIO) everywhere, > instead > a capability api is more flexible for the condition change. > > Signed-off-by: Cunming Liang > --- > lib/librte_eal/linuxapp/eal/eal_interrupts.c | 9 > +++++++++ > lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h | 10 > ++++++++++ > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++++ > 3 files changed, 26 insertions(+) > > BSD has wrappers for the rest of this api, please add one for this too. -- David Marchand