DPDK 21.11.9
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
23extern "C" {
24#endif
25
36};
37
61__rte_experimental
62int
64 uint16_t port_id, uint16_t queue_id,
65 enum rte_power_pmd_mgmt_type mode);
66
88__rte_experimental
89int
91 uint16_t port_id, uint16_t queue_id);
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
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_ethdev_pmgmt_queue_disable(unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)
__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)