From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 01/22] tcp: Cover all usages of tcpi_snd_wnd with HAS_SND_WND Date: Fri, 28 Jan 2022 19:33:36 +0100 Message-ID: <20220128183357.3407606-2-sbrivio@redhat.com> In-Reply-To: <20220128183357.3407606-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7319153633217437126==" --===============7319153633217437126== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ...I forgot two of them. Signed-off-by: Stefano Brivio --- tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcp.c b/tcp.c index df8a57f..b0d5f40 100644 --- a/tcp.c +++ b/tcp.c @@ -1586,12 +1586,14 @@ static int tcp_update_seqack_wnd(struct ctx *c, struc= t tcp_tap_conn *conn, goto out; } =20 +#ifdef HAS_SND_WND if (conn->local || tcp_rtt_dst_low(conn)) { conn->wnd_to_tap =3D tinfo->tcpi_snd_wnd; } else { tcp_get_sndbuf(conn); conn->wnd_to_tap =3D MIN((int)tinfo->tcpi_snd_wnd, conn->snd_buf); } +#endif =20 conn->wnd_to_tap =3D MIN(conn->wnd_to_tap, MAX_WINDOW); =20 --=20 2.33.0 --===============7319153633217437126==--