[dpdk-users] Problem compiling mlx5 (ConnectX4 100Gbps) - Linux kernel 4.8

Georgios Katsikas katsikas at kth.se
Thu Dec 15 15:36:27 CET 2016


Over summer I installed a single port Mellanox ConnectX 4 100GbE NIC on my
My Linux kernel was 4.4 (compiled from sources) and I managed to manually
install the mlx5 network driver, the Mellanox firmware (mft) to switch from
Infiniband to Ethernet, and finally build and run DPDK 16.07 (by

Since more recent Linux kernels have the correct mlx5 driver built in, I
decided to switch to kernel 4.8. Indeed my NIC works fine on top of the
Linux-based driver.
However, when I try to build DPDK (16.11)
with CONFIG_RTE_LIBRTE_MLX5_PMD=y, I get the following error:

== Build drivers/net/mlx5
  CC mlx5.o
In file included from /opt/dpdk/drivers/net/mlx5/mlx5.h:67:0,
                 from /opt/dpdk/drivers/net/mlx5/mlx5.c:66:
/opt/dpdk/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error:
infiniband/mlx5_hw.h: No such file or directory
compilation terminated.
/opt/dpdk/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5.o'
make[6]: *** [mlx5.o] Error 1
/opt/dpdk/mk/rte.subdir.mk:61: recipe for target 'mlx5' failed
make[5]: *** [mlx5] Error 2
/opt/dpdk/mk/rte.subdir.mk:61: recipe for target 'net' failed
make[4]: *** [net] Error 2
/opt/dpdk/mk/rte.sdkbuild.mk:78: recipe for target 'drivers' failed
make[3]: *** [drivers] Error 2
/opt/dpdk/mk/rte.sdkroot.mk:126: recipe for target 'all' failed
make[2]: *** [all] Error 2
/opt/dpdk/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
make[1]: *** [pre_install] Error 2
/opt/dpdk/mk/rte.sdkroot.mk:101: recipe for target 'install' failed
make: *** [install] Error 2

Is there any change in the latest Linux kernel that is not yet reflected in
I have installed libmlx5* and all the other dependencies as I did a few
months ago but for some reason, the driver's files have been modified by

Thanks in advance and best regards,
   Georgios Katsikas
   Ph.D. Student and Research Assistant
   Network Systems Lab (NSL)

       *E-Mail:*  *katsikas at kth.se <katsikas at kth.se>*
   *Web Site:*  https://www.kth.se/profile/katsikas/

More information about the users mailing list