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 94CD0A057B; Thu, 2 Apr 2020 13:26:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 048D52C15; Thu, 2 Apr 2020 13:26:48 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id BAA38FFA for ; Thu, 2 Apr 2020 13:26:46 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from matan@mellanox.com) with ESMTPS (AES256-SHA encrypted); 2 Apr 2020 14:26:41 +0300 Received: from pegasus07.mtr.labs.mlnx (pegasus07.mtr.labs.mlnx [10.210.16.112]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 032BQf1F026689; Thu, 2 Apr 2020 14:26:41 +0300 From: Matan Azrad To: dev@dpdk.org Cc: Viacheslav Ovsiienko , Shahaf Shuler , Maxime Coquelin Date: Thu, 2 Apr 2020 11:26:29 +0000 Message-Id: <1585826793-28709-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH 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 patch introduce a new API to get traffic statistics per virtio queue. The statistics are taken directly from the vDPA driver managing the HW device. See RFC https://patchwork.dpdk.org/patch/66716/ Added also support for it in vdpa/mlx5 driver and in vdpa example application. 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_05.rst | 4 ++ 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 | 43 ++++++++++++++ drivers/common/mlx5/mlx5_prm.h | 26 ++++++++- drivers/common/mlx5/rte_common_mlx5_version.map | 7 +++ drivers/vdpa/mlx5/mlx5_vdpa.c | 28 +++++++++ drivers/vdpa/mlx5/mlx5_vdpa.h | 16 +++++ drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 43 ++++++++++++++ examples/vdpa/main.c | 78 +++++++++++++++++++++++++ lib/librte_vhost/rte_vdpa.h | 45 +++++++++++++- lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/vdpa.c | 14 +++++ 16 files changed, 383 insertions(+), 3 deletions(-) -- 1.8.3.1