From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D247C1B1B9 for ; Wed, 11 Oct 2017 04:09:19 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2017 19:09:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,359,1503385200"; d="scan'208";a="137266926" Received: from unknown (HELO [10.241.225.83]) ([10.241.225.83]) by orsmga004.jf.intel.com with ESMTP; 10 Oct 2017 19:09:18 -0700 From: Ferruh Yigit To: Matan Azrad , dev@dpdk.org References: <1507565524-18590-1-git-send-email-matan@mellanox.com> <1507666818-3784-1-git-send-email-matan@mellanox.com> <157d75ef-01d0-6aca-81ec-c69bce2360c1@intel.com> Message-ID: <3da5949d-71d1-43d9-1583-c5d401ee0bcb@intel.com> Date: Wed, 11 Oct 2017 03:09:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <157d75ef-01d0-6aca-81ec-c69bce2360c1@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] ethdev: add return value to stats get dev op X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 02:09:23 -0000 On 10/11/2017 3:01 AM, Ferruh Yigit wrote: > 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 Applied to dpdk-next-net/master, thanks.