Hi. How can I change the name of Mellanox NIC, for example, from mlx5_1 to mlx5_2? I have two cards installed with mlx5_0 (Ethernet mode) and mlx5_1 (IB mode) names shown using ibv_devinfo or ibstat, and I want their name to be mlx5_1 and mlx5_2, respectively. There are instructions for Ethernet NICs, such as enoXXX, but I am looking for ways for mlx devices. Thanks.
The RDMA device naming can be controlled using udev rules and the rdma_rename tool provided with the rdma-core package.
For more information, please refer to the information in the following links:
https://github.com/linux-rdma/rdma-core/blob/master/kernel-boot/rdma-persistent-naming.rules
https://github.com/linux-rdma/rdma-core/blob/master/kernel-boot/rdma_rename.c
Best regards,
Michael.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.