From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5A2CA0514; Tue, 2 Jun 2020 17:48:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1CCF21BF5F; Tue, 2 Jun 2020 17:48:03 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 7B0C81BF59 for ; Tue, 2 Jun 2020 17:48:02 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from matan@mellanox.com) with ESMTPS (AES256-SHA encrypted); 2 Jun 2020 18:48:01 +0300 Received: from pegasus25.mtr.labs.mlnx. (pegasus25.mtr.labs.mlnx [10.210.16.10]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 052Fm1YF012921; Tue, 2 Jun 2020 18:48:01 +0300 From: Matan Azrad To: Viacheslav Ovsiienko , Maxime Coquelin Cc: dev@dpdk.org, Shahaf Shuler Date: Tue, 2 Jun 2020 15:47:45 +0000 Message-Id: <1591112869-78828-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1588694084-381748-1-git-send-email-matan@mellanox.com> References: <1588694084-381748-1-git-send-email-matan@mellanox.com> Subject: [dpdk-dev] [PATCH v3 0/4] vhost: support vDPA virtio queue statistics X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The vDPA device offloads all the datapath of the vhost device to the HW device. In order to expose to the user traffic information this series introduces new APIs to get traffic statistics and to reset them per virtio queue. Since there is no any formal statistics suggested by the virtio specs, this API doesn't define them and let the drivers to decide what are the good statistics to report. The statistics are taken directly from the vDPA driver managing the HW device. Added also support for it in vdpa/mlx5 driver and in vdpa example application. V2: Move to per driver statistics according to the discussion between me, Maxime and Shahaf on V1. v3: Send again for release 20.08. Matan Azrad (4): vhost: inroduce operation to get vDPA queue stats common/mlx5: support DevX virtq stats operations vdpa/mlx5: support virtio queue statistics get examples/vdpa: add statistics show command doc/guides/rel_notes/release_20_08.rst | 13 +++ doc/guides/sample_app_ug/vdpa.rst | 3 +- doc/guides/vdpadevs/features/default.ini | 1 + doc/guides/vdpadevs/features/mlx5.ini | 1 + doc/guides/vdpadevs/features_overview.rst | 3 + drivers/common/mlx5/mlx5_devx_cmds.c | 73 +++++++++++++++ drivers/common/mlx5/mlx5_devx_cmds.h | 38 ++++++++ drivers/common/mlx5/mlx5_prm.h | 26 +++++- drivers/common/mlx5/rte_common_mlx5_version.map | 2 + drivers/vdpa/mlx5/mlx5_vdpa.c | 85 +++++++++++++++++ drivers/vdpa/mlx5/mlx5_vdpa.h | 45 +++++++++ drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 90 ++++++++++++++++++ examples/vdpa/main.c | 119 ++++++++++++++++++++++++ lib/librte_vhost/rte_vdpa.h | 115 ++++++++++++++++++++++- lib/librte_vhost/rte_vhost_version.map | 3 + lib/librte_vhost/vdpa.c | 47 ++++++++++ 16 files changed, 661 insertions(+), 3 deletions(-) -- 1.8.3.1