summaryrefslogtreecommitdiffstats
path: root/src/vat/api_format.c
diff options
context:
space:
mode:
authorElias Rudberg <elias.rudberg@bahnhof.net>2020-04-16 16:01:52 +0200
committerOle Trøan <otroan@employees.org>2020-04-21 16:53:38 +0000
commit368104d06ad6d667a8cce152426916fc654b6627 (patch)
tree956be4c162a7d1f52e3b9fe64d4e42cfbe473b0b /src/vat/api_format.c
parent958919f3633f4b900d9ecabc7fc75e02014e5626 (diff)
vlib: queue_hi_thresh fix to avoid deadlock
Adapt queue_hi_thresh value using num_threads to avoid risk of deadlock between threads which could happen for example when different NAT threads try to handoff work to each other at the same time when their frame queues are congested. This change ensures that each thread can reserve a queue entry without causing problems even in the most extreme case when all threads attempt to add to the same queue simultaneously when the queue is nearly full. Type: fix Signed-off-by: Elias Rudberg <elias.rudberg@bahnhof.net> Change-Id: I9e02f753bd00833d8dd500d181b0d4f9a454d703
Diffstat (limited to 'src/vat/api_format.c')
0 files changed, 0 insertions, 0 deletions