Olav Grønås Gjerde

profile image
Full stack system architect with passion for Unix, Java, Python and databases.
Twitter @olavgg
3 months ago

How to check current RoCE version that is running on RHEL or Almalinux

Login as root:

cd /sys/kernel/config/rdma_cm

Create the mlx4_0 (ConnectX3 Pro) or mlx5_0 folder (ConnectX4++)

mkdir mlx5_0
tree
.
└── mlx5_0
    └── ports
        ├── 1
        │   ├── default_roce_mode
        │   └── default_roce_tos
        └── 2
            ├── default_roce_mode
            └── default_roce_tos
cat /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode
RoCE v2

Voila!