DPDK
21.02.0
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
lib
librte_power
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
#include <stdbool.h>
15
16
#include <
rte_common.h
>
17
#include <
rte_byteorder.h
>
18
#include <
rte_log.h
>
19
#include <
rte_power.h
>
20
#include <
rte_atomic.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
29
enum
rte_power_pmd_mgmt_type
{
31
RTE_POWER_MGMT_TYPE_MONITOR
= 1,
33
RTE_POWER_MGMT_TYPE_PAUSE
,
35
RTE_POWER_MGMT_TYPE_SCALE
,
36
};
37
58
__rte_experimental
59
int
60
rte_power_ethdev_pmgmt_queue_enable
(
unsigned
int
lcore_id,
61
uint16_t port_id, uint16_t queue_id,
62
enum
rte_power_pmd_mgmt_type
mode);
63
82
__rte_experimental
83
int
84
rte_power_ethdev_pmgmt_queue_disable
(
unsigned
int
lcore_id,
85
uint16_t port_id, uint16_t queue_id);
86
87
#ifdef __cplusplus
88
}
89
#endif
90
91
#endif
rte_power_ethdev_pmgmt_queue_enable
__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)
rte_byteorder.h
RTE_POWER_MGMT_TYPE_PAUSE
Definition:
rte_power_pmd_mgmt.h:33
rte_atomic.h
rte_power_ethdev_pmgmt_queue_disable
__rte_experimental int rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
RTE_POWER_MGMT_TYPE_MONITOR
Definition:
rte_power_pmd_mgmt.h:31
rte_power.h
rte_common.h
rte_power_pmd_mgmt_type
rte_power_pmd_mgmt_type
Definition:
rte_power_pmd_mgmt.h:29
rte_log.h
RTE_POWER_MGMT_TYPE_SCALE
Definition:
rte_power_pmd_mgmt.h:35
Generated by
1.8.9.1