From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 20/20] ethdev: Decouple from PCI device Date: Fri, 23 Dec 2016 17:17:07 +0100 Message-ID: <2185678.prfkkk662h@xps13> References: <1482508691-11408-1-git-send-email-jblunck@infradead.org> <1482508691-11408-21-git-send-email-jblunck@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, shreyansh.jain@nxp.com, david.marchand@6wind.com, stephen@networkplumber.org To: Jan Blunck Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 7493B201 for ; Fri, 23 Dec 2016 17:17:09 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id t79so216509120wmt.0 for ; Fri, 23 Dec 2016 08:17:09 -0800 (PST) In-Reply-To: <1482508691-11408-21-git-send-email-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-12-23 16:58, Jan Blunck: > +/** > + * @internal > + * Helper macro for drivers that need to convert to struct rte_pci_device. > + */ > +#define RTE_DEV_PCI_DEV(ptr) container_of(ptr, struct rte_pci_device, device) Do you prefer to rename to RTE_DEV_TO_PCI? > + struct rte_device *device; /**< Backing device for this device */ This comment looks strange. shorten to just "Backing device"?