]> git.droids-corp.org - dpdk.git/commit
net/vhost: support power monitor
authorMiao Li <miao.li@intel.com>
Mon, 25 Oct 2021 14:47:23 +0000 (14:47 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:29 +0000 (12:32 +0200)
commit327fcd2d3842eb8c86c18a815e1865e280356dbb
treea1d42789cb03009f9e5dbe460a1e3d2b0cb49ba7
parent34fd4373ce76efd0236e59397c495762c2ec9e64
net/vhost: support power monitor

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_monitor_addr
to provide address to monitor. When no packet come in, the value of
address will not be changed and the running core will sleep. Once
packets arrive, the value of address will be changed and the running
core will wakeup.

Signed-off-by: Miao Li <miao.li@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
doc/guides/rel_notes/release_21_11.rst
drivers/net/vhost/rte_eth_vhost.c