hsa: vpp_echo refactor quic nclients arg 80/22680/2
authorDave Wallace <dwallacelf@gmail.com>
Fri, 11 Oct 2019 16:04:21 +0000 (16:04 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 11 Oct 2019 20:16:28 +0000 (20:16 +0000)
Type: refactor

Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: If8471d98053ae44cae07cdca6d269aa3c7df9887

src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c
src/plugins/quic/test/test_quic.py

index 78cedbb..db777c8 100644 (file)
@@ -433,9 +433,8 @@ quic_echo_unformat_setup_vft (unformat_input_t * input, va_list * args)
 static int
 quic_echo_process_opts_cb (unformat_input_t * a)
 {
-  echo_main_t *em = &echo_main;
   quic_echo_proto_main_t *eqm = &quic_echo_proto_main;
-  if (unformat (a, "nclients %d/%d", &em->n_clients, &eqm->n_stream_clients))
+  if (unformat (a, "quic-streams %d", &eqm->n_stream_clients))
     ;
   else if (unformat (a, "quic-setup %U", quic_echo_unformat_setup_vft))
     ;
index 79e5dd1..2a00536 100644 (file)
@@ -420,8 +420,8 @@ class QUICEchoExtServerStreamWorkersTestCase(QUICEchoExtTestCase):
 
     @unittest.skipUnless(running_extended_tests, "part of extended tests")
     def test_quic_ext_transfer_server_stream_multi_workers(self):
-        self.server("nclients", "4/4", "TX=10Mb", "RX=0")
-        self.client("nclients", "4/4", "TX=0", "RX=10Mb")
+        self.server("nclients", "4", "quic-streams", "4", "TX=10Mb", "RX=0")
+        self.client("nclients", "4", "quic-streams", "4", "TX=0", "RX=10Mb")
         self.validate_ext_test_results()