From nobody Mon Jul 22 17:15:58 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WSRkl0t5nz5RJQ1; Mon, 22 Jul 2024 17:15:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WSRkl0PBtz4D7T; Mon, 22 Jul 2024 17:15:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721668559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9/rToIdaIatcYBrjZN4WpLCWlsP9X7M38MSD6W/0WYM=; b=vwvc+M134qdPEqKSunpLLMYfURiwBWLsb1n6GQoXZCpY9bZkWANKsAuSjSqJxWDOOqa8IK u/8IEzgRxy8Gy7+kMvbKbUcTMeYtE/Y9j4CWkxXjVnMFfYP+pwKwI6cr/wok5GRiZvN5+J mQ7KYyfMLxsciRR49K7E3kXE5cLHRdXHf61G5H5zxH99Z0kq4GpvBGsa/nj5WsvAKwad+2 eEVdIqNZvtTmrQzPbBMp76Ha1qjul7JyL/Y+JKN395CGHNx+UBF9sKappRbY0pVcQwpCxR 4MKmQu+o0BmvTwLgNeXhka8B8JtkAmHH4u4mPRs86VIeVVmZ6630VEA7bPhhbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721668559; a=rsa-sha256; cv=none; b=nTWYzvmjtZhil20eka56TTGw6rgQ67dC5MOOeQxj1eOKNQQ3S2jQOBa6A9Zxu7ac+5NCu0 PqK4ApREUBvazRmvJb9Tb3aM2VXXMXxsjdYXCfYrlhdaXRi1d9JG1yW6keW+bFg0/uIbx/ u9rrDIWxqALe8xIFgCW0SMSNNGB2KxZveRS97c3Fsk1TBQMK/cS/ISJZs/ihqHr3jeDzkZ dALcijdZq5ASHUPXrJRmlAdDg6U3T0OcxBwG26zqSo0zYVEW88CzJALxS9pGYIgbR38ZK9 GgPHXflYlGhS6grPqWsIqlqsoNgxesfDe6qP0e8SpEwMlN/k8oR8euqh8AjxSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721668559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9/rToIdaIatcYBrjZN4WpLCWlsP9X7M38MSD6W/0WYM=; b=Ql3tNtehmDxcN71hWA0F6VlnTucvs6dAJ4FKaZqYfUqF8xgVfUhQr8AZxIsd6rr9mtvhKt NKw+NScXo8ES8WSL864IlyQRlco2G1GQrm2P7yOJgdV5Ru21XsMWTozmWLWvxnpQvCQRjd uL/Bp/tTTkOJ2ltR5kMqiWc4L22lj6IZwdxyQU0vWh1Z0ha5qOIXQAJlSpJJBzCrkB7CWl S1+0YDKpQgaUggeCSA9yAqhIfBM+a6T7Ek/u4O8fazXtcr+yxQKpc5sFgBOq5sxIciEYxK kz5iY7yi3ChHaiwgjTIrJ8IWvGyp6VbDe8V0MQBlrsCEKJ23uMRxTCx90BkLVg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WSRkl00qqztV5; Mon, 22 Jul 2024 17:15:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46MHFwH8071699; Mon, 22 Jul 2024 17:15:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46MHFw0e071696; Mon, 22 Jul 2024 17:15:58 GMT (envelope-from git) Date: Mon, 22 Jul 2024 17:15:58 GMT Message-Id: <202407221715.46MHFw0e071696@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 37b3e6a660f5 - main - tcp: use TCP_MAXWIN instead of 65535 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37b3e6a660f551ceda412e2115748f3b97b2e615 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=37b3e6a660f551ceda412e2115748f3b97b2e615 commit 37b3e6a660f551ceda412e2115748f3b97b2e615 Author: Michael Tuexen AuthorDate: 2024-07-22 06:52:12 +0000 Commit: Michael Tuexen CommitDate: 2024-07-22 06:52:12 +0000 tcp: use TCP_MAXWIN instead of 65535 This is suggested by cc@. No functional change. Sponsored by: Netflix, Inc. --- sys/netinet/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index ef24f20f784a..ad17a9fdfb93 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2443,7 +2443,7 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th, /* * Ack processing. */ - if (SEQ_GEQ(tp->snd_una, tp->iss + (65535 << tp->snd_scale))) { + if (SEQ_GEQ(tp->snd_una, tp->iss + (TCP_MAXWIN << tp->snd_scale))) { /* Checking SEG.ACK against ISS is definitely redundant. */ tp->t_flags2 |= TF2_NO_ISS_CHECK; }