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 1B7702C62 for ; Fri, 26 Feb 2016 15:29:26 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 26 Feb 2016 06:29:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="753772534" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by orsmga003.jf.intel.com with ESMTP; 26 Feb 2016 06:29:20 -0800 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.157]) by irsmsx110.ger.corp.intel.com ([169.254.15.31]) with mapi id 14.03.0248.002; Fri, 26 Feb 2016 14:29:19 +0000 From: "Van Haaren, Harry" To: Igor Ryzhov , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Virtio xstats problem Thread-Index: AQHRcJ2OSuSrdBeQukqawnonaRxn2Z8+YU3w Date: Fri, 26 Feb 2016 14:29:19 +0000 Message-ID: References: <26CA3897-E24A-4B7B-918F-45679AA896E0@nfware.com> In-Reply-To: <26CA3897-E24A-4B7B-918F-45679AA896E0@nfware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTcwZDA5MDUtNmNkNS00MDdmLWJmNjItOTBjOGNjYzk4MDAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlwvZlZIbVFwREZSREE3MHJvQ0xZTnJTSnhKdnVJV1piOWFYb25iWE5xS1N3PSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Virtio xstats problem 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: Fri, 26 Feb 2016 14:29:27 -0000 > 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