session: delete and add application namespace do not create the global session table 75/41275/6
authorSteven Luong <[email protected]>
Wed, 17 Jul 2024 23:16:05 +0000 (16:16 -0700)
committerFlorin Coras <[email protected]>
Wed, 24 Jul 2024 04:20:08 +0000 (04:20 +0000)
commit5682ca8ef613d47ed51bbd97b3df94d2f91bf290
treed21ef3e15d5b591258fb15a9fa320c37337dd3c1
parent5c4c1b63b9ba4c7b0d6f72833a8d706792c8dd9d
session: delete and add application namespace do not create the global session table

When an application namespace is added, we call session_table_is_alloced
to see if we need to allocate a new session table. That check returns true
even if we removed the session table.
The fix is when we delete an application's global session table,
we need to invalidate fib_index_to_table_index.

Fixed test_vcl test script to run two tests back to back.
The 1st test deletes the application namespace at the end.
The 2nd test adds the application namespace in the beginning.

Type: fix
Fixes: 67bae20b05cb46e5f6d19afeaf1f7a52a5309d59

Change-Id: I67f5cc1b726a07659597a9479df011717db08d0a
Signed-off-by: Steven Luong <[email protected]>
src/vnet/session/application_namespace.c
src/vnet/session/session_lookup.c
src/vnet/session/session_lookup.h
src/vnet/session/session_table.h
test/asf/test_vcl.py