From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 15 Feb 2016 22:12:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,454,1449561600"; d="scan'208";a="903378819" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by fmsmga001.fm.intel.com with ESMTP; 15 Feb 2016 22:12:49 -0800 Date: Tue, 16 Feb 2016 14:12:54 +0800 From: Yuanhan Liu To: David Marchand 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v3 3/4] eal: introduce pci ioport api 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: Tue, 16 Feb 2016 06:12:51 -0000 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