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 A1DF6C300 for ; Wed, 17 Feb 2016 15:20:25 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 17 Feb 2016 06:20:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,460,1449561600"; d="scan'208";a="747989669" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 17 Feb 2016 06:20:23 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u1HEKMvP018987; Wed, 17 Feb 2016 14:20:22 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u1HEKMcm014219; Wed, 17 Feb 2016 14:20:22 GMT Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u1HEKMER014215; Wed, 17 Feb 2016 14:20:22 GMT From: Ferruh Yigit To: dev@dpdk.org Date: Wed, 17 Feb 2016 14:20:14 +0000 Message-Id: <1455718817-14171-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [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: Wed, 17 Feb 2016 14:20:26 -0000 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. Ferruh Yigit (3): ethdev: add helper functions to get eth_dev and dev private data app/test: use ethdev helper functions bonding: use ethdev helper functions app/test/test_link_bonding.c | 35 ++++++++------ app/test/virtual_pmd.c | 51 +++++++++------------ drivers/net/bonding/rte_eth_bond_8023ad.c | 10 ++-- drivers/net/bonding/rte_eth_bond_api.c | 76 +++++++++++++++---------------- drivers/net/bonding/rte_eth_bond_args.c | 13 ++++-- drivers/net/bonding/rte_eth_bond_pmd.c | 47 +++++++++++-------- lib/librte_ether/rte_ethdev.h | 44 ++++++++++++++++++ 7 files changed, 167 insertions(+), 109 deletions(-) -- 2.5.0