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

Remy Horton remy.horton at intel.com
Mon Jul 4 15:24:12 CEST 2016


On 04/07/2016 12:36, Zyta Szpak wrote:
> From: Zyta Szpak <zr at semihalf.com>
>
> This change deals with hard-coded register width.
> 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