From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BD3BCA0032; Wed, 11 May 2022 09:24:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6486F410F2; Wed, 11 May 2022 09:24:55 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 56D6140042 for ; Wed, 11 May 2022 09:24:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652253892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x96SG08+gOBxkF6jOVxMt4+VDyhQO53lPrKWeA57P84=; b=EgHTF2ceYRHadB64Smmm+qtGCY8021BH3zWv67pLZ4KIFjhvE9necTOGj1g/KDb/VhwtMW fgyGy9WRVNixmZPL4FKGT07xhwqrBa7Tku2m6nSSGdfaAHAhnz1FG13lo4xEXDZjNI54KB KRcHrlebPthblR3L0Q9fR6zd8MyQveg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-542-Vb0at0nXM2STwsyiulh8JA-1; Wed, 11 May 2022 03:24:49 -0400 X-MC-Unique: Vb0at0nXM2STwsyiulh8JA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 53A86801210; Wed, 11 May 2022 07:24:49 +0000 (UTC) Received: from [10.39.208.28] (unknown [10.39.208.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 753A340C1244; Wed, 11 May 2022 07:24:48 +0000 (UTC) Message-ID: <08744dec-71c7-306f-c9c1-7a227af07a7e@redhat.com> Date: Wed, 11 May 2022 09:24:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 0/5] vhost: introduce per-virtqueue stats API To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com, i.maximets@ovn.org References: <20220510201720.1262368-1-maxime.coquelin@redhat.com> From: Maxime Coquelin In-Reply-To: <20220510201720.1262368-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5/10/22 22:17, Maxime Coquelin wrote: > This series introduces a new Vhost API that provides > per-virtqueue statistics to the application. It will be > generally useful, but initial motivation for this series > was to be able to get to get virtqueues stats when Virtio > RSS feature will be supported in Vhost library. > > First patch introduces the new API and generic statistics. > Patch 2 makes use of this API in Vhost PMD. > The 3 last patches introduce more specific counters > (syscalls in DP, IOTLB cache hits and misses, inflight > submitted and completed for vhost async). > > > > Changes in v3: > ============== > - Remove patch1, already applied > - Fix memory leaks in error path (Chenbo) > - Fix various typos (Chenbo) > - Removed unused IOTLB counter (Chenbo) > - Add generic packets stats in async enqueue path > - Add Vhost async specific counters > > Changes in v2: > ============= > - Rebased on top of v22.03 > - Add documentation > > Maxime Coquelin (5): > vhost: add per-virtqueue statistics support > net/vhost: move to Vhost library stats API > vhost: add statistics for guest notifications > vhost: add statistics for IOTLB > vhost: add statistics for in-flight packets > > doc/guides/prog_guide/vhost_lib.rst | 24 ++ > drivers/net/vhost/rte_eth_vhost.c | 348 ++++++++++------------------ > lib/vhost/rte_vhost.h | 99 ++++++++ > lib/vhost/socket.c | 4 +- > lib/vhost/version.map | 4 +- > lib/vhost/vhost.c | 125 +++++++++- > lib/vhost/vhost.h | 27 ++- > lib/vhost/virtio_net.c | 61 +++++ > 8 files changed, 460 insertions(+), 232 deletions(-) > Sorry, I missed to set the subject prefix to v3.