Building a kernel with RoCE
![]()
Control the build options for RoCE through the kernel configuration menu.
Kernel builders: This information is intended for those who want to
build their own kernel. Be aware that both compiling your own kernel or recompiling an existing
distribution usually means that you have to maintain your kernel yourself.
Figure 1 summarizes the kernel configuration menu options that are relevant to the RoCE support.
Device Drivers --->
...
Infiniband support ---> (CONFIG_INFINIBAND)
...
InfiniBand userspace access (verbs and CM) (CONFIG_INFINIBAND_USER_ACCESS)
Mellanox ConnectX HCA support ---> (CONFIG_MLX4_INFINIBAND)
Mellanox Connect-IB HCA support ---> (CONFIG_MLX5_INFINIBAND)
...
Network device support ---> (CONFIG_NETDEVICES)
...
Ethernet driver support (CONFIG_ETHERNET)
...
Mellanox devices (CONFIG_NET_VENDOR_MELLANOX)
└─ Mellanox Technologies 1/10/40Gbit Ethernet support (CONFIG_MLX4_EN)
Mellanox Technologies ConnectX-4 and Connect-IB core driver (CONFIG_MLX5_CORE)
Networking support ---> (CONFIG_NET)
....
Networking options
...
SMC socket protocol family (CONFIG_SMC)
└─ SMC: socket monitoring interface (CONFIG_SMC_DIAG)
...
The RDS Protocol (CONFIG_RDS)
├─ RDS over Infiniband and iWARP (CONFIG_RDS_RDMA)
├─ RDS over TCP (CONFIG_RDS_TCP)
└─ RDS debugging messages (CONFIG_RDS_DEBUG)