From nobody Sat Feb 25 17:16:13 2023 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 4PPD1n3Pw8z3tf9G; Sat, 25 Feb 2023 17:16:13 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PPD1n2sGgz3pW0; Sat, 25 Feb 2023 17:16:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677345373; 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=FRXGig8fHqjkDWcxkfZhBHEUiuqBaMaekWP8xX75UFI=; b=FjMYgTjia1tuWrwB2zmhDKxdVvp4f0WMXBU0N0M1MBGYQ96dDWPRgVTNsNAbpe+svRAeUx f2x+cZdwh0PIcQ5yJTKhBjvwPsVeoS8vy4NKnwHFWX2F9JMpQTFWAU2KNx+mu5LQU8gqY3 0PykveUc5Qc/1FXzbcb620yGGV2YozSkplgqQTVIQZ8ukagtlhKOaIt4+IKxBA8jjBMhHn 9OUNo0Qybw6mmyNmv75h6X0HRVgOG/YWx9hn7PbOA/Kuk7ZELtDRMYOZhokAENYDVqHv1L ety4XOoSK8v3mf82sCnP6a+ikiBj2n7mB2GXQ46VH7bwrZmnSsCZ7Pi7W4pt7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677345373; 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=FRXGig8fHqjkDWcxkfZhBHEUiuqBaMaekWP8xX75UFI=; b=C8wHGlnye+J05A3AJKtPJSQfxMGunmgxbY/hLlMC62iXk6Fk7YjmxB0Zx3ARUvChZOzRIU Y5AZXs9SH0dU8vuA4JZvfkNv5ANEdqhF5jkyGccT2+2Ka0qcYI3AQyE9+PV3bpkW0CX7JU GZBHqVqQUUkYJwQhK4JYCs7v4PjHOSjz9KpUOOryS0SCgY8ByPL4fdEb1PWwnwr2/DD4OW XqfqiMHPsh1ZmtpUYLIX2Rzktm5OIxkaiFpikL2RExZEP+bg311jMj6HlidgXSy/AdHUoU //qNCk0HHuZMe3LF3a/0Yjh1qM8oG7y/d/uMG/6MXi4qIdoFOKu5yg71ulS2UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677345373; a=rsa-sha256; cv=none; b=DlJbPd0S5lTlb94shsSO8sWEwOn9LUy52VK1Gt+rzv1uthW7kUJCJzMEf5iqdDWZYMSlI0 Yk0c+RuUwpYQnN9AoOecoxJKp9KYAdP+gLJ4KzQ3lTswKO+PbMwhWlsjIPkPo5EwR1hCZG rHPFjfNX/z3znkUkdsVwhO3Wm7guRQ7h93hkrB9vMha5LNZIQVdU7fwD58aRYzOJq6iXmp hfRE9Xj7qQq5U8L5Q4sRjGrLzfbpn5UabPqn+zxJsWMlJi5ZpbHl4qu/EnBplfgl99oBph oLpzDn+0cV03cgEIDuoVSdyyw1mk3j26cPmsLEUmy/8Qivg40foWm2X++6x2IA== 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 4PPD1n1w0bz1C91; Sat, 25 Feb 2023 17:16:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31PHGDM7040849; Sat, 25 Feb 2023 17:16:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31PHGDZA040848; Sat, 25 Feb 2023 17:16:13 GMT (envelope-from git) Date: Sat, 25 Feb 2023 17:16:13 GMT Message-Id: <202302251716.31PHGDZA040848@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2f201df1f875 - main - Change hw_tls to a bool 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f201df1f875349417cafe30b8322291641aadb0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2f201df1f875349417cafe30b8322291641aadb0 commit 2f201df1f875349417cafe30b8322291641aadb0 Author: Alfonso AuthorDate: 2021-07-20 20:17:28 +0000 Commit: Warner Losh CommitDate: 2023-02-25 16:59:11 +0000 Change hw_tls to a bool Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/512 --- sys/netinet/tcp_output.c | 4 +--- sys/netinet/tcp_var.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index db9d96a1a58e..35be3163fa62 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -222,9 +222,7 @@ tcp_default_output(struct tcpcb *tp) #endif #ifdef INET6 struct ip6_hdr *ip6 = NULL; - int isipv6; - - isipv6 = (inp->inp_vflag & INP_IPV6) != 0; + const bool isipv6 = (inp->inp_vflag & INP_IPV6) != 0; #endif #ifdef KERN_TLS const bool hw_tls = tp->t_nic_ktls_xmit != 0; diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index f0469e09fe6d..8ab7433eb3b8 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1283,7 +1283,7 @@ tcp_set_flags(struct tcphdr *th, uint16_t flags) static inline void tcp_account_for_send(struct tcpcb *tp, uint32_t len, uint8_t is_rxt, - uint8_t is_tlp, int hw_tls) + uint8_t is_tlp, bool hw_tls) { if (is_tlp) { tp->t_sndtlppack++;