DPDK 25.03.0-rc0
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_log.h>
16#include <rte_power_cpufreq.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
32};
33
54int
56 uint16_t port_id, uint16_t queue_id,
57 enum rte_power_pmd_mgmt_type mode);
58
77int
79 uint16_t port_id, uint16_t queue_id);
80
88void
90
97unsigned int
99
111int
113
120unsigned int
122
136int
137rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min);
138
153int
154rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max);
155
169int
171
185int
187
188#ifdef __cplusplus
189}
190#endif
191
192#endif
int rte_power_pmd_mgmt_set_pause_duration(unsigned int duration)
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)
rte_power_pmd_mgmt_type
@ RTE_POWER_MGMT_TYPE_MONITOR
@ RTE_POWER_MGMT_TYPE_PAUSE
@ RTE_POWER_MGMT_TYPE_SCALE
int rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max)
void rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max)
unsigned int rte_power_pmd_mgmt_get_emptypoll_max(void)
int rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore)
unsigned int rte_power_pmd_mgmt_get_pause_duration(void)
int rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore)
int rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min)
int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)