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 10:36:22 +0800 Message-ID: <20160216023622.GD21426@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: David Marchand Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A1B89ADA2 for ; Tue, 16 Feb 2016 03:36:21 +0100 (CET) Content-Disposition: inline In-Reply-To: <1455542666-28895-4-git-send-email-david.marchand@6wind.com> 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 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? Otherwise, this patch looks good to me. --yliu