Fix jumbo frames 69/14769/7
authorTibor Frank <tifrank@cisco.com>
Wed, 12 Sep 2018 07:18:42 +0000 (09:18 +0200)
committerTibor Frank <tifrank@cisco.com>
Wed, 26 Sep 2018 14:34:27 +0000 (16:34 +0200)
Change-Id: I8aa557fe75133d20eef9832e314357af71f1d19a
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/libraries/python/DpdkUtil.py
resources/libraries/python/QemuUtils.py
resources/libraries/robot/performance/performance_configuration.robot

index 60ee867..41c79a8 100644 (file)
@@ -121,17 +121,17 @@ class DpdkUtil(object):
         return pmd_options
 
     @staticmethod
-    def dpdk_testpmd_start(node, **args):
+    def dpdk_testpmd_start(node, **kwargs):
         """Start DPDK testpmd app on VM node.
 
         :param node: VM Node to start testpmd on.
-        :param args: List of testpmd parameters.
+        :param args: Key-value testpmd parameters.
         :type node: dict
         :type args: dict
         :returns: nothing
         """
-        eal_options = DpdkUtil.get_eal_options(**args)
-        pmd_options = DpdkUtil.get_pmd_options(**args)
+        eal_options = DpdkUtil.get_eal_options(**kwargs)
+        pmd_options = DpdkUtil.get_pmd_options(**kwargs)
 
         ssh = SSH()
         ssh.connect(node)
index 5880028..a61a11d 100644 (file)
@@ -260,7 +260,7 @@ class QemuUtils(object):
                   'mq=on,csum=off,gso=off,guest_tso4=off,guest_tso6=off,'
                   'guest_ecn=off,mrg_rxbuf={mbuf}{queue_size}'.
                   format(vhost_id=self._vhost_id, mac=mac,
-                         mbuf='on' if jumbo_frames else 'off',
+                         mbuf='on,host_mtu=9200' if jumbo_frames else 'off',
                          queue_size=queue_size))
         self._qemu_opt['options'] += device
         # Add interface MAC and socket to the node dict
index 66bda0c..72fc74a 100644 (file)
 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
-| | ${max_pkt_len}= | Set Variable If | ${jumbo} | 9000 | ${EMPTY}
+| | ${max_pkt_len}= | Set Variable If | ${jumbo} | 9200 | ${EMPTY}
 | | ${testpmd_cpus}= | Evaluate | ${thr_count_int} + ${1}
 | | ${testpmd_cpus}= | Cpu list per node str | ${nodes['${dut}']} | ${0}
 | | ... | cpu_cnt=${testpmd_cpus}
 | | ${vm}= | Run keyword | ${vm_name}.Qemu Start
 | | Run keyword | ${vm_name}.Qemu Set Affinity | @{qemu_cpus}
 | | Run keyword If | ${use_tuned_cfs} | ${vm_name}.Qemu Set Scheduler Policy
-| | ${max_pkt_len}= | Set Variable If | ${jumbo} | 9000 | ${EMPTY}
+| | ${max_pkt_len}= | Set Variable If | ${jumbo} | 9200 | ${EMPTY}
 | | ${testpmd_cpus}= | Evaluate | ${thr_count_int} + ${1}
 | | ${testpmd_cpus}= | Cpu list per node str | ${nodes['${dut}']} | ${0}
 | | ... | cpu_cnt=${testpmd_cpus}