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

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 8 19:02:54 CEST 2016


2016-07-04 14:24, Remy Horton:
> On 04/07/2016 12:36, Zyta Szpak wrote:
> > From: Zyta Szpak <zr at semihalf.com>
> >
> > This change deals with hard-coded register width.
> > 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 <zr at semihalf.com>
> 
> Acked-by: Remy Horton <remy.horton at intel.com>

Series squashed (to avoid breaking example build) and applied, thanks



More information about the dev mailing list