ethdev: add access to specific device info
authorLiang-Min Larry Wang <liang-min.wang@intel.com>
Thu, 16 Jul 2015 13:25:34 +0000 (09:25 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jul 2015 21:56:13 +0000 (23:56 +0200)
commit7a3f27cbf59b063dc364cdfb832e4ab85b3e42c2
treefe129194d50e15383a4d4829b45ece9947bb588c
parent8164fe82846b36bdd2830e502f1fa959a76fe484
ethdev: add access to specific device info

add new apis:
- rte_eth_dev_get_reg_length
- rte_eth_dev_get_reg_info
- rte_eth_dev_get_eeprom_length
- rte_eth_dev_get_eeprom
- rte_eth_dev_set_eeprom

to enable reading device parameters (register and
eeprom) based upon ethtool alike data parameter specification.

Signed-off-by: Liang-Min Larry Wang <liang-min.wang@intel.com>
Acked-by: Andrew Harvey <agh@cisco.com>
Acked-by: David Harton <dharton@cisco.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/Makefile
lib/librte_ether/rte_dev_info.h [new file with mode: 0644]
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map