[dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-02 Thread Liang Ma
Add a simple on/off switch that will enable saving power when no packets are arriving. It is based on counting the number of empty polls and, when the number reaches a certain threshold, entering an architecture-defined optimized power state that will either wait until a TSC timestamp expires, or w

Re: [dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-09 Thread Ananyev, Konstantin
> Add a simple on/off switch that will enable saving power when no > packets are arriving. It is based on counting the number of empty > polls and, when the number reaches a certain threshold, entering an > architecture-defined optimized power state that will either wait > until a TSC timestamp exp

Re: [dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-09 Thread Burakov, Anatoly
On 09-Oct-20 5:38 PM, Ananyev, Konstantin wrote: Add a simple on/off switch that will enable saving power when no packets are arriving. It is based on counting the number of empty polls and, when the number reaches a certain threshold, entering an architecture-defined optimized power state that w

Re: [dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-09 Thread Ananyev, Konstantin
> On 09-Oct-20 5:38 PM, Ananyev, Konstantin wrote: > >> Add a simple on/off switch that will enable saving power when no > >> packets are arriving. It is based on counting the number of empty > >> polls and, when the number reaches a certain threshold, entering an > >> architecture-defined optimize

Re: [dpdk-dev] [PATCH v4 04/10] power: add simple power management API and callback

2020-10-09 Thread Burakov, Anatoly
On 09-Oct-20 5:51 PM, Ananyev, Konstantin wrote: +case RTE_POWER_MGMT_TYPE_PAUSE: +rte_eth_remove_rx_callback(port_id, queue_id, + queue_cfg->cur_cb); +break; +case RTE_POWER_MGMT_TYPE_SCALE: +rte_power_freq_max(lcore_id); +rte_eth_remove_rx_callback(port_id, queue_id, + queue_cfg->cur_cb)