Browse Source

OVS Revalidator and handler threads config

OVS revalidator hanlder threads are not contained to limited cores.
This patch will enable them to be configured in puppet vswitch module

Conflicts:
        manifests/dpdk.pp

Change-Id: I576b00bb28d0d531eb91a856632a7b5afe552f43
Closes-Bug: #1822571
(cherry picked from commit 6bc5b206e7)
changes/39/664239/4
hakhande 5 months ago
parent
commit
3bba69619f

+ 14
- 5
manifests/dpdk.pp View File

@@ -37,6 +37,12 @@
37 37
 # [*disable_emc*]
38 38
 #   (optional) Configure OVS to disable EMC.
39 39
 #
40
+# [*revalidator_cores*]
41
+#   (Optional) Number of cores to be used for OVS Revalidator threads.
42
+#
43
+# [*handler_cores*]
44
+#   (Optional) Number of cores to be used for OVS handler threads.
45
+#
40 46
 class vswitch::dpdk (
41 47
   $memory_channels    = undef,
42 48
   $driver_type        = 'vfio-pci',
@@ -45,6 +51,8 @@ class vswitch::dpdk (
45 51
   $pmd_core_list      = undef,
46 52
   $socket_mem         = undef,
47 53
   $disable_emc        = false,
54
+  $revalidator_cores  = undef,
55
+  $handler_cores      = undef,
48 56
 ) {
49 57
 
50 58
   include ::vswitch::params
@@ -93,7 +101,6 @@ class vswitch::dpdk (
93 101
 
94 102
   $pmd_core_mask = range_to_mask($pmd_core_list)
95 103
   $dpdk_lcore_mask = range_to_mask($host_core_list)
96
-
97 104
   if $memory_channels and !empty($memory_channels) {
98 105
     $memory_channels_conf = "-n ${memory_channels}"
99 106
   }
@@ -102,10 +109,12 @@ class vswitch::dpdk (
102 109
   }
103 110
 
104 111
   $dpdk_configs = {
105
-    'other_config:dpdk-extra'      => { value => $memory_channels_conf, skip_if_version => '2.5'},
106
-    'other_config:dpdk-socket-mem' => { value => $socket_mem, skip_if_version => '2.5'},
107
-    'other_config:dpdk-lcore-mask' => { value => $dpdk_lcore_mask, skip_if_version => '2.5'},
108
-    'other_config:pmd-cpu-mask'    => { value => $pmd_core_mask},
112
+    'other_config:dpdk-extra'            => { value => $memory_channels_conf, skip_if_version => '2.5'},
113
+    'other_config:dpdk-socket-mem'       => { value => $socket_mem, skip_if_version => '2.5'},
114
+    'other_config:dpdk-lcore-mask'       => { value => $dpdk_lcore_mask, skip_if_version => '2.5'},
115
+    'other_config:pmd-cpu-mask'          => { value => $pmd_core_mask},
116
+    'other_config:n-revalidator-threads' => { value => $revalidator_cores},
117
+    'other_config:n-handler-threads'     => { value => $handler_cores},
109 118
   }
110 119
 
111 120
   $dpdk_dependencies = {

+ 3
- 0
releasenotes/notes/ovs-revalidator-handler-threads.yaml-12907a70b68e178c.yaml View File

@@ -0,0 +1,3 @@
1
+---
2
+features:
3
+  - Introduced two new parameters revalidator_cores and handler_cores to set values of n-revalidator-threads and n-handler-threads on openvswitch.

Loading…
Cancel
Save