table of contents
rte_power_pmd_mgmt.h(3) | DPDK | rte_power_pmd_mgmt.h(3) |
NAME¶
rte_power_pmd_mgmt.h
SYNOPSIS¶
#include <stdint.h>
#include <rte_log.h>
#include <rte_power.h>
Enumerations¶
enum rte_power_pmd_mgmt_type {
RTE_POWER_MGMT_TYPE_MONITOR = 1, RTE_POWER_MGMT_TYPE_PAUSE,
RTE_POWER_MGMT_TYPE_SCALE }
Functions¶
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)
int rte_power_ethdev_pmgmt_queue_disable (unsigned int lcore_id,
uint16_t port_id, uint16_t queue_id)
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_set_pause_duration (unsigned int duration)
unsigned int rte_power_pmd_mgmt_get_pause_duration (void)
int rte_power_pmd_mgmt_set_scaling_freq_min (unsigned int lcore,
unsigned int min)
int rte_power_pmd_mgmt_set_scaling_freq_max (unsigned int lcore,
unsigned int max)
int rte_power_pmd_mgmt_get_scaling_freq_min (unsigned int lcore)
int rte_power_pmd_mgmt_get_scaling_freq_max (unsigned int lcore)
Detailed Description¶
RTE PMD Power Management
Definition in file rte_power_pmd_mgmt.h.
Enumeration Type Documentation¶
enum rte_power_pmd_mgmt_type¶
PMD Power Management Type
Enumerator
- RTE_POWER_MGMT_TYPE_MONITOR
- Use power-optimized monitoring to wait for incoming traffic
- RTE_POWER_MGMT_TYPE_PAUSE
- Use power-optimized sleep to avoid busy polling
- RTE_POWER_MGMT_TYPE_SCALE
- Use frequency scaling when traffic is low
Definition at line 25 of file rte_power_pmd_mgmt.h.
Function Documentation¶
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)¶
Enable power management on a specified Ethernet device Rx queue and lcore.
Note
Warning
Parameters
port_id The port identifier of the Ethernet device.
queue_id The queue identifier of the Ethernet device.
mode The power management scheme to use for specified Rx queue.
Returns
int rte_power_ethdev_pmgmt_queue_disable (unsigned int lcore_id, uint16_t port_id, uint16_t queue_id)¶
Disable power management on a specified Ethernet device Rx queue and lcore.
Note
Warning
Parameters
port_id The port identifier of the Ethernet device.
queue_id The queue identifier of the Ethernet device.
Returns
void rte_power_pmd_mgmt_set_emptypoll_max (unsigned int max)¶
Set a emptypoll_max to specified value. Used to specify the number of empty polls to wait before entering sleep state.
Parameters
unsigned int rte_power_pmd_mgmt_get_emptypoll_max (void)¶
Get the current value of emptypoll_max.
Returns
int rte_power_pmd_mgmt_set_pause_duration (unsigned int duration)¶
Set the pause_duration. Used to adjust the pause mode callback duration.
Note
Parameters
Returns
unsigned int rte_power_pmd_mgmt_get_pause_duration (void)¶
Get the current value of pause_duration.
Returns
int rte_power_pmd_mgmt_set_scaling_freq_min (unsigned int lcore, unsigned int min)¶
Set the min frequency to be used for frequency scaling or zero to use defaults.
Note
Parameters
min The value, in KiloHertz, to set the minimum frequency to.
Returns
int rte_power_pmd_mgmt_set_scaling_freq_max (unsigned int lcore, unsigned int max)¶
Set the max frequency to be used for frequency scaling or zero to use defaults.
Note
Parameters
max The value, in KiloHertz, to set the maximum frequency to. If 'max' is 0, it is considered 'not set'.
Returns
int rte_power_pmd_mgmt_get_scaling_freq_min (unsigned int lcore)¶
Get the current configured min frequency used for frequency scaling.
Note
Parameters
Returns
int rte_power_pmd_mgmt_get_scaling_freq_max (unsigned int lcore)¶
Get the current configured max frequency used for frequency scaling.
Note
Parameters
Returns
Author¶
Generated automatically by Doxygen for DPDK from the source code.
Fri Dec 15 2023 | Version 23.11.0 |