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

Remy Horton remy.horton at intel.com
Mon Jul 4 12:39:51 CEST 2016


On 04/07/2016 07:51, Zyta Szpak 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.

Comments regarding commit message on v4 1/2 also apply here..

It is also not v4.. :)


> Signed-off-by: Zyta Szpak <zr at semihalf.com>
> ---
>  examples/ethtool/lib/rte_ethtool.c | 19 +++++++++++++------
>  1 file changed, 13 insertions(+), 6 deletions(-)




More information about the dev mailing list