DPDK 22.11.5
rte_power_pmd_mgmt.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
3 */
4
5#ifndef _RTE_POWER_PMD_MGMT_H
6#define _RTE_POWER_PMD_MGMT_H
7
13#include <stdint.h>
14
15#include <rte_compat.h>
16#include <rte_log.h>
17#include <rte_power.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
33};
34
58__rte_experimental
59int
61 uint16_t port_id, uint16_t queue_id,
62 enum rte_power_pmd_mgmt_type mode);
63
85__rte_experimental
86int
88 uint16_t port_id, uint16_t queue_id);
89
100__rte_experimental
101void
103
113__rte_experimental
114unsigned int
116
131__rte_experimental
132int
134
144__rte_experimental
145unsigned int
147
164__rte_experimental
165int
166rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min);
167
185__rte_experimental
186int
187rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max);
188
205__rte_experimental
206int
208
225__rte_experimental
226int
228
229#ifdef __cplusplus
230}
231#endif
232
233#endif
__rte_experimental unsigned int rte_power_pmd_mgmt_get_pause_duration(void)
__rte_experimental void rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max)
__rte_experimental int rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max)
rte_power_pmd_mgmt_type
@ RTE_POWER_MGMT_TYPE_MONITOR
@ RTE_POWER_MGMT_TYPE_PAUSE
@ RTE_POWER_MGMT_TYPE_SCALE
__rte_experimental int rte_power_pmd_mgmt_set_pause_duration(unsigned int duration)
__rte_experimental int rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore)
__rte_experimental int rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min)
__rte_experimental int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
__rte_experimental int rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore)
__rte_experimental unsigned int rte_power_pmd_mgmt_get_emptypoll_max(void)
__rte_experimental int rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id, enum rte_power_pmd_mgmt_type mode)