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:
170ab64
)
session: ignore connecting half_open session in session_tx_fifo_dequeue_internal
47/39647/2
author
Steven Luong
<
[email protected]
>
Wed, 11 Oct 2023 21:09:21 +0000
(14:09 -0700)
committer
Andrew Yourtchenko
<
[email protected]
>
Wed, 25 Oct 2023 17:19:29 +0000
(17:19 +0000)
s->tx_fifo is 0 for the connecting half open session.
Type: fix
Change-Id: I2ba1ae99a2fa4fae1896587f40e0e4fb73c1edcb
Signed-off-by: Steven Luong <
[email protected]
>
(cherry picked from commit
947aa8fffcd85563ed0bad620f739e76c6002f50
)
src/vnet/session/session_node.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/session_node.c
b/src/vnet/session/session_node.c
index
9e20670
..
4e190df
100644
(file)
--- a/
src/vnet/session/session_node.c
+++ b/
src/vnet/session/session_node.c
@@
-1612,7
+1612,9
@@
session_tx_fifo_dequeue_internal (session_worker_t * wrk,
clib_llist_index_t ei;
u32 n_packets;
- if (PREDICT_FALSE (s->session_state >= SESSION_STATE_TRANSPORT_CLOSED))
+ if (PREDICT_FALSE ((s->session_state >= SESSION_STATE_TRANSPORT_CLOSED) ||
+ (s->session_state == SESSION_STATE_CONNECTING &&
+ (s->flags & SESSION_F_HALF_OPEN))))
return 0;
/* Clear custom-tx flag used to request reschedule for tx */