From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by dpdk.org (Postfix) with ESMTP id 8A1A33208 for ; Fri, 27 Feb 2015 11:33:15 +0100 (CET) Received: by mail-oi0-f45.google.com with SMTP id i138so14857162oig.4 for ; Fri, 27 Feb 2015 02:33:15 -0800 (PST) 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=Qx4yDzMk2fvDlaHh6eCvGrxWEeqM/+RRLkLkORv095Y=; b=fZ1ZUhe3qhgoRXCc2QyRMMJBuU1BHOcphRnQTwomznfuysXY9XZ60rVp4ZGxfOPwfL 7AFDaI3uC/+E2l4x5VXFQY8NE1yTGJzaxoE9izuyFzzJzU8gZj+tB69+hlK73D/cl3Ke L0CNCjnh4QUHtc9y+3sUyH4UxHzdlRCrMPxrIosSoeCgEiFqKGntciaJ6oDgEbBOH+NO Twx9ssqz2gJrV0g7/EbwDKmcBXfYmNEq1SrK/iTAFoBFOLGZ0bjwU4+Mjg8T+t6XivCa DWvL/vH7iJwjjykzAFe0oLr2AQyPY7wBSOr7J//309idNXCX4qL9NcjRcN51+pUheSNy 3TFA== X-Gm-Message-State: ALoCoQm2iK4kc9XSeGvdGcFF9c2DIpss3M+10SGOGFTxpvVX95yQHLcqiN6fEeGCbWC89AifcqMZ MIME-Version: 1.0 X-Received: by 10.60.97.35 with SMTP id dx3mr9503684oeb.6.1425033194986; Fri, 27 Feb 2015 02:33:14 -0800 (PST) Received: by 10.76.133.162 with HTTP; Fri, 27 Feb 2015 02:33:14 -0800 (PST) In-Reply-To: <1425012976-10173-3-git-send-email-cunming.liang@intel.com> References: <1424710542-14637-1-git-send-email-danny.zhou@intel.com> <1425012976-10173-1-git-send-email-cunming.liang@intel.com> <1425012976-10173-3-git-send-email-cunming.liang@intel.com> Date: Fri, 27 Feb 2015 11:33:14 +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 v6 2/8] eal/linux: add rx queue interrupt FDs to intr handle struct 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: Fri, 27 Feb 2015 10:33:15 -0000 Hello, On Fri, Feb 27, 2015 at 5:56 AM, Cunming Liang wrote: > Per vector event fd will store in rte_intr_handle during init. > Device drivers take responsibility to fill queue-vec mapping > table(vec_num[]). > > Signed-off-by: Danny Zhou > Signed-off-by: Cunming Liang > --- > v6 changes: > - add mapping table between irq vector number and queue id. > > diff --git a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > index 6a159c7..9f45377 100644 > --- a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > +++ b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h > @@ -38,6 +38,9 @@ > #ifndef _RTE_LINUXAPP_INTERRUPTS_H_ > #define _RTE_LINUXAPP_INTERRUPTS_H_ > > +#define VFIO_MAX_RXTX_INTR_ID 32 > +#define VFIO_MAX_QUEUE_ID VFIO_MAX_RXTX_INTR_ID > + > This is a little weird to talk about vfio here. This file is "generic". Ok, you will store vfio eventfds here, but vfio is an implementation, not the abstraction. -- David Marchand