net/mlx5: support power monitoring
authorAlexander Kozyrev <akozyrev@nvidia.com>
Thu, 29 Apr 2021 14:55:18 +0000 (17:55 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 3 May 2021 10:12:42 +0000 (12:12 +0200)
commita8f0df6bf98d295668b429f65884af887c2c5b77
treee96eb005dd6caa2738ccd0ffd81b3a06fec8f90b
parentcd414f81d1afdabf5cf13a1d9e859877af176ab9
net/mlx5: support power monitoring

Support the PMD power management API in MLX5 driver.
The monitor policy of this API puts a CPU core to sleep until
a data in some monitored memory address is changed by the NIC.
Implement the get_monitor_addr function to return an address
of a CQE owner bit to monitor the arrival of a new packet.

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
doc/guides/rel_notes/release_21_05.rst
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_rx.c
drivers/net/mlx5/mlx5_rx.h