tcp: fix close-waiting check for outstanding tx data 04/20404/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 28 Jun 2019 16:41:28 +0000 (09:41 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 28 Jun 2019 17:53:08 +0000 (17:53 +0000)
Type: fix

Change-Id: I9e0e1bb933c38b17ac9fb8bf11b81e2fed021bf8
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/tcp/tcp_input.c

index 944b8eb..23030ee 100644 (file)
@@ -2844,7 +2844,8 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
            break;
 
          /* Still have outstanding tx data */
-         if (transport_max_tx_dequeue (&tc0->connection))
+         max_dequeue = transport_max_tx_dequeue (&tc0->connection);
+         if (max_dequeue > tc0->burst_acked)
            break;
 
          tcp_send_fin (tc0);