net/iavf: implement power management
authorDavid Hunt <david.hunt@intel.com>
Thu, 11 Mar 2021 11:55:10 +0000 (11:55 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 29 Mar 2021 23:17:15 +0000 (01:17 +0200)
commitb0c46698994719724877963848ac4af4ad4d3ce9
tree12963c6ed2586f655ab2def5647fa67adca7706e
parent31d7c6f7d424c533b0a4dd9b4408b814ac7852f1
net/iavf: implement power management

Implement support for the power management API by implementing a
`get_monitor_addr` function that will return an address of an RX ring's
status bit.

This patch is basically a cut-and-paste of the changes already
committed in ixgbe, i40e and ice drivers in 21.02. This extends
the availability of the power-saving mechanism to the iavf driver,
which is needed for those use-cases using virtual functions.

Patchset where PMD Power Management added in 21.02:
http://patchwork.dpdk.org/project/dpdk/list/?series=14756

Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_rxtx.c
drivers/net/iavf/iavf_rxtx.h