Re: [dpdk-dev] [PATCH v7 3/5] net/vhost: implement rte_power_monitor API

2021-10-22 Thread David Hunt
On 19/10/2021 5:39 AM, Xia, Chenbo wrote: -Original Message- From: Li, Miao Sent: Monday, October 18, 2021 10:17 PM To: dev@dpdk.org Cc: Xia, Chenbo ; maxime.coque...@redhat.com; Li, Miao Subject: [PATCH v7 3/5] net/vhost: implement rte_power_monitor API This patch implements rte_pow

Re: [dpdk-dev] [PATCH v7 3/5] net/vhost: implement rte_power_monitor API

2021-10-18 Thread Xia, Chenbo
> -Original Message- > From: Li, Miao > Sent: Monday, October 18, 2021 10:17 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coque...@redhat.com; Li, Miao > > Subject: [PATCH v7 3/5] net/vhost: implement rte_power_monitor API > > This patch implements rte_power_monitor API in vhost PMD

[dpdk-dev] [PATCH v7 3/5] net/vhost: implement rte_power_monitor API

2021-10-17 Thread Miao Li
This patch implements rte_power_monitor API in vhost PMD to reduce power consumption when no packet come in. According to current semantics of power monitor, this commit adds a callback function to decide whether aborts the sleep by checking current value against the expected value and vhost_get_mo