For TCP_RR/UDP_RR test, we need to use -r for packet size instead of -s.

Signed-off-by: Jason Wang <[email protected]>
---
 client/tests/kvm/tests_base.cfg.sample |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/client/tests/kvm/tests_base.cfg.sample 
b/client/tests/kvm/tests_base.cfg.sample
index 4075bfc..43491f5 100644
--- a/client/tests/kvm/tests_base.cfg.sample
+++ b/client/tests/kvm/tests_base.cfg.sample
@@ -553,9 +553,13 @@ variants:
         packet_size = 1500
         setup_cmd = "cd %s && tar xvfj netperf-2.4.5.tar.bz2 && cd 
netperf-2.4.5 && patch -p0 < ../wait_before_data.patch && ./configure && make"
         netserver_cmd =  %s/netperf-2.4.5/src/netserver
-        # test time is 60 seconds, set the buffer size to 1 for more hardware 
interrupt
-        netperf_cmd = %s/netperf-2.4.5/src/netperf -t %s -H %s -l 60 -- -m %s
-        protocols = "TCP_STREAM TCP_MAERTS TCP_RR TCP_CRR UDP_RR TCP_SENDFILE 
UDP_STREAM"
+       variants:
+           - stream:
+                   netperf_cmd = %s/netperf-2.4.5/src/netperf -t %s -H %s -l 
60 -- -m %s
+                   protocols = "TCP_STREAM TCP_MAERTS TCP_SENDFILE UDP_STREAM"
+           - rr:
+                   netperf_cmd = %s/netperf-2.4.5/src/netperf -t %s -H %s -l 
60 -- -r %s
+                   protocols = "TCP_RR TCP_CRR UDP_RR"
 
     - ethtool: install setup unattended_install.cdrom
         type = ethtool

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to