diff options
author | Radha krishna Saragadam <rsaragad@cisco.com> | 2022-07-18 19:23:06 +0530 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-07-19 20:09:22 +0000 |
commit | add763797fb7951a82600f9ecb837b2f7b205660 (patch) | |
tree | bdf13f8db3fa7831c196ac04a9a02967ea926ede /src/vnet/session | |
parent | 99e3b8b84e665616d5daa21d3f08c9c8358b8da4 (diff) |
session: increase retries to grab mq lock
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
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/application_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index 6bbad045d0d..844e78f7fa9 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -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) |