From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9B84A2BA0 for ; Thu, 10 Mar 2016 14:37:54 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 10 Mar 2016 05:37:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,315,1455004800"; d="scan'208";a="761634773" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.48]) ([10.237.221.48]) by orsmga003.jf.intel.com with ESMTP; 10 Mar 2016 05:37:52 -0800 To: Thomas Monjalon References: <1455718817-14171-1-git-send-email-ferruh.yigit@intel.com> <2720050.b5GnNWtRZF@xps13> From: Ferruh Yigit Message-ID: <56E178AF.9000207@intel.com> Date: Thu, 10 Mar 2016 13:37:51 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <2720050.b5GnNWtRZF@xps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 0/3] ethdev: add helper functions to get eth_dev and dev private data 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: Thu, 10 Mar 2016 13:37:55 -0000 On 3/10/2016 12:00 AM, Thomas Monjalon wrote: > 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? > - Better discipline to abstract, function call can be costly than direct access, but I believe this is no problem outside of the fast path. - Helper functions for common tasks, like get private data by port. > Anyway this discussion targets the release 16.07. > There is no urgency for these. Thanks, ferruh