Hi,
to begin with, you will need to review the OFED release notes documents to determine whether you can use a certain version of OFED with a certain version of OS/Kernel.
Mellanox Products: Mellanox OpenFabrics Enterprise Distribution for Linux (MLNX_OFED)
Now, i can't give a definite answer to what you are asking. typically versions are being testing with other servers with alike versions so we can't really say if there are going to be any compatibility issues. I would expect IP applications (IPoIB) to work but other protocols, i am not sure.