5 #ifndef _RTE_EMPTY_POLL_H 6 #define _RTE_EMPTY_POLL_H 26 #define NUM_FREQS RTE_MAX_LCORE_FREQS 30 #define DROP (NUM_DIRECTIONS * NUM_DEVICES) 32 #define NUM_PRIORITIES 2 54 struct freq_threshold {
58 uint32_t threshold_percent;
59 uint32_t cur_train_iter;
63 struct priority_worker {
68 uint64_t empty_dequeues;
69 uint64_t num_dequeue_pkts;
71 enum queue_state queue_state;
73 uint64_t empty_dequeues_prev;
76 struct freq_threshold thresh[NUM_FREQ];
77 enum freq_val cur_freq;
81 uint64_t edpi_av[BINS_AV];
86 uint32_t iter_counter;
87 uint32_t threshold_ctr;
96 struct priority_worker wrk_stats[NUM_NODES];
107 uint64_t interval_ticks;
108 uint32_t max_train_iter;
111 struct stats_data wrk_data;
118 uint64_t med_base_edpi;
119 uint64_t hgh_base_edpi;
121 enum queue_state state;
143 struct ep_policy *policy);
__rte_experimental uint64_t rte_power_poll_stat_fetch(unsigned int lcore_id)
__rte_experimental int rte_power_poll_stat_update(unsigned int lcore_id, uint8_t nb_pkt)
__rte_experimental void rte_power_empty_poll_stat_free(void)
__rte_experimental void rte_empty_poll_detection(struct rte_timer *tim, void *arg)
__rte_experimental int rte_power_empty_poll_stat_update(unsigned int lcore_id)
#define __rte_cache_aligned
__rte_experimental uint64_t rte_power_empty_poll_stat_fetch(unsigned int lcore_id)
__rte_experimental int rte_power_empty_poll_stat_init(struct ep_params **eptr, uint8_t *freq_tlb, struct ep_policy *policy)