diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-04-12 05:47:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-04-12 05:47:00 +0000 |
commit | 0c4ab9b84ea256d22176ba6c9e89cefe9c212b7e (patch) | |
tree | b20aafe2050ff9bef684e80600f9714da90236f4 /vswitches/ovs_dpdk_vhost.py | |
parent | bd4859904037d5259d36d7689d464864bad5c395 (diff) | |
parent | c071fadc49859b4cb6bd0c37a85746287612c42b (diff) |
Merge "jumbo_frame: Add jumbo frame support"
Diffstat (limited to 'vswitches/ovs_dpdk_vhost.py')
-rw-r--r-- | vswitches/ovs_dpdk_vhost.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vswitches/ovs_dpdk_vhost.py b/vswitches/ovs_dpdk_vhost.py index 3387fda7..13aef173 100644 --- a/vswitches/ovs_dpdk_vhost.py +++ b/vswitches/ovs_dpdk_vhost.py @@ -128,6 +128,9 @@ class OvsDpdkVhost(IVSwitchOvs): not S.getValue('OVS_OLD_STYLE_MQ'): params += ['options:n_rxq={}'.format( S.getValue('VSWITCH_DPDK_MULTI_QUEUES'))] + if S.getValue('VSWITCH_JUMBO_FRAMES_ENABLED'): + params += ['mtu_request={}'.format( + S.getValue('VSWITCH_JUMBO_FRAMES_SIZE'))] of_port = bridge.add_port(port_name, params) return (port_name, of_port) @@ -142,6 +145,9 @@ class OvsDpdkVhost(IVSwitchOvs): vhost_count = self._get_port_count('type=dpdkvhostuser') port_name = 'dpdkvhostuser' + str(vhost_count) params = ['--', 'set', 'Interface', port_name, 'type=dpdkvhostuser'] + if S.getValue('VSWITCH_JUMBO_FRAMES_ENABLED'): + params += ['mtu_request={}'.format( + S.getValue('VSWITCH_JUMBO_FRAMES_SIZE'))] of_port = bridge.add_port(port_name, params) return (port_name, of_port) |