The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=cc352a850f9860eadf9558cf0c920a3655fae576
commit cc352a850f9860eadf9558cf0c920a3655fae576 Author: Rick Macklem <[email protected]> AuthorDate: 2026-09-01 17:33:08 +0000 Commit: Rick Macklem <[email protected]> CommitDate: 2026-09-01 17:33:08 +0000 nfs_clvfsops.c: Fix the non-VIMAGE build The OFED code checks for a vnet argument, but it is is not defined. Reported by: glebius MFC after: 3 months Fixes: 884ee8d6c9b4 ("nfscl: Add some glue for client side NFS over RDMA") --- sys/fs/nfsclient/nfs_clvfsops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c index afe954c2a69d..f336e320b04c 100644 --- a/sys/fs/nfsclient/nfs_clvfsops.c +++ b/sys/fs/nfsclient/nfs_clvfsops.c @@ -1544,7 +1544,11 @@ nfs_mount(struct mount *mp) error = EINVAL; goto out; } +#ifdef VIMAGE error = rdma_check_route(vnet0, nam, NFSV4_CBSLOTS); +#else + error = rdma_check_route(NULL, nam, NFSV4_CBSLOTS); +#endif if (error != 0) { vfs_mount_error(mp, "rdma is not configured"); error = EINVAL;
