session: fix tx_fifo clear and incorrect bitmap invalidation 67/37567/6
authorDongya Zhang <fortitude.zhang@gmail.com>
Thu, 3 Nov 2022 07:22:34 +0000 (15:22 +0800)
committerDongya Zhang <fortitude.zhang@gmail.com>
Thu, 3 Nov 2022 08:22:54 +0000 (16:22 +0800)
commit7a87c71542ae42626e4bc4f5b9a1e98b8a8e400a
treedd6d0547701a8b2adfe66508874e0c95080b7c8e
parent39d6deca5f71ee4fe772c10d76ed5b65d1ebec44
session: fix tx_fifo clear and incorrect bitmap invalidation

The tx_fifo of session may not be set up yet, if app request to
disconnect the session, svm_fifo_dequeue_drop_all will crash.

In debug image, ho_session_alloc will do clib_bitmap_validate to
prevent race condition, however the input is not correct which
will make vpp crash.

Type: fix
Change-Id: Ia8bff325d238eacb671e6764ea2a4eecd3fca609
Signed-off-by: Dongya Zhang <fortitude.zhang@gmail.com>
src/vnet/session/session.c
src/vnet/session/session.h