From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 53CE58E70; Wed, 7 Sep 2016 09:22:00 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 07 Sep 2016 00:21:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,295,1470726000"; d="scan'208";a="757911369" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by FMSMGA003.fm.intel.com with ESMTP; 07 Sep 2016 00:21:57 -0700 Date: Wed, 7 Sep 2016 15:22:28 +0800 From: Yuanhan Liu To: Zhiyong Yang Cc: dev@dpdk.org, yuanhan.liu@linux.intel.com, stable@dpdk.org Message-ID: <20160907072228.GU7328@yliu-dev.sh.intel.com> References: <1473148212-142486-1-git-send-email-zhiyong.yang@intel.com> <1473228660-125113-1-git-send-email-zhiyong.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473228660-125113-1-git-send-email-zhiyong.yang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] net/virtio: fix xstats name issue 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: Wed, 07 Sep 2016 07:22:01 -0000 On Wed, Sep 07, 2016 at 02:11:00PM +0800, Zhiyong Yang wrote: > We have a stats named "size_1024_1517_packets", while the code > actually counts the range "[1024, 1518]", which is obviously wrong. > The code is as follows in the function virtio_update_packet_stats. > > else if (s < 1519) > stats->size_bins[6]++; > > We could either fix it by correcting the "if" check in the code, > or fix it by just renaming the stats to conform to the code. The > latter solution is taken because that's what the RFC2819 suggests. > > Fixes: 76d4c652e07d ("virtio: add extended stats") > > Cc: > Signed-off-by: Zhiyong Yang Applied to dpdk-next-virtio. Thanks! --yliu