From nobody Mon Nov 25 18:50:38 2024 X-Original-To: dev-commits-src-main@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 4Xxvsq105xz5f30F; Mon, 25 Nov 2024 18:50:39 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xxvsq0Slkz4YGD; Mon, 25 Nov 2024 18:50:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732560639; 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=GA27ZaReeXAE4PFpkvuqV3GI9L9nfKfEESJxzjb+in0=; b=bYv2rqCSGOC54fRNPDRqrtAv8VokKCQARqEVLZ3jRgkzBiBInPLh5YcgNwiohIAX7W5gx/ rVrvxy4kMXREM3e9mKb56G5LKnIsQ6VVUFGhNAjk8ZR3bdwdzx8nBJRhcuSalwOZ1qUS8V BTw8LYhb/+LKnnM8tUW4RrF01Fr0XcSbmgWQcGOKv4o6qlpvD2oz7a4VX001KxcMrI4Ikj xHxYWrY/XRhGqtqszOOeUzHr+6So1cNOJNy4Nj+bNzqglyhF4JBY+hstdNMEcRI945hQTP YXqPaamQvhaQmoWb42bQz0wCMM/z1cSo3y2rWfs5zMhZ/v8E1kCBJ6ZRqFUy8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732560639; 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=GA27ZaReeXAE4PFpkvuqV3GI9L9nfKfEESJxzjb+in0=; b=ehrSWkp1NYrCWx8LuTaGj7Vphv2MEtywMyt1f92pIavf6xzNv7MBqBWjPCEfWbth29eU1h PWoYJMXhdCwAuk08pCzp7iSm94m2mue53OSvuNIzG5Z92BgU9MTWbcdvOWQbUlQiKCUVX/ LTdKwnOXdcpzqRpmWJvtD5BC4eynRH9zY3MKLez2/zhHEktx1swT7nC6CzpSKFdf40Njuj QII/iyWK3Lgj+LGG13vV5ZzEyGrVavL8ixqQndzF/ayHvYdHQvJ6tuUfINvgIU52tTTwHZ egRO9h89Ae9lCQuclOZ56QtHSpMmbIEJT16vByuntdByNwBfwmSRGtxmNhkK6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732560639; a=rsa-sha256; cv=none; b=qlFY30SVI+SUYaJanKuD8nNZh5MAdcLYQh9Jt+Hn8C7CUVU/xaxlxuZ1qdyQtsK7abpmr2 LBs6KBo64Nx4BqQbEKTWvwwAap0+88zeeeUinK3MknfbVR5KlCuj/NZxy9ZwYIniw0dzL6 8oZZ/PjhP1XdTcrDXyoULENXCIeUwEmzNgc4SppbzAcw9zn3wqhEn3mCu+88UdD9wYaHrV qhTX6BcLOt6UHBDv3IwWD5pztZiCPTCYkp5TnT0aVaBjfc3lon0wSxL6C2bv9udaMZwNnx /5TN91FeCuAAkUUrznkgl7mzI+IJPxbSKIne6ReSY5gMd6NkolUq1XQh4xZWgw== 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 4Xxvsq0412zrYF; Mon, 25 Nov 2024 18:50:39 +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 4APIocXS058683; Mon, 25 Nov 2024 18:50:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4APIocqT058680; Mon, 25 Nov 2024 18:50:38 GMT (envelope-from git) Date: Mon, 25 Nov 2024 18:50:38 GMT Message-Id: <202411251850.4APIocqT058680@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: b2f7c53430c3 - main - ktls: Enable by default List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2f7c53430c39c7ab4ded21427b91e34b3080fba Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b2f7c53430c39c7ab4ded21427b91e34b3080fba commit b2f7c53430c39c7ab4ded21427b91e34b3080fba Author: John Baldwin AuthorDate: 2024-11-25 18:50:27 +0000 Commit: John Baldwin CommitDate: 2024-11-25 18:50:27 +0000 ktls: Enable by default Reviewed by: gallatin, markj Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D47735 --- sys/kern/uipc_ktls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c index bf2ff37e3c3a..881825bf1d9f 100644 --- a/sys/kern/uipc_ktls.c +++ b/sys/kern/uipc_ktls.c @@ -136,7 +136,7 @@ SYSCTL_UINT(_kern_ipc_tls, OID_AUTO, ifnet_max_rexmit_pct, CTLFLAG_RWTUN, &ktls_ifnet_max_rexmit_pct, 2, "Max percent bytes retransmitted before ifnet TLS is disabled"); -static bool ktls_offload_enable; +static bool ktls_offload_enable = true; SYSCTL_BOOL(_kern_ipc_tls, OID_AUTO, enable, CTLFLAG_RWTUN, &ktls_offload_enable, 0, "Enable support for kernel TLS offload"); @@ -273,7 +273,7 @@ SYSCTL_COUNTER_U64(_kern_ipc_tls_ifnet, OID_AUTO, reset_failed, CTLFLAG_RD, &ktls_ifnet_reset_failed, "TLS sessions that failed to allocate a new ifnet send tag"); -static int ktls_ifnet_permitted; +static int ktls_ifnet_permitted = 1; SYSCTL_UINT(_kern_ipc_tls_ifnet, OID_AUTO, permitted, CTLFLAG_RWTUN, &ktls_ifnet_permitted, 1, "Whether to permit hardware (ifnet) TLS sessions");