Re: [PATCH v4 2/2] examples/ethtool: use rte_eth_dev_get_reg_info for reg params
From: Remy Horton <hidden>
Date: 2016-06-27 10:46:22
From: Remy Horton <hidden>
Date: 2016-06-27 10:46:22
On 23/06/2016 14:26, zr@semihalf.com wrote:
From: Zyta Szpak <redacted> 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 <redacted>
Acked-by: Remy Horton <redacted>