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