From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 20 Sep 2016 03:43:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,367,1470726000"; d="scan'208";a="1033603892" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga001.jf.intel.com with ESMTP; 20 Sep 2016 03:43:56 -0700 Date: Tue, 20 Sep 2016 18:44:27 +0800 From: Yuanhan Liu To: Zhiyong Yang Cc: dev@dpdk.org, thomas.monjalon@6wind.com, pmatilai@redhat.com, harry.van.haaren@intel.com 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 Content-Disposition: inline In-Reply-To: <1474364205-111569-2-git-send-email-zhiyong.yang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/vhost: add a new stats struct 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: Tue, 20 Sep 2016 10:43:59 -0000 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