summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_output.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-07 12:33:12 -0800
committerFlorin Coras <florin.coras@gmail.com>2019-11-10 00:22:09 +0000
commitfd4c3fe364becc02527ed5f9088d904c7bc34a6f (patch)
tree4e19718ea5950d05e39e7c84181ee180ccc3f7b9 /src/vnet/tcp/tcp_output.c
parent20b962d3e494513ab28854936cc8bbc32891686b (diff)
tcp: avoid retransmits post reset
Type: fix Change-Id: Ib6a8f5ca597389700e5746f089a5cec7eee65ab5 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_output.c')
-rw-r--r--src/vnet/tcp/tcp_output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c
index 14d1bd6391e..42986112053 100644
--- a/src/vnet/tcp/tcp_output.c
+++ b/src/vnet/tcp/tcp_output.c
@@ -2173,6 +2173,9 @@ tcp_do_retransmit (tcp_connection_t * tc, u32 max_burst_size)
tcp_worker_ctx_t *wrk;
u32 n_segs;
+ if (PREDICT_FALSE (tc->state == TCP_STATE_CLOSED))
+ return 0;
+
wrk = tcp_get_worker (tc->c_thread_index);
if (tcp_opts_sack_permitted (&tc->rcv_opts))