Re: [dpdk-dev] [PATCH v3 1/5] net/virtio: implement rte_power_monitor API

2021-09-28 Thread Xia, Chenbo
> -Original Message- > From: Li, Miao > Sent: Friday, September 24, 2021 6:23 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coque...@redhat.com; Li, Miao > > Subject: [PATCH v3 1/5] net/virtio: implement rte_power_monitor API > > This patch implements rte_power_monitor API in virtio P

[dpdk-dev] [PATCH v3 1/5] net/virtio: implement rte_power_monitor API

2021-09-23 Thread Miao Li
This patch implements rte_power_monitor API in virtio 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 virtio_get_