Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
92d0eac
)
session: detach session from app on cleanup
13/26513/3
author
Florin Coras
<fcoras@cisco.com>
Tue, 14 Apr 2020 23:52:12 +0000
(23:52 +0000)
committer
Florin Coras
<florin.coras@gmail.com>
Wed, 15 Apr 2020 15:00:05 +0000
(15:00 +0000)
Type: fix
Avoids unwanted notifications.
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ifff27fb0d3644194e3bb3f91d7ed1fd02c6730cd
src/vnet/session/segment_manager.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/segment_manager.c
b/src/vnet/session/segment_manager.c
index
b40675a
..
3e0b896
100644
(file)
--- a/
src/vnet/session/segment_manager.c
+++ b/
src/vnet/session/segment_manager.c
@@
-552,7
+552,12
@@
segment_manager_del_sessions (segment_manager_t * sm)
/* *INDENT-ON* */
vec_foreach (handle, handles)
- session_close (session_get_from_handle (*handle));
+ {
+ session = session_get_from_handle (*handle);
+ session_close (session);
+ /* Avoid propagating notifications back to the app */
+ session->app_wrk_index = APP_INVALID_INDEX;
+ }
}
int