vlib: fix handoff queue sequencing bug 61/23461/2
authorDave Barach <dave@barachs.net>
Fri, 8 Nov 2019 13:22:28 +0000 (08:22 -0500)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 18 Nov 2019 13:37:23 +0000 (13:37 +0000)
commit4fc160d7dd92acae430b15e0edabee6227d56e6e
tree561b4743d1f03258e6e404695d239e6b622271ed
parent636a8407586ed45a5b575ea58f4ad584e4a8a27c
vlib: fix handoff queue sequencing bug

Set vm->check_frame_queues after actually enqueuing a frame. Under
obscure circumstances, the code managed to set check_frame_queues so
far in advance that 100 dispatch cycles could elapse before the frame
enqueue succeeded. That resulted in permanent lack of queue service.

Type: fix
Ticket: VPP-1734
Fixes: 18191

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: If2d398202b4ba2b96581d25e8142daef3f74c9e5
(cherry picked from commit 320998a8126766c0db92d9c7652f765f9565a7b5)
src/vlib/buffer_node.h