From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 0/3] ethdev: add helper functions to get eth_dev and dev private data Date: Thu, 10 Mar 2016 01:00:28 +0100 Message-ID: <2720050.b5GnNWtRZF@xps13> References: <1455718817-14171-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id C60D52B9A for ; Thu, 10 Mar 2016 01:02:09 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id l68so7288840wml.1 for ; Wed, 09 Mar 2016 16:02:09 -0800 (PST) In-Reply-To: <1455718817-14171-1-git-send-email-ferruh.yigit@intel.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" 2016-02-17 14:20, Ferruh Yigit: > This is to provide abstraction and reduce global variable access. > > Global variable rte_eth_devices kept exported to not break ABI. > > Bonding driver not selected on purpose, just it seems it is using > rte_eth_devices heavily. > > There are a few more usage in drivers but they left as it is because they > are in fast path code. What is the benefit of these functions if you do not plan to remove the global variables later? Anyway this discussion targets the release 16.07.