SUSE Linux Enterprise Server (SLES) 15 SP4 Inbox Driver Documentation

Default RoCE Mode Setting for RDMA_CM Application

  1. Create a directory for the mlx4/mlx5.

    Copy
    Copied!
                

    mkdir -p /sys/kernel/config/rdma_cm/mlx4_0/

  2. Validate what is the used RoCE mode in the default_roce_mode configfs.

    Copy
    Copied!
                

    # cat /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode IB/RoCE v1

  3. Change the default RoCE mode,

  • For RoCE v1: IB/RoCE v1

    Copy
    Copied!
                

    # echo "IB/RoCE v1" > /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode # cat /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode IB/RoCE v1

  • For RoCE v2: RoCE v2

    Copy
    Copied!
                

    # echo "RoCE v2" > /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode # cat /sys/kernel/config/rdma_cm/mlx4_0/ports/1/default_roce_mode RoCE v2

© Copyright 2023, NVIDIA. Last updated on May 23, 2023.