]> git.droids-corp.org - dpdk.git/commit
net/virtio: support power monitor
authorMiao Li <miao.li@intel.com>
Mon, 25 Oct 2021 14:47:21 +0000 (14:47 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:29 +0000 (12:32 +0200)
commit64ac7e08f636d05ba29231bfe48b363862ff59aa
treeddbaa15254f689bc13c35fe0c8654b6193f95738
parent5fd6e93b7e76e483701453bdd70d455698ed67ce
net/virtio: 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 virtio_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/virtio/virtio_ethdev.c