From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [dpdk-stable] [PATCH v3] net/virtio: fix xstats name issue Date: Wed, 7 Sep 2016 15:22:28 +0800 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 Cc: dev@dpdk.org, yuanhan.liu@linux.intel.com, stable@dpdk.org To: Zhiyong Yang Return-path: Content-Disposition: inline In-Reply-To: <1473228660-125113-1-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 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