From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 2/2] examples/ethtool: use rte_eth_dev_get_reg_info for reg params Date: Fri, 08 Jul 2016 19:02:54 +0200 Message-ID: <6281869.fUZLLoNHdW@xps13> References: <1466688410-13826-1-git-send-email-zr@semihalf.com> <1467632207-13809-2-git-send-email-zr@semihalf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Remy Horton , wenzhuo.lu@intel.com, helin.zhang@intel.com, konstantin.ananyev@intel.com, jingjing.wu@intel.com, jerin.jacob@caviumnetworks.com, rahul.lakkireddy@chelsio.com, dev@dpdk.org To: Zyta Szpak Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 558D09AF3 for ; Fri, 8 Jul 2016 19:02:57 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id f126so18135000wma.1 for ; Fri, 08 Jul 2016 10:02:57 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-04 14:24, Remy Horton: > On 04/07/2016 12:36, Zyta Szpak wrote: > > From: Zyta Szpak > > > > 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 > > Acked-by: Remy Horton Series squashed (to avoid breaking example build) and applied, thanks