diff options
author | Maryam Tahhan <maryam.tahhan@intel.com> | 2015-08-25 14:17:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-08-25 14:17:31 +0000 |
commit | 91bc210a11e44eb9e377c18b5ae0e95dce159409 (patch) | |
tree | 7bffdeff2fd24f7a41c3b3dacf54218fd13177aa /vswitches/ovs_dpdk_vhost.py | |
parent | fcdbebe21c7ce590bb6e321506dcd722ad9f9863 (diff) | |
parent | a3ac6bb9958c96340cff07d7e464bf1028344318 (diff) |
Merge "vswitches: Affinitize vswitch threads for OVS-DPDK"
Diffstat (limited to 'vswitches/ovs_dpdk_vhost.py')
-rw-r--r-- | vswitches/ovs_dpdk_vhost.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vswitches/ovs_dpdk_vhost.py b/vswitches/ovs_dpdk_vhost.py index ee0939a4..2e726a43 100644 --- a/vswitches/ovs_dpdk_vhost.py +++ b/vswitches/ovs_dpdk_vhost.py @@ -73,7 +73,16 @@ class OvsDpdkVhost(IVSwitch): bridge = OFBridge(switch_name) bridge.create() bridge.set_db_attribute('Open_vSwitch', '.', - 'other_config:max-idle', '60000') + 'other_config:max-idle', + settings.getValue('VSWITCH_FLOW_TIMEOUT')) + + if settings.getValue('VSWITCH_AFFINITIZATION_ON') == 1: + # Sets the PMD core mask to VSWITCH_PMD_CPU_MASK + # for CPU core affinitization + bridge.set_db_attribute('Open_vSwitch', '.', + 'other_config:pmd-cpu-mask', + settings.getValue('VSWITCH_PMD_CPU_MASK')) + bridge.set_db_attribute('Bridge', bridge.br_name, 'datapath_type', 'netdev') self._bridges[switch_name] = bridge |