Mounting cifs shares with mlnx-ofa kernel

I have installed the Mellanox drivers (5.4-, including kmod-mlnx-ofa_kernel, on an Oracle Linux 8 system using the RedHat Compatible Kernel (4.18.0-305.el8.x86_64). When trying to mount any cifs share (these are regular CIFS shares, not over a Mellanox connection), I get the error:

mount error: cifs filesystem not supported by the system

mount error(19): No such device

There is no cifs support advertised in /proc/filesystems. Doing a modprobe cifs works, but modinfo cifs shows that it’s the Mellanox dummy cifs kernel module, and trying to mount shares gives the same error as above. Looking deeper, I found that the cifs module is getting overridden by the Mellanox drivers. Why is that? How do I mount my CIFS shares?

Hello Dainius,

Thank you for posting your inquiry on the NVIDIA Networking Community.

Based on the information provided, unfortunately you are running a non-supported combination with OL8 and the kernel version you are running.

Based on the RN, we support the following combination:

  • Oracle Linux8.2 /w kernel 5.4.17-2011.1.2.el8uek.x86_64
  • Oracle Linux8.3 /w kernel 5.4.17-2011.7.4.el8uek.x86_64

When we look in our lab on a system installed with MLNX_OFED 5.4, we see that the proper module is loaded, it does not show a dummy module. See below output from one of our lab systems.

# modinfo cifs

filename: /lib/modules/3.10.0-1160.el7.x86_64/kernel/fs/cifs/cifs.ko.xz

softdep: pre: ccm

softdep: pre: aead2

softdep: pre: sha256

softdep: pre: cmac

softdep: pre: aes

softdep: pre: nls

softdep: pre: md5

softdep: pre: md4

softdep: pre: hmac

softdep: pre: ecb

softdep: pre: des

softdep: pre: arc4

version: 2.10

description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows

license: GPL

author: Steve French

alias: fs-cifs

retpoline: Y

rhelversion: 7.9

srcversion: FC201ED8E7403B3F2D0D9F1

depends: dns_resolver

intree: Y

vermagic: 3.10.0-1160.el7.x86_64 SMP mod_unload modversions

signer: CentOS Linux kernel signing key

sig_key: E1:FD:B0:E2:A7:E8:61:A1:D1:CA:80:A2:3D:CF:0D:BA:3A:A4:AD:F5

sig_hashalgo: sha256

parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (uint)

parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (uint)

parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (uint)

parm: cifs_max_pending:Simultaneous requests to server. Default: 32767 Range: 2 to 32767. (uint)

parm: enable_oplocks:Enable or disable oplocks. Default: y/Y/1 (bool)

Thank you and regards,

~NVIDIA Networking Technical Support