From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v9 2/9] eal/pci: get iommu class Date: Fri, 06 Oct 2017 01:58:52 +0200 Message-ID: <5989047.qJ3B3g597f@xps> References: <20170918104234.9149-1-santosh.shukla@caviumnetworks.com> <20170920112356.17629-1-santosh.shukla@caviumnetworks.com> <20170920112356.17629-3-santosh.shukla@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, olivier.matz@6wind.com, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, aconole@redhat.com, stephen@networkplumber.org, anatoly.burakov@intel.com, gaetan.rivet@6wind.com, shreyansh.jain@nxp.com, bruce.richardson@intel.com, sergio.gonzalez.monroy@intel.com, maxime.coquelin@redhat.com To: Santosh Shukla Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 866361B1A5 for ; Fri, 6 Oct 2017 01:58:54 +0200 (CEST) In-Reply-To: <20170920112356.17629-3-santosh.shukla@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch is introducing a new abstraction. It is important to explain it for future readers of this code. 20/09/2017 13:23, Santosh Shukla: > +/** > + * IOVA mapping mode. > + */ Please explain what IOVA means and what is the purpose of distinguish the different modes. > +enum rte_iova_mode { > + RTE_IOVA_DC = 0, /* Don't care mode */ > + RTE_IOVA_PA = (1 << 0), > + RTE_IOVA_VA = (1 << 1) > +}; You should explain each value of the enum.