tcp: count dupacks with no sacks 33/25833/6
authorFlorin Coras <fcoras@cisco.com>
Thu, 12 Mar 2020 15:50:57 +0000 (15:50 +0000)
committerDave Barach <openvpp@barachs.net>
Thu, 19 Mar 2020 14:45:35 +0000 (14:45 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia2e29b4776c0f8df666da39a14c5ef2fa1693c21

src/vnet/tcp/tcp_input.c
src/vnet/tcp/tcp_output.c

index e93e8ba..0e8e68b 100755 (executable)
@@ -2075,7 +2075,8 @@ tcp_segment_rcv (tcp_worker_ctx_t * wrk, tcp_connection_t * tc,
           * retransmissions since we may not have any data to send */
          if (seq_leq (vnet_buffer (b)->tcp.seq_end, tc->rcv_nxt))
            {
-             tcp_program_ack (tc);
+             tcp_program_dupack (tc);
+             tc->errors.below_data_wnd++;
              error = TCP_ERROR_SEGMENT_OLD;
              goto done;
            }
index 91021e8..6ed478f 100644 (file)
@@ -2064,6 +2064,7 @@ tcp_send_acks (tcp_connection_t * tc, u32 max_burst_size)
   if (!vec_len (tc->snd_sacks))
     {
       tcp_send_ack (tc);
+      tc->dupacks_out += 1;
       tc->pending_dupacks = 0;
       return 1;
     }