From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Van Haaren, Harry" Subject: Re: Virtio xstats problem Date: Fri, 26 Feb 2016 14:29:19 +0000 Message-ID: References: <26CA3897-E24A-4B7B-918F-45679AA896E0@nfware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Igor Ryzhov , "dev@dpdk.org" Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 1B7702C62 for ; Fri, 26 Feb 2016 15:29:26 +0100 (CET) In-Reply-To: <26CA3897-E24A-4B7B-918F-45679AA896E0@nfware.com> Content-Language: en-US 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" > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Igor Ryzhov > I found some problem with virtio xstats counters. >=20 > Example: >=20 > rx_good_packets: 3 > rx_good_bytes: 180 > rx_errors: 0 >=20 > rx_q0_good_packets: 3 > rx_q0_good_bytes: 180 > rx_q0_errors: 0 >=20 > rx_q0_multicast_packets: 3 > rx_q0_broadcast_packets: 1 > rx_q0_undersize_packets: 3 > It means that undersize packets are counted as good packets instead of er= rors. Are you sending 64 byte packets? There are no 4 bytes of CRC on virtual interfaces, so 60 bytes per packet is OK. > Or maybe > size of packet is calculated wrong. > I don't have time now to check it more deeply - I can do it sometime late= r, but maybe > someone want to help. Are the packets multicast or broadcast? It looks like one of the counters there is wrong. > PS. Is it a common practice to count broadcast packets twice - in broadca= st and multicast > counters? No packet should be counted twice - it must be put into one bucket of mutli= , broad or unicast. -Harry