Message ID | 20211015170911.478394-1-miao.li@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 38D56A0C4B; Fri, 15 Oct 2021 11:07:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA4F440692; Fri, 15 Oct 2021 11:07:33 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id F171940041 for <dev@dpdk.org>; Fri, 15 Oct 2021 11:07:32 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10137"; a="291363668" X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="291363668" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 02:07:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="660460357" Received: from limiao-icelake.sh.intel.com ([10.67.115.199]) by orsmga005.jf.intel.com with ESMTP; 15 Oct 2021 02:07:30 -0700 From: Miao Li <miao.li@intel.com> To: dev@dpdk.org Cc: chenbo.xia@intel.com, maxime.coquelin@redhat.com, miao.li@intel.com Date: Fri, 15 Oct 2021 17:09:06 +0000 Message-Id: <20211015170911.478394-1-miao.li@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211015151223.425847-1-miao.li@intel.com> References: <20211015151223.425847-1-miao.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Implement rte_power_monitor API in virtio/vhost PMD
|
|
Message
Li, Miao
Oct. 15, 2021, 5:09 p.m. UTC
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(). v6: -modify comment -remove extra space -fix IPv4 CKSUM check v5: -Rebase on lastest repo v4: -modify comment -update the release note -add IPv4 CKSUM check 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 doc/guides/rel_notes/release_21_11.rst | 12 ++++++ drivers/net/vhost/rte_eth_vhost.c | 40 ++++++++++++++++++ drivers/net/virtio/virtio_ethdev.c | 56 ++++++++++++++++++++++++++ examples/l3fwd-power/main.c | 15 ++++++- lib/power/rte_power_pmd_mgmt.c | 9 ++++- lib/vhost/rte_vhost.h | 42 +++++++++++++++++++ lib/vhost/version.map | 3 ++ lib/vhost/vhost.c | 38 +++++++++++++++++ 8 files changed, 212 insertions(+), 3 deletions(-)
Comments
Hi, On 10/15/21 19:09, Miao Li wrote: > 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(). > > v6: > -modify comment > -remove extra space > -fix IPv4 CKSUM check > > v5: > -Rebase on lastest repo > > v4: > -modify comment > -update the release note > -add IPv4 CKSUM check > > 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 > > doc/guides/rel_notes/release_21_11.rst | 12 ++++++ > drivers/net/vhost/rte_eth_vhost.c | 40 ++++++++++++++++++ > drivers/net/virtio/virtio_ethdev.c | 56 ++++++++++++++++++++++++++ > examples/l3fwd-power/main.c | 15 ++++++- > lib/power/rte_power_pmd_mgmt.c | 9 ++++- > lib/vhost/rte_vhost.h | 42 +++++++++++++++++++ > lib/vhost/version.map | 3 ++ > lib/vhost/vhost.c | 38 +++++++++++++++++ > 8 files changed, 212 insertions(+), 3 deletions(-) > Please run checkpatch and check-git-log scripts, there are some issues. Thanks, Maxime
Hi, > -----Original Message----- > From: Maxime Coquelin <maxime.coquelin@redhat.com> > Sent: Friday, October 15, 2021 8:58 PM > To: Li, Miao <miao.li@intel.com>; dev@dpdk.org > Cc: Xia, Chenbo <chenbo.xia@intel.com> > Subject: Re: [PATCH v6 0/5] Implement rte_power_monitor API in virtio/vhost > PMD > > Hi, > > On 10/15/21 19:09, Miao Li wrote: > > 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(). > > > > v6: > > -modify comment > > -remove extra space > > -fix IPv4 CKSUM check > > > > v5: > > -Rebase on lastest repo > > > > v4: > > -modify comment > > -update the release note > > -add IPv4 CKSUM check > > > > 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 > > > > doc/guides/rel_notes/release_21_11.rst | 12 ++++++ > > drivers/net/vhost/rte_eth_vhost.c | 40 ++++++++++++++++++ > > drivers/net/virtio/virtio_ethdev.c | 56 ++++++++++++++++++++++++++ > > examples/l3fwd-power/main.c | 15 ++++++- > > lib/power/rte_power_pmd_mgmt.c | 9 ++++- > > lib/vhost/rte_vhost.h | 42 +++++++++++++++++++ > > lib/vhost/version.map | 3 ++ > > lib/vhost/vhost.c | 38 +++++++++++++++++ > > 8 files changed, 212 insertions(+), 3 deletions(-) > > > > Please run checkpatch and check-git-log scripts, there are some issues. Ok, I will fix them in the next version. Thanks, Miao > > Thanks, > Maxime