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:
92a5fdd
)
session: allow transport cleanup only if not deleted
87/23187/2
author
Florin Coras
<fcoras@cisco.com>
Mon, 28 Oct 2019 15:46:37 +0000
(08:46 -0700)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Tue, 5 Nov 2019 10:33:39 +0000
(10:33 +0000)
Type: fix
Change-Id: I51282182952a66be698226bace39626df4d67b9f
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit
5afea129ed0c85f5313791d1d55fed6cdcc079c7
)
src/vnet/session/session.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/session.c
b/src/vnet/session/session.c
index
32d7914
..
97c9789
100644
(file)
--- a/
src/vnet/session/session.c
+++ b/
src/vnet/session/session.c
@@
-1281,8
+1281,9
@@
session_transport_cleanup (session_t * s)
{
/* Delete from main lookup table before we axe the the transport */
session_lookup_del_session (s);
- transport_cleanup (session_get_transport_proto (s), s->connection_index,
- s->thread_index);
+ if (s->session_state != SESSION_STATE_TRANSPORT_DELETED)
+ transport_cleanup (session_get_transport_proto (s), s->connection_index,
+ s->thread_index);
/* Since we called cleanup, no delete notification will come. So, make
* sure the session is properly freed. */
session_free_w_fifos (s);