udp: fix connections move 88/21088/10
authorAloys Augustin <aloaugus@cisco.com>
Tue, 6 Aug 2019 14:09:01 +0000 (16:09 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 8 Aug 2019 02:25:11 +0000 (02:25 +0000)
commitb3392334942ed5459edfa7f11e098f4eab3aa29a
tree219764534572787052b7c2e648dbf806f38ca34b
parentf16826e7bcaa6e67ee1d21bdab1ea164ac8bbd89
udp: fix connections move

Without this the use of uc0 is racy between the current thread and the
thread that owns it and will delete it.

This also ensures we don't trigger a read event on the session before
moving it to the right thread and notifying the application.

Type: fix
Change-Id: Icb1ca3ee5805ea3c0d2d424d4b23511465deb3b6
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
src/vnet/session/session.c
src/vnet/udp/udp_input.c