From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v3 1/2] net/vhost: add a new stats struct Date: Tue, 20 Sep 2016 18:44:27 +0800 Message-ID: <20160920104427.GS23158@yliu-dev.sh.intel.com> References: <1473408927-40364-1-git-send-email-zhiyong.yang@intel.com> <1474364205-111569-1-git-send-email-zhiyong.yang@intel.com> <1474364205-111569-2-git-send-email-zhiyong.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, thomas.monjalon@6wind.com, pmatilai@redhat.com, harry.van.haaren@intel.com To: Zhiyong Yang Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3C625590E for ; Tue, 20 Sep 2016 12:43:59 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1474364205-111569-2-git-send-email-zhiyong.yang@intel.com> 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" On Tue, Sep 20, 2016 at 05:36:44PM +0800, Zhiyong Yang wrote: > The patch moves all stats counters to a new defined struct vhost_stats > as follows, in order to manage all stats counters in a unified way and > simplify the subsequent function implementation(vhost_dev_xstats_reset). > > struct vhost_stats { > uint64_t rx_pkts; > uint64_t tx_pkts; As I mentioned in last review (you may not notice it though), there is no need to introduce rx_pkts and tx_pkts: only one of them will be used for a specific queue. You could just use "pkts". > uint64_t missed_pkts; > uint64_t rx_bytes; > uint64_t tx_bytes; Ditto. --yliu