6afc4baf4f
Previously, the semantics of power monitor were such that we were checking current value against the expected value, and if they matched, then the sleep was aborted. This is somewhat inflexible, because it only allowed us to check for a specific value in a specific way. This commit replaces the comparison with a user callback mechanism, so that any PMD (or other code) using `rte_power_monitor()` can define their own comparison semantics and decision making on how to detect the need to abort the entering of power optimized state. Existing implementations are adjusted to follow the new semantics. Suggested-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Tested-by: David Hunt <david.hunt@intel.com> Acked-by: Timothy McDaniel <timothy.mcdaniel@intel.com> |
||
---|---|---|
.. | ||
iavf_ethdev.c | ||
iavf_fdir.c | ||
iavf_generic_flow.c | ||
iavf_generic_flow.h | ||
iavf_hash.c | ||
iavf_log.h | ||
iavf_rxtx_vec_avx2.c | ||
iavf_rxtx_vec_avx512.c | ||
iavf_rxtx_vec_common.h | ||
iavf_rxtx_vec_sse.c | ||
iavf_rxtx.c | ||
iavf_rxtx.h | ||
iavf_tm.c | ||
iavf_vchnl.c | ||
iavf.h | ||
meson.build | ||
rte_pmd_iavf.h | ||
version.map |