numam-dpdk/examples/ethtool
Zyta Szpak 001a1c0f98 ethdev: get registers width
The ethtool app was allocating too little space for 64-bit
registers which resulted in memory corruption.

Removes hard-coded assumption that device registers
are always 32 bits wide. The rte_eth_dev_get_reg_length
and rte_eth_dev_get_reg_info callbacks did not
provide register size to the app in any way while is
needed to allocate correct number of bytes before
retrieving registers using rte_eth_dev_get_reg.

This commit changes rte_eth_dev_get_reg_info so that
it can be used to retrieve both the number of registers
and their width, and removes the now-redundant
rte_eth_dev_get_reg_length.

Signed-off-by: Zyta Szpak <zyta.szpak@semihalf.com>
Acked-by: Remy Horton <remy.horton@intel.com>
2016-07-10 14:55:42 +02:00
..
ethtool-app ethdev: remove deprecated statistics 2016-04-20 13:49:31 +02:00
lib ethdev: get registers width 2016-07-10 14:55:42 +02:00
Makefile examples: skip unsupported ethtool and l3fwd-power on FreeBSD 2015-12-14 10:36:52 +01:00