session: clean up session table when re-adding an existing application namespace 37/41837/2
authorSteven Luong <[email protected]>
Thu, 14 Nov 2024 22:28:34 +0000 (14:28 -0800)
committerFlorin Coras <[email protected]>
Fri, 6 Dec 2024 16:59:10 +0000 (16:59 +0000)
commit41ae1e20e6cc768e5562ad89d1f35c63d471b9b9
treea3232f1f8a31ebfca08722c3ce1c0f5057dc6cf2
parentdc9f5e9519c76352e7edad4d869effed1fef11df
session: clean up session table when re-adding an existing application namespace

The app ns semantics allows the same app ns to be re-added with different
interface. For example,

app ns add id blue secret 1 if tap0
app ns add id blue secret 1 if tap1

If tap0 is bound to table 0 and tap1 is bound to tap1, we need to clean
up the existing session table and possibly allocate a new session table
for the app ns.

Type: fix

Change-Id: I566d621081b7cdbd7d0c481fda53953b39c26001
Signed-off-by: Steven Luong <[email protected]>
src/vnet/session/application_namespace.c