From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id DBCBD2C07 for ; Mon, 22 Aug 2016 09:52:34 +0200 (CEST) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1B890C057FAA; Mon, 22 Aug 2016 07:52:34 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-234.ams2.redhat.com [10.36.4.234]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7M7qW1X029581; Mon, 22 Aug 2016 03:52:33 -0400 To: Zhiyong Yang , dev@dpdk.org References: <1471608966-39077-1-git-send-email-zhiyong.yang@intel.com> From: Panu Matilainen Message-ID: <08c5733b-6758-2d98-df4a-a2261ecf43e4@redhat.com> Date: Mon, 22 Aug 2016 10:52:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1471608966-39077-1-git-send-email-zhiyong.yang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 22 Aug 2016 07:52:34 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] vhost: add pmd xstats 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: Mon, 22 Aug 2016 07:52:35 -0000 On 08/19/2016 03:16 PM, Zhiyong Yang wrote: > This feature adds vhost pmd extended statistics from per queue perspective > for the application such as OVS etc. > > The statistics counters are based on RFC 2819 and 2863 as follows: > > rx/tx_good_packets > rx/tx_total_bytes > rx/tx_dropped_pkts > rx/tx_broadcast_packets > rx/tx_multicast_packets > rx/tx_ucast_packets > rx/tx_undersize_errors > rx/tx_size_64_packets > rx/tx_size_65_to_127_packets; > rx/tx_size_128_to_255_packets; > rx/tx_size_256_to_511_packets; > rx/tx_size_512_to_1023_packets; > rx/tx_size_1024_to_1522_packets; > rx/tx_1523_to_max_packets; > rx/tx_errors > rx_fragmented_errors > rx_jabber_errors > rx_unknown_protos_packets; > > No API is changed or added. > rte_eth_xstats_get_names() to retrieve what kinds of vhost xstats are > supported, > rte_eth_xstats_get() to retrieve vhost extended statistics, > rte_eth_xstats_reset() to reset vhost extended statistics. > > Since collecting data of vhost_update_packet_xstats will have some effect > on RX/TX performance, so, Setting compiling switch > CONFIG_RTE_LIBRTE_PMD_VHOST_UPDATE_XSTATS=n by default in the file > config/common_base, if needing xstats data, you can enable it(y). NAK, such things need to be switchable at run-time. - Panu -