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(-)