doc: announce power API change
authorMarcin Hajkowski <marcinx.hajkowski@intel.com>
Mon, 13 May 2019 13:52:10 +0000 (15:52 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 13 May 2019 21:38:21 +0000 (23:38 +0200)
Function rte_power_set_env will no longer return
success on attempt to set env in initialized state.

Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
Acked-by: David Hunt <david.hunt@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
doc/guides/rel_notes/deprecation.rst

index ed8284c..098d243 100644 (file)
@@ -107,3 +107,8 @@ Deprecation Notices
 
 * metrics: The function ``rte_metrics_init`` will have a non-void return
   in order to notify errors instead of calling ``rte_exit``.
+
+* power: ``rte_power_set_env`` function will no longer return 0 on attempt
+  to set new power environment if power environment was already initialized.
+  In this case the function will return -1 unless the environment is unset first
+  (using ``rte_power_unset_env``). Other function usage scenarios will not change.