We recommend to stop the driver first and them run the installation script. The installation script will remove the previous version of the driver and will install the new version.
Example syntax:
# /etc/init.d/openibd stop
# <path to new MLNX_OFED driver s/w>/mlnxofedinstall -vvv