From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] ethdev: add return value to stats get dev op Date: Wed, 11 Oct 2017 03:01:59 +0100 Message-ID: <157d75ef-01d0-6aca-81ec-c69bce2360c1@intel.com> References: <1507565524-18590-1-git-send-email-matan@mellanox.com> <1507666818-3784-1-git-send-email-matan@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Matan Azrad , dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B0E3B199AE for ; Wed, 11 Oct 2017 04:02:00 +0200 (CEST) In-Reply-To: <1507666818-3784-1-git-send-email-matan@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/10/2017 9:20 PM, Matan Azrad wrote: > The stats_get dev op API doesn't include return value, so PMD cannot > return an error in case of failure at stats getting process time. > > Since PCI devices can be removed and there is a time between the > physical removal to the RMV interrupt, the user may get invalid stats > without any indication. > > This patch changes the stats_get API return value to be int instead of > void. > > All the net PMDs stats_get dev ops are adjusted by this patch. > > Signed-off-by: Matan Azrad Reviewed-by: Ferruh Yigit