From: Ferruh Yigit Subject: Re: [PATCH 5/7] net/bnxt: fix automatic clearing of VF stats Date: Thu, 29 Jun 2017 11:53:57 +0100 Message-ID: <6c9f1d6a-2921-b67b-e039-b4005c7604fd@intel.com> References: <20170629025142.19404-1-ajit.khaparde@broadcom.com> <20170629025142.19404-6-ajit.khaparde@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Stephen Hurd To: Ajit Khaparde , dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3D4F42C2A for ; Thu, 29 Jun 2017 12:54:00 +0200 (CEST) In-Reply-To: <20170629025142.19404-6-ajit.khaparde@broadcom.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 6/29/2017 3:51 AM, Ajit Khaparde wrote: > Add code to avoid automatic clearing of VF stats on a function > reset or a stat context free. > > Signed-off-by: Stephen Hurd > Signed-off-by: Ajit Khaparde <...> > + > +/** > + * Enable/Disable VF statistics retention > + * > + * @param port > + * The port identifier of the Ethernet device. > + * @param vf > + * VF id. > + * @param on > + * 1 - Prevent VF statistics from automatically resetting > + * 0 - Allow VF statistics to automatically reset > + * > + * @return > + * - (0) if successful. > + * - (-ENODEV) if *port* invalid. > + * - (-EINVAL) if bad parameter. > + */ > +int rte_pmd_bnxt_set_vf_persist_stats(uint8_t port, uint16_t vf, uint8_t on); > #endif /* _PMD_BNXT_H_ */ > This patch adds a new PMD specific API, .map file should be updated too for shared library builds. This is not easy to catch because API not used anywhere, what do you think updating testpmd to use this API, which also lets testing the API?