From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v3 3/4] eal: introduce pci ioport api Date: Tue, 16 Feb 2016 14:12:54 +0800 Message-ID: <20160216061254.GK21426@yliu-dev.sh.intel.com> References: <1454831317-4542-1-git-send-email-david.marchand@6wind.com> <1455542666-28895-1-git-send-email-david.marchand@6wind.com> <1455542666-28895-4-git-send-email-david.marchand@6wind.com> <20160216023622.GD21426@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" To: David Marchand Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1E4B29A8E for ; Tue, 16 Feb 2016 07:12:50 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Feb 16, 2016 at 07:09:49AM +0100, David Marchand wrote: > On Tue, Feb 16, 2016 at 3:36 AM, Yuanhan Liu > wrote: > > On Mon, Feb 15, 2016 at 02:24:25PM +0100, David Marchand wrote: > >> +/** > >> + * A structure used to access io resources for a pci device. > >> + * rte_pci_ioport is arch, os, driver specific, and should not be used outside > >> + * of pci ioport api. > >> + */ > >> +struct rte_pci_ioport { > >> + struct rte_pci_device *dev; > >> + uint64_t offset; > >> +}; > > > > "offset" dosen't sound like a good name to me; espeicially when I found > > code like below: > > > > reg = p->offset + offset; > > > > Regarding that, maybe "base" is a better name? I don't like it too much, > > though. Any better idea? > > Hum, yes, base sounds better, and I have no better idea, will go with > this unless someone else complains. > > > Otherwise, this patch looks good to me. > > Thanks. > > I will respin this patchset and if nobody is against this, I think Feel free to add: Reviewed-by: Yuanhan Liu --yliu > this patchset should be pulled quickly because other patches depend on > it. > > > -- > David Marchand