[dpdk-dev] [PATCH v4 2/2] examples/ethtool: use rte_eth_dev_get_reg_info for reg params

Remy Horton remy.horton at intel.com
Mon Jun 27 12:46:19 CEST 2016

On 23/06/2016 14:26, zr at semihalf.com wrote:
> From: Zyta Szpak <zr at semihalf.com>
> Version 4 of fixing the fixed register width assumption.
> The app was allocating too little space for 64-bit registers
> which resulted in memory corruption. This commit resolves
> this by getting the number of registers and size of register
> by rte_eth_dev_get_reg_info function called first time
> with data=NULL.
> Signed-off-by: Zyta Szpak <zr at semihalf.com>

Acked-by: Remy Horton <remy.horton at intel.com>

More information about the dev mailing list