Quantcast
Channel: Mellanox Interconnect Community: Message List
Viewing all articles
Browse latest Browse all 6226

Change mlx5 to Ethernet mode without mlxconfig

$
0
0

I'm doing some testing of various network technologies (Omini_path, iWARP, RoCE, ConnectX-3, ConnectX-4 and hopefully soon ConnectX-5) to find which fits our workload best. I'm writing a test suite that will set-up and configure all the aspects of the testing and as I went to program switching the ConnectX-3 cards from Infiniband to Ethernet to test RoCE, I noticed that it is recommend to us connectx_port_config, but you could also run `echo eth > /sys/class/infiniband/mlx4_0/mlx4_0/device/device/mlx4_port1` and get the same effect and it changes the mode of the card right away without needing a reboot.

 

For the Connect-IB cards we have using the mlx5 drivers, that path does not exist and all I can find says to use mlxconfig and do what looks like writing to the firmware of the card then rebooting the machine. It also seems that the Ethernet code has been moved into the mlx5_core module so there isn't an mlx5_en module anymore. It seems that there should be some way to either write to sys like the mlx4 driver, or at least unload and reload the modules with some parameters to change the way the card works. I'm trying to use only in-box drivers and software on CentOS 7.2 otherwise it really complicates my test software being able to run on any freshly provisioned machine. The tests are between two machines without a switch so changing the modes isn't a big deal for these tests. I've tried scanning through sys looking for something that resembles some sort of switch like the mlx4 driver, but I can't find it.

 

Any ideas to switch the mlx5 mode without mlxconfig?

 

Thanks,

Robert LeBlanc


Viewing all articles
Browse latest Browse all 6226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>