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 228E3A04A6; Thu, 27 Jan 2022 15:57:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93201427C9; Thu, 27 Jan 2022 15:57:43 +0100 (CET) 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 355954067C for ; Thu, 27 Jan 2022 15:57:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643295461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GFFFOVamvXb6Z5WLiApiN1LYKVMstunK1eWfC1G/m0U=; b=Ee3ILHEVFT+U49NiCftlCirjtmk7412ArOxFm+0IXtZFt2djzcutajKg0dHOdV3Q5nUHA3 GG/2KsSBnzlfuUGwiVyOjUhwtCTESYDW1fiEJIyoqcQiOsaA5ccHTEkQ9dJrwDB5q1oXq/ ZwCftLsfTs3/q/HJ/ewQqXsUbxjoowA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-208-RJhlGTVhMAmZTgVgfoP10w-1; Thu, 27 Jan 2022 09:57:40 -0500 X-MC-Unique: RJhlGTVhMAmZTgVgfoP10w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF6C9101797F; Thu, 27 Jan 2022 14:57:32 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B8E1798CF; Thu, 27 Jan 2022 14:57:01 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com Cc: Maxime Coquelin Subject: [PATCH 0/5] vhost: introduce per-virtqueue stats API Date: Thu, 27 Jan 2022 15:56:50 +0100 Message-Id: <20220127145655.558029-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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 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 is a fix that should be considered even if the series does not make it in v22.03. Second patch introduces the new API and generic statistics. Patch 3 makes use of this API in Vhost PMD. The two last patches introduce more specific counters (syscalls in DP, IOTLB cache hits and misses). I understand we are late in the v22.03 release cycle, and so the series may be postponned to next release even though it does not introduces much risks of regressions. At least patch 1 has to be considered for this release. Maxime Coquelin (5): vhost: fix missing virtqueue lock protection 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 drivers/net/vhost/rte_eth_vhost.c | 348 +++++++++++------------------- lib/vhost/rte_vhost.h | 89 ++++++++ lib/vhost/socket.c | 4 +- lib/vhost/version.map | 5 + lib/vhost/vhost.c | 124 ++++++++++- lib/vhost/vhost.h | 26 ++- lib/vhost/virtio_net.c | 53 +++++ 7 files changed, 416 insertions(+), 233 deletions(-) -- 2.34.1