[dpdk-dev] [PATCH 2/2] examples/ethtool: get reg width to allocate memory

2016-05-25 Thread Remy Horton
On 25/05/2016 07:36, zr at semihalf.com wrote: > From: Zyta Szpak [..] > Signed-off-by: Zyta Szpak > --- > examples/ethtool/lib/rte_ethtool.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) Acked-by: Remy Horton

[dpdk-dev] [PATCH 2/2] examples/ethtool: get reg width to allocate memory

2016-05-25 Thread z...@semihalf.com
From: Zyta Szpak Version 2 of fixing the fixed register width assumption. Not every device uses 32-bit wide register. The app was allocating too little space for 64-bit registers which resulted in memory corruption. This commit resolves this by getting the size of register in bytes for a specific