X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp.h;h=e4980dd64eb29295c0276994cf940bed59701f29;hb=398afbd889f7751088b9e4bfc487b221719b80a5;hp=b0c3ecc8c1524a43596b5a6c75f758a18297d0c8;hpb=217c62a53e5621bb8790a242a57dc7e9f8eef3a8;p=vpp.git diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index b0c3ecc8c15..e4980dd64eb 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -130,6 +130,7 @@ extern timer_expiration_handler tcp_timer_retransmit_syn_handler; _(FINRCVD, "FIN received") \ _(RATE_SAMPLE, "Conn does rate sampling") \ _(TRACK_BURST, "Track burst") \ + _(ZERO_RWND_SENT, "Zero RWND sent") \ typedef enum _tcp_connection_flag_bits { @@ -412,6 +413,10 @@ tcp_cong_recovery_off (tcp_connection_t * tc) tcp_fastrecovery_first_off (tc); } +#define tcp_zero_rwnd_sent(tc) (tc)->flags &= TCP_CONN_ZERO_RWND_SENT +#define tcp_zero_rwnd_sent_on(tc) (tc)->flags |= TCP_CONN_ZERO_RWND_SENT +#define tcp_zero_rwnd_sent_off(tc) (tc)->flags &= ~TCP_CONN_ZERO_RWND_SENT + typedef enum _tcp_error { #define tcp_error(n,s) TCP_ERROR_##n, @@ -682,6 +687,7 @@ void tcp_do_fastretransmits (tcp_worker_ctx_t * wrk); void tcp_program_ack (tcp_worker_ctx_t * wrk, tcp_connection_t * tc); void tcp_program_dupack (tcp_worker_ctx_t * wrk, tcp_connection_t * tc); void tcp_send_acks (tcp_worker_ctx_t * wrk); +void tcp_send_window_update_ack (tcp_connection_t * tc); /* * Rate estimation