vls: support passive listeners 33/17133/9
authorFlorin Coras <fcoras@cisco.com>
Mon, 28 Jan 2019 23:54:27 +0000 (15:54 -0800)
committerDamjan Marion <dmarion@me.com>
Wed, 30 Jan 2019 09:08:11 +0000 (09:08 +0000)
commit2d675d72d378466d1d71a4323891071038ba21d9
tree75bfc072ed2fc0ec90bb69f0935f1739a69ca704
parent822f5a498b3a21ee990a39d32b644eea947b31bb
vls: support passive listeners

If an application worker calls listen on a session, vpp registers the
worker to the listener's work load balance group and, as new connections
are accepted, it may potentially push accept notifications to it.

There are however applications, like nginx, that on some workers may
never accept new connections on a session they've started listening on.
To avoid accumulating accept events on such workers, this patch adds
support for passive listeners. That is, workers that have started
listening on a session but then never call accept or epoll/select on
that listener.

Change-Id: I007e6dcb54fc88a0e3aab3c6e2a3d1ef135cbd58
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vcl/vcl_bapi.c
src/vcl/vcl_locked.c
src/vcl/vcl_private.h
src/vcl/vppcom.c