lacp: create lacp-process on demand
[vpp.git] / src / vcl / vcl_test_client.c
index 70fe75d..af953e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2018 Cisco and/or its affiliates.
+ * Copyright (c) 2017-2019 Cisco and/or its affiliates.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
@@ -715,7 +715,7 @@ print_usage_and_exit (void)
           "  -w <dir>         Write test results to <dir>.\n"
           "  -X               Exit after running test.\n"
           "  -D               Use UDP transport layer\n"
-          "  -S               Use TLS transport layer\n"
+          "  -L               Use TLS transport layer\n"
           "  -E               Run Echo test.\n"
           "  -N <num-writes>  Test Cfg: number of writes.\n"
           "  -R <rxbuf-size>  Test Cfg: rx buffer size.\n"
@@ -733,7 +733,7 @@ vtc_process_opts (vcl_test_client_main_t * vcm, int argc, char **argv)
   int c, v;
 
   opterr = 0;
-  while ((c = getopt (argc, argv, "chn:w:XE:I:N:R:T:UBV6DS")) != -1)
+  while ((c = getopt (argc, argv, "chn:w:XE:I:N:R:T:UBV6DL")) != -1)
     switch (c)
       {
       case 'c':
@@ -874,7 +874,7 @@ vtc_process_opts (vcl_test_client_main_t * vcm, int argc, char **argv)
        ctrl->cfg.transport_udp = 1;
        break;
 
-      case 'S':
+      case 'L':
        ctrl->cfg.transport_tls = 1;
        break;
 
@@ -1007,13 +1007,13 @@ main (int argc, char **argv)
 
   if (vcm->proto == VPPCOM_PROTO_TLS)
     {
+      vtinf ("Adding tls certs ...");
       vppcom_session_tls_add_cert (ctrl->fd, vcl_test_crt_rsa,
                                   vcl_test_crt_rsa_len);
       vppcom_session_tls_add_key (ctrl->fd, vcl_test_key_rsa,
                                  vcl_test_key_rsa_len);
     }
 
-
   vtinf ("Connecting to server...");
   rv = vppcom_session_connect (ctrl->fd, &vcm->server_endpt);
   if (rv)