From 557b20c4eab7b7aefd281f28f7535c4ea22a2845 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 28 Nov 2023 23:21:18 -0800 Subject: tcp: fix rxt send of new data assert We might have less than 1 mss when attempting write but more after write, as application could be actively enqueuing more data. Relax assert. Type: fix Signed-off-by: Florin Coras Change-Id: I54a83c4460f8e022a88758f0ebd7828df711dbb9 --- src/vnet/tcp/tcp_output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vnet/tcp/tcp_output.c') diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 069c349a235..e6c87b6a3d0 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -1117,8 +1117,7 @@ tcp_prepare_segment (tcp_worker_ctx_t * wrk, tcp_connection_t * tc, data = tcp_init_buffer (vm, *b); n_bytes = session_tx_fifo_peek_bytes (&tc->connection, data, offset, max_deq_bytes); - ASSERT (n_bytes == clib_min (max_deq_bytes, transport_max_tx_dequeue ( - &tc->connection))); + ASSERT (n_bytes > 0); b[0]->current_length = n_bytes; tcp_push_hdr_i (tc, *b, tc->snd_una + offset, /* compute opts */ 0, /* burst */ 0, /* update_snd_nxt */ 0); -- cgit 1.2.3-korg