I tried to upgrade the kernel to 3.16.46 ( MLNX_OFED_LINUX-3.4-1.0.0.0 ) , but it did not work.
I tried to upgrade the driver to MLNX_OFED_LINUX-4.1-1.0.2.0 (kernel: 3.16.46), but The kernel module (xprtrdma) does not seem to match the driver version.
Thank you for reaching out to the Mellanox Support Community and for your patience in this matter.
Unfortunately, as from Mellanox OFED version 3.4-x and above NFSoRDMA is not supported anymore. This was never mentioned in the Release Notes for version 3.4-1.0.0.0 but it is mentioned in later released version.
If you want to use NFSoRDMA, you need to downgrade the driver to Mellanox OFED version 3.3-1.0.4.0 in which we do still support NFSoRDMA and is available for Ubuntu 14.04 or switch to the OS-vendor supplied driver (INBOX Driver) for the Mellanox NIC.
Hopefully this will clarify and resolves your issue.
After downgraded the driver to Mellanox OFED version 3.3-1.0.4.0 from your advice, I have recompiled the mlnx-ofed-kernel module with nfsrdma support .
But still get same error “svcrdma: Error -12 posting RDMA_READ” while executing “fio --rw=randwrite“.
I wonder if there is a bug or some wrong configuration .