From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f176.google.com (mail-wj0-f176.google.com [209.85.210.176]) by dpdk.org (Postfix) with ESMTP id B5A5010D82 for ; Thu, 22 Dec 2016 16:26:10 +0100 (CET) Received: by mail-wj0-f176.google.com with SMTP id c11so25802473wjx.3 for ; Thu, 22 Dec 2016 07:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=56BEv8/PWM8wZeySJTuvD/J5rbyL79RC/Mc1P5ugA3c=; b=ZLnYuT1NZV1WwVerjo9uP6eEFVMDfTrklPncEo8wJK2CzAh2i3GU/QZAn88X2FNh4+ w48YnU+HYzC2W4/XBh7B3F5OEg9qtfsYBpfXR6trmtnJKSwlG3B53t2OEnE9DfILrPxf v04CqLmmOt9ldBP0/lsOY5VeOxF3CNXz4rSfNX3WCegPcP5j9OMuaslBjqK2LBJEv1Ld WT3xbdWRdusGIpM+uRWA6kH91Y143FiEF19ta9xcwkXE8l+cj29yTzI0e1zFcq7LxNw8 Q1BYwkLiMmBlD4zju34oUqHchovkiRIO6kOdGHPamH11W9Zd5iLQfDEV4JdTGnBqvu1Y p/4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=56BEv8/PWM8wZeySJTuvD/J5rbyL79RC/Mc1P5ugA3c=; b=RMDloXPd3iPopgnLS3zmnNEGtQg96MuYA/Art8dTJ0VZb4EfGoXKnhn9B7PwIsEe/S FdMENbT8q+wWna1maARzBB5TffxfH714p1hQCNPfmA42u09g3pDWNXVW0IaGnNRA6pom jZek81iJ11dDLoQeg78BrR6MGjeLe2G8+EuGqeVcGVtxcLWhzZHyEQQpNeskFuWbk5Te KkXjbIbOmKAF/qVtGGj2Gsw9Ljjy9zZgdlTBmMbJQ57+jjBwmaihsLDdtelOLRNZCJN8 gn54SQsUmlVpVVfFwEF0jVrCI9nfuMll7de7RmcI09XPipkybIG/Qi5DfSShWZlWOL8+ tjYw== X-Gm-Message-State: AIkVDXLZvI0ZnpPtOdersRCa3pNKoulmZlrDq/iinXf2vkTgS7X1klUWdaRd6EXYApT60qF9 X-Received: by 10.194.117.134 with SMTP id ke6mr9521014wjb.123.1482420370474; Thu, 22 Dec 2016 07:26:10 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id x7sm36194537wjp.18.2016.12.22.07.26.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Dec 2016 07:26:09 -0800 (PST) From: Thomas Monjalon To: Jan Blunck Cc: dev@dpdk.org, shreyansh.jain@nxp.com, david.marchand@6wind.com, stephen@networkplumber.org Date: Thu, 22 Dec 2016 16:26:09 +0100 Message-ID: <10047221.5fZJY41fdK@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1482332986-7599-1-git-send-email-jblunck@infradead.org> References: <1482332986-7599-1-git-send-email-jblunck@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4 00/23] Decouple ethdev from PCI device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 15:26:10 -0000 2016-12-21 16:09, Jan Blunck: > This is a partial merge of Stephens and my patches to make the rte_eth_dev > independent of the rte_pci_device. Thanks for the hard work. > Jan Blunck (17): > eal: define container_of macro > eal: Allow passing const rte_intr_handle > virtio: Don't fill dev_info->driver_name > virtio: Add vtpci_intr_handle() helper to get rte_intr_handle > virtio: Don't depend on struct rte_eth_dev's pci_dev > bnx2x: localize mapping from eth_dev to pci > fm10k: localize mapping from eth_dev to pci > qede: localize mapping of eth_dev to pci > szedata2: localize handling of pci resources > nfp: localize rte_pci_device handling > vmxnet3: use eth_dev->data->drv_name instead of pci_drv name > ethdev: Helper to map to struct rte_pci_device > drivers: Replace per-PMD macros with rte_eth_dev_to_pci() helper > drivers: Use rte_eth_dev_to_pci() helper > ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get() > ethdev: Decouple interrupt handling from PCI device > ethdev: Decouple struct rte_eth_dev from struct rte_pci_device > > Stephen Hemminger (6): > rte_device: make driver pointer const > pmd: remove useless reset of dev_info->dev_pci > e1000: localize mapping from eth_dev to pci > ixgbe: localize mapping from eth_dev to pci_device > i40e: localize mapping of eth_dev to pci > broadcom: localize mapping from eth_dev to pci I think it would easier to read if RTE_PCI_DEV macro was introduced at the beginning with container_of macro and used in the "localize patches". So the patches [PATCH v4 19/23] drivers: Replace per-PMD macros with rte_eth_dev_to_pci() helper and [PATCH v4 20/23] drivers: Use rte_eth_dev_to_pci() helper could be squashed in the "localize patches".