[dpdk-dev] [PATCH v3 2/2] examples/ethtool: get reg width to allocate memory
remy.horton at intel.com
Tue Jun 7 11:52:25 CEST 2016
On 01/06/2016 08:56, zr at semihalf.com wrote:
> From: Zyta Szpak <zr at semihalf.com>
> 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 device. If the device does not implement this function, it
> fallsback to sizeof(uint32_t)
> Signed-off-by: Zyta Szpak <zr at semihalf.com>
Acked-by: Remy Horton <remy.horton at intel.com>
More information about the dev