mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-netdev: Add per PMD sleep config.
Extend 'pmd-sleep-max' so that individual PMD thread cores may have a specified max sleep request value. Existing behaviour is maintained. Any PMD thread core without a value will use the global value if set or default no sleep. To set PMD thread cores 8 and 9 to never request a load based sleep and all other PMD thread cores to be able to request a max sleep of 50 usecs: $ ovs-vsctl set open_vswitch . other_config:pmd-sleep-max=50,8:0,9:0 To set PMD thread cores 10 and 11 to request a max sleep of 100 usecs and all other PMD thread cores to never request a sleep: $ ovs-vsctl set open_vswitch . other_config:pmd-sleep-max=10:100,11:100 'pmd-sleep-show' is updated to show the max sleep value for each PMD thread. Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
a095794bcc
commit
4cbbf56e6c
@@ -180,6 +180,9 @@ struct dp_netdev_pmd_thread {
|
||||
int numa_id; /* numa node id of this pmd thread. */
|
||||
bool isolated;
|
||||
|
||||
/* Max sleep request in microseconds. */
|
||||
atomic_uint64_t max_sleep;
|
||||
|
||||
/* Queue id used by this pmd thread to send packets on all netdevs if
|
||||
* XPS disabled for this netdev. All static_tx_qid's are unique and less
|
||||
* than 'cmap_count(dp->poll_threads)'. */
|
||||
|
Reference in New Issue
Block a user