diff options
author | Guoao Sun <guoao.sun@intel.com> | 2019-06-11 22:07:21 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-06-13 15:41:20 +0000 |
commit | 8062caebf84c8d1f88532e61fa5ed975ac653370 (patch) | |
tree | 49089440bc982b8ce29d158fa1b3b19d04b2f8f4 /src/vnet/tcp/tcp_input.c | |
parent | 6230eeabb49bde6bbfa8586d44335aa3003c4e73 (diff) |
tcp: fix tcp_do_fastretransmits failure.
Type: fix
vpp would fail 'tcp_in_fastrecovery (tc)' if tcp_connection_get returns 0.
Change-Id: I512cba5234b3777f1737bec9451940e7e7975f15
Signed-off-by: Guoao Sun <guoao.sun@intel.com>
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rw-r--r-- | src/vnet/tcp/tcp_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index e843edb9d6e..304f725cd32 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1336,6 +1336,8 @@ tcp_do_fastretransmits (tcp_worker_ctx_t * wrk) for (i = 0; i < vec_len (ongoing_fast_rxt); i++) { tc = tcp_connection_get (ongoing_fast_rxt[i], thread_index); + if (!tc) + continue; if (!tcp_in_fastrecovery (tc)) { tc->flags &= ~TCP_CONN_FRXT_PENDING; |