summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAloys Augustin <aloaugus@cisco.com>2019-09-12 18:04:30 +0200
committerDave Wallace <dwallacelf@gmail.com>2019-09-13 13:10:49 +0000
commita786687ab44afe477cef90ca128a82ef0b177c62 (patch)
treeb38afb17bc1b04036189a107d098d810e71aeb9f
parentbf02d6f467f7ab0f476c6b237e6da7509451cc06 (diff)
hsa: Fix QUIC sessions count calculation
Type: fix Signed-off-by: Aloys Augustin <aloaugus@cisco.com> Change-Id: Ia53a41a30920f8af7cd00c6f809b32e7cc277b7a
-rw-r--r--src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c b/src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c
index 41f9cd9e09c..01812bdf7cb 100644
--- a/src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c
+++ b/src/plugins/hs_apps/sapi/vpp_echo_proto_quic.c
@@ -454,9 +454,7 @@ quic_echo_set_defaults_after_opts_cb ()
em->n_connects = em->n_clients;
em->n_sessions =
- clib_max (1,
- eqm->n_stream_clients) * em->n_clients + eqm->n_stream_clients +
- 1;
+ clib_max (1, eqm->n_stream_clients) * em->n_clients + em->n_clients + 1;
em->n_clients = eqm->n_stream_clients * em->n_clients;
if (em->i_am_master)