aboutsummaryrefslogtreecommitdiffstats
path: root/vswitches/ovs_vanilla.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-04-12 05:47:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-12 05:47:00 +0000
commit0c4ab9b84ea256d22176ba6c9e89cefe9c212b7e (patch)
treeb20aafe2050ff9bef684e80600f9714da90236f4 /vswitches/ovs_vanilla.py
parentbd4859904037d5259d36d7689d464864bad5c395 (diff)
parentc071fadc49859b4cb6bd0c37a85746287612c42b (diff)
Merge "jumbo_frame: Add jumbo frame support"
Diffstat (limited to 'vswitches/ovs_vanilla.py')
-rw-r--r--vswitches/ovs_vanilla.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/vswitches/ovs_vanilla.py b/vswitches/ovs_vanilla.py
index 75870ab7..cfde3b45 100644
--- a/vswitches/ovs_vanilla.py
+++ b/vswitches/ovs_vanilla.py
@@ -116,6 +116,10 @@ class OvsVanilla(IVSwitchOvs):
tap_cmd_list += ['multi_queue']
tasks.run_task(tap_cmd_list, self._logger,
'Creating tap device...', False)
+ if settings.getValue('VSWITCH_JUMBO_FRAMES_ENABLED'):
+ tasks.run_task(['ifconfig', tap_name, 'mtu',
+ str(settings.getValue('VSWITCH_JUMBO_FRAMES_SIZE'))],
+ self._logger, 'Setting mtu size', False)
tasks.run_task(['sudo', 'ip', 'addr', 'flush', 'dev', tap_name],
self._logger, 'Remove IP', False)