From patchwork Fri Sep 24 10:23:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Miao" X-Patchwork-Id: 99508 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A9ACA0C43; Fri, 24 Sep 2021 04:21:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4381240687; Fri, 24 Sep 2021 04:21:02 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id AE18040142 for ; Fri, 24 Sep 2021 04:21:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="220785030" X-IronPort-AV: E=Sophos;i="5.85,318,1624345200"; d="scan'208";a="220785030" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 19:20:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,318,1624345200"; d="scan'208";a="558789778" Received: from limiao-icelake.sh.intel.com ([10.67.115.199]) by fmsmga002.fm.intel.com with ESMTP; 23 Sep 2021 19:20:58 -0700 From: Miao Li To: dev@dpdk.org Cc: chenbo.xia@intel.com, maxime.coquelin@redhat.com, miao.li@intel.com Date: Fri, 24 Sep 2021 10:23:04 +0000 Message-Id: <20210924102309.231304-1-miao.li@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210918132206.166694-1-miao.li@intel.com> References: <20210918132206.166694-1-miao.li@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v3 0/5] Implement rte_power_monitor API in virtio/vhost PMD 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 Sender: "dev" This patchset implements rte_power_monitor API in virtio and vhost PMD to reduce power consumption when no packet come in. This API can be called and tested in l3fwd-power after adding vhost and virtio support in l3fwd-power and ignoring the rx queue information check in queue_stopped(). v3: -fix some code format issues -fix spelling mistake v2: -remove flag and add match and size in rte_vhost_power_monitor_cond -modify power callback function -add dev and queue id check and remove unnecessary check -fix the assignment of pmc->size -update port configuration according to the device information and remove adding command line arguments -modify some titles Miao Li (5): net/virtio: implement rte_power_monitor API vhost: implement rte_power_monitor API net/vhost: implement rte_power_monitor API power: modify return of queue_stopped examples/l3fwd-power: support virtio/vhost drivers/net/vhost/rte_eth_vhost.c | 40 +++++++++++++++++++++ drivers/net/virtio/virtio_ethdev.c | 56 ++++++++++++++++++++++++++++++ examples/l3fwd-power/main.c | 5 +++ lib/power/rte_power_pmd_mgmt.c | 9 +++-- lib/vhost/rte_vhost.h | 41 ++++++++++++++++++++++ lib/vhost/version.map | 3 ++ lib/vhost/vhost.c | 38 ++++++++++++++++++++ 7 files changed, 190 insertions(+), 2 deletions(-)