Thank you for posting your question on the Mellanox Community.
Instead of using MLNX_OFED, you can use the OS distributed drivers for our adapters. These are called INBOX drivers.
The following provides you the User Manual and Release Notes for some of the distributions which include the INBOX driver for our adapter. The User Manual provides the information how to set the RoCE mode if supported with the INBOX driver.
For any other inquiries regarding the OS distributed driver, you need to contact the OS vendor for the instructions.
The link is -> http://www.mellanox.com/page/inbox_drivers
~Mellanox Technical Support
Thanks and regards,