session: improve disconnect handling 34/12834/3
authorFlorin Coras <fcoras@cisco.com>
Fri, 1 Jun 2018 00:14:10 +0000 (17:14 -0700)
committerDave Barach <openvpp@barachs.net>
Fri, 1 Jun 2018 21:18:45 +0000 (21:18 +0000)
commitb2371c25fed6b2e751163df590bb9d9a93a75a0f
treeae528ef4d8f64ca3b8fdc977ce74671f5b344334
parent7dbd7265daf6fa0f522870586036c89a99bc4958
session: improve disconnect handling

If the caller is the session owning thread or the main thread with a
worker barrier sync (cli/api) add an event to the pending disconnects
vector in the session node and entirely avoid using the event queue.
Useful for bursts of disconnects (like an app detach).

If disconnects come from a processes, be willing to retry enqueueing the
disconnect to the event queue multiple times.

Change-Id: Ieece1f1091b713f94c41c703b6e805bc8498816a
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/svm/svm_fifo.c
src/vnet/session/session.c
src/vnet/session/session_node.c
src/vnet/session/stream_session.h