session: increase retries to grab mq lock 99/36699/4
authorRadha krishna Saragadam <rsaragad@cisco.com>
Mon, 18 Jul 2022 13:53:06 +0000 (19:23 +0530)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 19 Jul 2022 20:09:22 +0000 (20:09 +0000)
With thousands of UDP sessions,
Sometimes VPP needs more time to grab the MQ lock for a session.
So increased tries from 5 to 75.

Type: fix
Signed-off-by: Radha krishna Saragadam <krishna_srk2003@yahoo.com>
Change-Id: Id8b877255aedcdcf206e9d0869fe5246645d76e7

src/vnet/session/application_worker.c

index 6bbad04..844e78f 100644 (file)
@@ -683,7 +683,7 @@ mq_try_lock_and_alloc_msg (svm_msg_q_t *mq, session_mq_rings_e ring,
 {
   int rv, n_try = 0;
 
-  while (n_try < 5)
+  while (n_try < 75)
     {
       rv = svm_msg_q_lock_and_alloc_msg_w_ring (mq, ring, SVM_Q_NOWAIT, msg);
       if (!rv)