From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=vtb/pNQNefGH2l8eUCIPgICL6hWLaOSRChb1ps8pMsA=; b=RJJ4eIeY2vwAVvlTZ1Ft4sFosqVpMsfib+L2YVicVJV2v9s9U+Smzd3FXaHubtAt1A sC1ZbvogSQwDaYS2Q6Wwt0R2IDs1ZeVi29Izg5nV30aA4tY+WG5xVhPM9UKSOVTJwszN KGcbPbJqwYNHB2vrapDkV6dDoxQ+N+6A3sab7vEpJfHRT5YAl7JH38xsrmLCqls+j3wY YLIY+gvbu7bFp1DH5Ix/CFKnBPDq9nyx/OfLspktgoV8VC58cdwtqok69yPMSNUi9dXS V5prIz26ynEF+LS2damrPTVC7oPqqQaWetjJqP9gKVwUcNnw4KvTmuzdodaEpvY0W7iE hJUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=vtb/pNQNefGH2l8eUCIPgICL6hWLaOSRChb1ps8pMsA=; b=BaYzBNGfeiJnNhkGu2G9dDKim//vRrulQAqnnji8HiqM9KtQwmr51AoN70PqGjffeP h+Z2Qa9LlVvHGKX72grsbfV6v++LL86QJfL7McpuXPl5hg3iLsTyHb12Ob6n+T3ae+1t bpY62NMags39jMr0gBXdFURcm3XKMjE/F31S8VN+mgKOT9dHvXnjI6qryTH/l162vP4v AgJu0oYgi661Lx1vScsDL4qcUeKUaoOikQosAwAZLlOCn8gL5ZIUm4HP/RD2LqsthcJK RhMiZfvlCocomqn895wQglVAuE7lkOe6Sm6lgyZcSZdwzNkCs2H5WyJab7+9pr+la/VI ohJg== X-Gm-Message-State: ALyK8tJZyjhp5nYzPoXobYcxBJJ/VuEer+osbsoZFD+IwUmcwEnlAmTAIkFL5qH80v9hV77M X-Received: by 10.28.16.193 with SMTP id 184mr4611432wmq.62.1467997376858; Fri, 08 Jul 2016 10:02:56 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id n26sm3927397wmi.3.2016.07.08.10.02.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jul 2016 10:02:55 -0700 (PDT) From: Thomas Monjalon To: Zyta Szpak 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 Date: Fri, 08 Jul 2016 19:02:54 +0200 Message-ID: <6281869.fUZLLoNHdW@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1466688410-13826-1-git-send-email-zr@semihalf.com> <1467632207-13809-2-git-send-email-zr@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v6 2/2] examples/ethtool: use rte_eth_dev_get_reg_info for reg params X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 17:02:57 -0000 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