There is no roce_mode parameter in upstream, RoCE V2 is enabled by default.
GID Table in sysfs
GID table is exposed to user space via sysfs
1. GID values can be read from:
/sys/class/infiniband/{device}/ports/{port}/gids/{index}
2. GID type can be read from:
/sys/class/infiniband/{device}/ports/{port}/gid_attrs/types/{index}
3. GID net_device can be read from:
/sys/class/infiniband/{device}/ports/{port}/gid_attrs/ndevs/{index}
Yours,
Talat