#
92e68d9c |
| 14-May-2024 |
Tyler Retzlaff <roretzla@linux.microsoft.com> |
examples: use stdatomic API
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional rte stdatomic API.
Signed-off-by: Tyler Retzlaff <roretzla@linux.micros
examples: use stdatomic API
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional rte stdatomic API.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
#
825fddf6 |
| 21-Jan-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
power: clean up includes
re-organise the including of the new public header file and remove un-needed includes
Fixes: 210c383e247b ("power: packet format for vm power management") Fixes: cd0d5547e8
power: clean up includes
re-organise the including of the new public header file and remove un-needed includes
Fixes: 210c383e247b ("power: packet format for vm power management") Fixes: cd0d5547e873 ("power: vm communication channels in guest") Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
5f443cc0 |
| 21-Jan-2021 |
Bruce Richardson <bruce.richardson@intel.com> |
power: create guest channel public header file
In preparation for making the header file public, we first rename channel_commands.h as rte_power_guest_channel.h.
Fixes: 210c383e247b ("power: packet
power: create guest channel public header file
In preparation for making the header file public, we first rename channel_commands.h as rte_power_guest_channel.h.
Fixes: 210c383e247b ("power: packet format for vm power management") Fixes: cd0d5547e873 ("power: vm communication channels in guest") Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
c2341bb6 |
| 30-Oct-2020 |
Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> |
cmdline: avoid name clash with Windows system types
cmdline_numtype member names clash with Windows system identifiers. Add RTE_ prefix to cmdline constants to avoid this and possible future conflic
cmdline: avoid name clash with Windows system types
cmdline_numtype member names clash with Windows system identifiers. Add RTE_ prefix to cmdline constants to avoid this and possible future conflicts.
Suggested-by: Ranjit Menon <ranjit.menon@intel.com> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Ranjit Menon <ranjit.menon@intel.com> Acked-by: Jie Zhou <jizh@microsoft.com> Tested-by: Jie Zhou <jizh@microsoft.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
f2fc83b4 |
| 09-Feb-2020 |
Thomas Monjalon <thomas@monjalon.net> |
replace unused attributes
There is a common macro __rte_unused, avoiding warnings, which is now used where appropriate for consistency.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
|
#
1deb502e |
| 27-Sep-2019 |
Marcin Hajkowski <marcinx.hajkowski@intel.com> |
examples/vm_power: add mechanism to disable queries
Add new command which gives possibility to enable/disable queries form VM guest.
Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com> Te
examples/vm_power: add mechanism to disable queries
Add new command which gives possibility to enable/disable queries form VM guest.
Signed-off-by: Marcin Hajkowski <marcinx.hajkowski@intel.com> Tested-by: David Hunt <david.hunt@intel.com> Acked-by: Lee Daly <lee.daly@intel.com>
show more ...
|
#
751227a0 |
| 09-Apr-2019 |
David Hunt <david.hunt@intel.com> |
power: fix buffer overruns
A previous change removed the limit of 64 cores by moving away from 64-bit masks to char arrays. However this left a buffer overrun issue, where the max channels was defin
power: fix buffer overruns
A previous change removed the limit of 64 cores by moving away from 64-bit masks to char arrays. However this left a buffer overrun issue, where the max channels was defined as 64, and max cores was defined as 256. These should all be consistently set to RTE_MAX_LCORE.
The #defines being removed are CHANNEL_CMDS_MAX_CPUS, CHANNEL_CMDS_MAX_CHANNELS, POWER_MGR_MAX_CPUS, and CHANNEL_CMDS_MAX_VM_CHANNELS, and are being replaced with RTE_MAX_LCORE for consistency and simplicity.
Coverity issue: 337672, 337673, 337678 Fixes: fd73630e95c1 ("examples/power: change 64-bit masks to arrays") Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
5776b7a3 |
| 14-Dec-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: allow VM to use lcores over 63
Extending the functionality to allow vms to power manage cores beyond 63.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burako
examples/power: allow VM to use lcores over 63
Extending the functionality to allow vms to power manage cores beyond 63.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
b6b22982 |
| 14-Dec-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: remove mask functions
Since we're moving to allowing greater than 64 cores, the mask functions that use uint64_t to perform functions on a masked set of cores are no longer needed, s
examples/power: remove mask functions
Since we're moving to allowing greater than 64 cores, the mask functions that use uint64_t to perform functions on a masked set of cores are no longer needed, so removing them.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
fd73630e |
| 14-Dec-2018 |
David Hunt <david.hunt@intel.com> |
examples/power: change 64-bit masks to arrays
vm_power_manager currently makes use of uint64_t masks to keep track of cores in use, limiting use of the app to only being able to manage the first 64
examples/power: change 64-bit masks to arrays
vm_power_manager currently makes use of uint64_t masks to keep track of cores in use, limiting use of the app to only being able to manage the first 64 cores in a multi-core system. Many modern systems have core counts greater than 64, so this limitation needs to be removed.
This patch converts the relevant 64-bit masks to character arrays.
Signed-off-by: David Hunt <david.hunt@intel.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
show more ...
|
#
3998e2a0 |
| 19-Dec-2017 |
Bruce Richardson <bruce.richardson@intel.com> |
examples: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@i
examples: use SPDX tag for Intel copyright files
Replace the BSD license header with the SPDX tag for files with only an Intel copyright on them.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
567997b9 |
| 13-Sep-2017 |
David Hunt <david.hunt@intel.com> |
examples/vm_power_manager: add per-core turbo
Add extra commands to command line to allow enable/disable of per-core turbo.
When a core has turbo enabled, calling for max frequency will allow it to
examples/vm_power_manager: add per-core turbo
Add extra commands to command line to allow enable/disable of per-core turbo.
When a core has turbo enabled, calling for max frequency will allow it to go to a turbo frequency (P0n).
When a core has turbo disabled, calling for max frequency will allow it to go to the maximum non-turbo frequency (P1), but not beyond.
Signed-off-by: David Hunt <david.hunt@intel.com>
show more ...
|
#
50810f09 |
| 08-Feb-2016 |
Thomas Monjalon <thomas.monjalon@6wind.com> |
config: remove useless explicit includes of generated header
The file rte_config.h is automatically generated and included. No need to #include it.
The example performance-thread needs a makefile f
config: remove useless explicit includes of generated header
The file rte_config.h is automatically generated and included. No need to #include it.
The example performance-thread needs a makefile fix to avoid overwriting the default cflags.
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
show more ...
|
#
b68bc0b8 |
| 17-Dec-2014 |
Olivier Matz <olivier.matz@6wind.com> |
examples/vm_power: fix initialization of cmdline token
Fix a typo: cmdline_parse_token_string_t was used in place of cmdline_parse_num_string_t.
Seen with clang-3.5.
Signed-off-by: Olivier Matz <o
examples/vm_power: fix initialization of cmdline token
Fix a typo: cmdline_parse_token_string_t was used in place of cmdline_parse_num_string_t.
Seen with clang-3.5.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
show more ...
|
#
5b628fe1 |
| 16-Dec-2014 |
Bruce Richardson <bruce.richardson@intel.com> |
examples/vm_power: fix check for null
The check for NULL is in the wrong position in the "if" error leg. The pointer should be checked for NULL before checking what the value of what the pointer poi
examples/vm_power: fix check for null
The check for NULL is in the wrong position in the "if" error leg. The pointer should be checked for NULL before checking what the value of what the pointer points to is.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
show more ...
|
#
3842bf24 |
| 25-Nov-2014 |
Alan Carew <alan.carew@intel.com> |
examples/vm_power: cli in host
The CLI is used for administrating the channel monitor and manager and manually setting the CPU frequency on the host.
Supports the following commands: add_vm [Mul-c
examples/vm_power: cli in host
The CLI is used for administrating the channel monitor and manager and manually setting the CPU frequency on the host.
Supports the following commands: add_vm [Mul-choice STRING]: add_vm|rm_vm <name>, add a VM for subsequent operations with the CLI or remove a previously added VM from the VM Power Manager
rm_vm [Mul-choice STRING]: add_vm|rm_vm <name>, add a VM for subsequent operations with the CLI or remove a previously added VM from the VM Power Manager
add_channels [Fixed STRING]: add_channels <vm_name> <list>|all, add communication channels for the specified VM, the virtio channels must be enabled in the VM configuration(qemu/libvirt) and the associated VM must be active. <list> is a comma-separated list of channel numbers to add, using the keyword 'all' will attempt to add all channels for the VM
set_channel_status [Fixed STRING]: set_channel_status <vm_name> <list>|all enabled|disabled, enable or disable the communication channels in list(comma-separated) for the specified VM, alternatively list can be replaced with keyword 'all'. Disabled channels will still receive packets on the host, however the commands they specify will be ignored. Set status to 'enabled' to begin processing requests again.
show_vm [Fixed STRING]: show_vm <vm_name>, prints the information on the specified VM(s), the information lists the number of vCPUS, the pinning to pCPU(s) as a bit mask, along with any communication channels associated with each VM
show_cpu_freq_mask [Fixed STRING]: show_cpu_freq_mask <mask>, Get the current frequency for each core specified in the mask
set_cpu_freq_mask [Fixed STRING]: set_cpu_freq <core_mask> <up|down|min|max>, Set the current frequency for the cores specified in <core_mask> by scaling each up/down/min/max.
show_cpu_freq [Fixed STRING]: Get the current frequency for the specified core
set_cpu_freq [Fixed STRING]: set_cpu_freq <core_num> <up|down|min|max>, Set the current frequency for the specified core by scaling up/down/min/max
quit [Fixed STRING]: close the application
Signed-off-by: Alan Carew <alan.carew@intel.com> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
show more ...
|