DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
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
12
13
#include <stdint.h>
14
15
#include <
rte_log.h
>
16
#include <
rte_power_cpufreq.h
>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
25
enum
rte_power_pmd_mgmt_type
{
27
RTE_POWER_MGMT_TYPE_MONITOR
= 1,
29
RTE_POWER_MGMT_TYPE_PAUSE
,
31
RTE_POWER_MGMT_TYPE_SCALE
,
32
};
33
54
int
55
rte_power_ethdev_pmgmt_queue_enable
(
unsigned
int
lcore_id,
56
uint16_t port_id, uint16_t queue_id,
57
enum
rte_power_pmd_mgmt_type
mode);
58
77
int
78
rte_power_ethdev_pmgmt_queue_disable
(
unsigned
int
lcore_id,
79
uint16_t port_id, uint16_t queue_id);
80
88
void
89
rte_power_pmd_mgmt_set_emptypoll_max
(
unsigned
int
max);
90
97
unsigned
int
98
rte_power_pmd_mgmt_get_emptypoll_max
(
void
);
99
111
int
112
rte_power_pmd_mgmt_set_pause_duration
(
unsigned
int
duration);
113
120
unsigned
int
121
rte_power_pmd_mgmt_get_pause_duration
(
void
);
122
136
int
137
rte_power_pmd_mgmt_set_scaling_freq_min
(
unsigned
int
lcore,
unsigned
int
min);
138
153
int
154
rte_power_pmd_mgmt_set_scaling_freq_max
(
unsigned
int
lcore,
unsigned
int
max);
155
169
int
170
rte_power_pmd_mgmt_get_scaling_freq_min
(
unsigned
int
lcore);
171
185
int
186
rte_power_pmd_mgmt_get_scaling_freq_max
(
unsigned
int
lcore);
187
188
#ifdef __cplusplus
189
}
190
#endif
191
192
#endif
rte_log.h
rte_power_cpufreq.h
rte_power_pmd_mgmt_set_pause_duration
int rte_power_pmd_mgmt_set_pause_duration(unsigned int duration)
rte_power_ethdev_pmgmt_queue_enable
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_pmd_mgmt_type
Definition
rte_power_pmd_mgmt.h:25
RTE_POWER_MGMT_TYPE_MONITOR
@ RTE_POWER_MGMT_TYPE_MONITOR
Definition
rte_power_pmd_mgmt.h:27
RTE_POWER_MGMT_TYPE_PAUSE
@ RTE_POWER_MGMT_TYPE_PAUSE
Definition
rte_power_pmd_mgmt.h:29
RTE_POWER_MGMT_TYPE_SCALE
@ RTE_POWER_MGMT_TYPE_SCALE
Definition
rte_power_pmd_mgmt.h:31
rte_power_pmd_mgmt_set_scaling_freq_max
int rte_power_pmd_mgmt_set_scaling_freq_max(unsigned int lcore, unsigned int max)
rte_power_pmd_mgmt_set_emptypoll_max
void rte_power_pmd_mgmt_set_emptypoll_max(unsigned int max)
rte_power_pmd_mgmt_get_emptypoll_max
unsigned int rte_power_pmd_mgmt_get_emptypoll_max(void)
rte_power_pmd_mgmt_get_scaling_freq_min
int rte_power_pmd_mgmt_get_scaling_freq_min(unsigned int lcore)
rte_power_pmd_mgmt_get_pause_duration
unsigned int rte_power_pmd_mgmt_get_pause_duration(void)
rte_power_pmd_mgmt_get_scaling_freq_max
int rte_power_pmd_mgmt_get_scaling_freq_max(unsigned int lcore)
rte_power_pmd_mgmt_set_scaling_freq_min
int rte_power_pmd_mgmt_set_scaling_freq_min(unsigned int lcore, unsigned int min)
rte_power_ethdev_pmgmt_queue_disable
int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
lib
power
rte_power_pmd_mgmt.h
Generated by
1.17.0