NVIDIA modules for ConnectX-3/ConnectX-3 Pro are:
mlx4_en, mlx4_core, mlx4_ib
NVIDIA modules for ConnectX-4 and above are:
mlx5_core, mlx5_ib
In order to unload the driver, first unload mlx*_en/ mlx*_ib and then the mlx*_core module.
To load and unload the modules, use the commands below:
Loading the driver: modprobe <module name>
# modprobe mlx5_ib
Unloading the driver: modprobe –r <module name>
# modprobe –r mlx5_ib