mlx4 RoCE mode without OFED

Hi,

I’ve been trying to get our ConnectX-3 card to run RoCE (Ethernet mode) is working,but I can’t pass the roce_mode to the mlx4_core module .

with the OFED stack I can able to change roce_mode. But I want to set roce_mode with out using OFED stack. is it possible to get the driver code with roce_mode flag.

Please provide inputs to achieve this. Can you point to source base make it work.

Thanks

Rama