Thread (36 messages) 36 messages, 4 authors, 2025-03-26

Re: [PATCH net-next v6 06/12] net: pse-pd: Add support for budget evaluation strategies

flat view

From: Kory Maincent <kory.maincent@bootlin.com>
Date: 2025-03-07 09:10:41
Also in: linux-devicetree, linux-doc, lkml

On Thu, 6 Mar 2025 17:46:19 -0800
Jakub Kicinski [off-list ref] wrote:
On Tue, 04 Mar 2025 11:18:55 +0100 Kory Maincent wrote:
quoted
+/**
+ * enum ethtool_pse_budget_eval_strategies - PSE budget evaluation
strategies.
+ * @ETHTOOL_PSE_BUDGET_EVAL_STRAT_DISABLED: Budget evaluation strategy
disabled.
+ * @ETHTOOL_PSE_BUDGET_EVAL_STRAT_STATIC: PSE static budget evaluation
strategy.
+ *	Budget evaluation strategy based on the power requested during PD
+ *	classification. This strategy is managed by the PSE core.
+ * @ETHTOOL_PSE_BUDGET_EVAL_STRAT_DYNAMIC: PSE dynamic budget evaluation
+ *	strategy. Budget evaluation strategy based on the current
consumption
+ *	per ports compared to the total	power budget. This mode
is managed by
+ *	the PSE controller.
+ */
+
+enum ethtool_pse_budget_eval_strategies {
+	ETHTOOL_PSE_BUDGET_EVAL_STRAT_DISABLED	= 1 << 0,
+	ETHTOOL_PSE_BUDGET_EVAL_STRAT_STATIC	= 1 << 1,
+	ETHTOOL_PSE_BUDGET_EVAL_STRAT_DYNAMIC	= 1 << 2,
 };  
Leftover?
We still need these to know the PSE method but they shall not be in the uAPI
for now. I will move it out of it.

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help