[dpdk-dev] [dpdk-stable] [PATCH v3] net/virtio: fix xstats name issue

Yuanhan Liu yuanhan.liu at linux.intel.com
Wed Sep 7 09:22:28 CEST 2016


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: <stable at dpdk.org>
> Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>

Applied to dpdk-next-virtio.

Thanks!

	--yliu


More information about the dev mailing list