From nobody Fri Aug 14 19:57:50 2026 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 4hMCgy4Sy4z6nfsR for ; Fri, 14 Aug 2026 19:57:50 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hMCgy22m8z3R7H for ; Fri, 14 Aug 2026 19:57:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786737470; 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=JiOeBB+mccVuFkY9NGnoILzeatxdRrrsZnL5G/4u6Oo=; b=MkqbQqqwmelUVmlPll0HzIJzcUYO4CXLcHyZ/i3eDFNkgCO6NlyTXBFqrvHSsk7yH9s7N/ vgidEXmk5eps7aVzhk0HXHFAPJEQvCs6IewDagzWTiBKzzgF95n9GKa5eOQP93wPjuRvSO IEYEoE/+NqWCkUAKptSVvbcK2WMqq1tNuqHRqiOj2pbnJrPDuUpFpDi+CpdfoeLJbowcdN ofLpGlMKwxUeS4OuIxPPpy+cQ8H68Cij6rjzSOQlCsNfViiJEpkQ+TjdaA8VreEB8jSTih vo8wu7i+5HUShmAZhDUlMxu7OlKL5OsMkzmaiRpNAqqqQ81wKxHO9CLKrjNc0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786737470; a=rsa-sha256; cv=none; b=cfltzgTMk7UT6TpYouinAxpMAus29V1kaHw5DfBUWRKgUyaw4lNUR0wsmnAnCK04WSABPA 4dyHtd1gzCdYAOCwaAU0Wt0hu5/qqOKi5Rhq9CXHWcMaIt0d0JuAOyaWwxuhnI+2JSWlRV g44v01oV62XBhNzeuMCv5TW0aAt3q+ylyKc2y8fnh0O6EI66tSoco2PFdmSjZpX7oJck9Q gBPk4Wi6pFX8Y1GZ6OZ/8ceRQ5cdIC+GUXQ6pOEJ8GUqu6q6bLGSoaULTiwb62sFUfZ2Gs e2yeHPSgWn6KErv9oNr3wFvZWNLZg70jxUk+NrVGhTm2ndclff1fcUem/uS+uA== 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=1786737470; 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=JiOeBB+mccVuFkY9NGnoILzeatxdRrrsZnL5G/4u6Oo=; b=NYc7L+13QNVJtEQl7vRX4tPvs+84cn8FsAhHVFZG/JIKZTyHTKVHlQD9MwGx2iJtVUpv6A NpPtPbA1XQmUIKNFkDf+36GYC4MwqqRmUzdZ1m9E/vAOvipLjEjzDH9j4pmVWuKSSmPfo/ pqx3yf6jWl6wF6e6Airpj68Ezof5iC9udM7nSNDibA84ThFfejGLgUxPVMAZUUYeYOFDVy k3jA+jJrUGZsmEmoqIXOZidcvpSulkIEvlC4C+L/XyjJwN42S+l1enDwm+9gUOQ8hAfN1l vKZaxS6LxP9mIA2pYtzkTPJiPdLHD1uOM24F2gjluaNShs2c8mD58bZsWoGGDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hMCgy0qnqz1Bhj for ; Fri, 14 Aug 2026 19:57:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38d9b by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 14 Aug 2026 19:57:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 471e14267bea - main - nfsd: Update the rc.d script for RDMA for the nfsd service 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 471e14267bea79e0f7d5768aa241471d34079e93 Auto-Submitted: auto-generated Date: Fri, 14 Aug 2026 19:57:50 +0000 Message-Id: <6a7f733e.38d9b.10f2947e@gitrepo.freebsd.org> The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=471e14267bea79e0f7d5768aa241471d34079e93 commit 471e14267bea79e0f7d5768aa241471d34079e93 Author: Rick Macklem AuthorDate: 2026-08-14 19:55:54 +0000 Commit: Rick Macklem CommitDate: 2026-08-14 19:55:54 +0000 nfsd: Update the rc.d script for RDMA for the nfsd service Commit 7144a1d58c5c added the hooks for the nfsrdma.ko module. Once loaded, this module adds RDMA support to the nfsd. This patch adds a few lines to /etc/rc.d/nfsd, so that nfs_server_rdma_enable="YES" in your /etc/rc.conf will load nfsrdma.ko, so that RDMA service is enabled. It also supports nfs_server_rdma_listen="port#" so that the default of 20490 can be overridden in /etc/rc.conf. At this available as time, the nfsrdma.ko module is an unofficial port, since it was developed by Vinicius Ferrao using generative AI. As soon as it is available, it will be announced on freebsd-current@freebsd.org. Suggested by: Vinicius Ferrao MFC after: 1 month --- libexec/rc/rc.conf | 2 ++ libexec/rc/rc.d/nfsd | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index ab92a464b133..497bdb4f7ab5 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -386,6 +386,8 @@ nfs_server_enable="NO" # This host is an NFS server (or NO). nfs_server_flags="-u -t" # Flags to nfsd (if enabled). nfs_server_managegids="NO" # The NFS server maps gids for AUTH_SYS (or NO). nfs_server_maxio="131072" # Maximum I/O size for the nfsd. +nfs_server_rdma_enable="NO" # Enable the use of the nfsrdma module for RDMA +nfs_server_rdma_listen="20490" # Port# for the NFS server to listen on for RDMA mountd_enable="NO" # Run mountd (or NO). mountd_flags="-r -S" # Flags to mountd (if NFS server enabled). weak_mountd_authentication="NO" # Allow non-root mount requests to be served. diff --git a/libexec/rc/rc.d/nfsd b/libexec/rc/rc.d/nfsd index 364c2a3b6bd3..89e5977687b3 100755 --- a/libexec/rc/rc.d/nfsd +++ b/libexec/rc/rc.d/nfsd @@ -63,6 +63,13 @@ nfsd_precmd() if [ -n "${nfs_server_vhost}" ]; then command_args="-V \"${nfs_server_vhost}\"" fi + + if checkyesno nfs_server_rdma_enable; then + load_kld nfsrdma || err 1 "Cannot load nfsrdma" + if ! sysctl vfs.nfsd.rdma_listen=${nfs_server_rdma_listen} >/dev/null; then + warn "Failed to set RDMA listen port#" + fi + fi } run_rc_command "$1"