dpdk: infiniband/mlx5_hw.h: No such file or directory

Hi,

I’m using ‘MT27710 Family [ConnectX-4 Lx] 1015’ on DPDK-16, Red Hat 4.8.5.

But I encounter an error : fatal error: infiniband/mlx5_hw.h: No such file or directory

I know I should install some required drivers and libraries from Re: dpdk: infiniband/mlx5_hw.h: No such file or directory Infrastructure & Networking - NVIDIA Developer Forums .

But I can not find a version for Red Hat 4.8.5-4.

My Linux sys version is :

cat /proc/version:

Linux version 3.10.0-327.myos.x86_64 (admin@e1c143b4e7d6) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) )

What should I do now ?

Thanks so much.

I encountered a similar problem (with different Mellanox card)

but recovered from it by: installing Mellanox OFED 4.2-1.2.0.0

with --upstream-libs --dpdk options.

My case was for Ubuntu, FYI.

Refer to 22. MLX5 poll mode driver — Data Plane Development Kit 18.05.0-rc0 documentation 36. MLX5 Ethernet Poll Mode Driver — Data Plane Development Kit 22.07.0 documentation

My Linux version is:

Linux version 3.10.0-327.el.x86_64 (admin@e1c143b4e7d6) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #1 SMP Tue Nov 29 17:56:13 CST 2016

I can not find a OFED source that fit Red Hat 4.8.5-4. What should I do now ?

Thanks.

Sorry, I was confused and told you something that was not correct.

This is to make a correction on my previous post.

and I’m sorry I don’t have any clue for the RedHat 4.8.5-4 case.

In my understanding, if you’re using OFED --upstream-libs (this is recommended by DPDK),

you must use DPDK 17.11 or higher. (it may be DPDK 16.11.5 or higher,

to be more precise. but I don’t have time to double-check it)

I don’t still know the exact truth, so no warranty here, but

my test resulted like below.

I’m testing on a machine that includes ConnectX-4 (MCX416A-CCAT),

and ConnectX-5 (MCX556A-ECAT).

OFED 4.2-1.2.0.0 --upstream-libs dpdk-17.11.1 (fw: 12.22.1002): ConnectX-5 is recognized,

but packets cannot be received on ConnectX-4.

OFED 4.3-1.0.1.0 --upstream-libs dpdk-16.11.4 (fw: 12.22.1002): Can’t compile DPDK (mlx5_hw.h)

OFED 4.2-1.2.0.0 --upstream-libs dpdk-16.11.4 (fw: 12.22.1002): Can’t compile DPDK (mlx5_hw.h)

OFED 4.3-1.0.1.0 (normal) dpdk-17.11.1 (fw: 12.22.1002): Can’t compile

OFED 4.3-1.0.1.0 (normal) dpdk-16.11.5 (fw: 12.22.1002): Can’t compile

OFED 4.3-1.0.1.0 (normal) dpdk-16.11.4 (fw: 12.22.1002): Strange packet comes up and my app crashes.

OFED 4.2-1.2.0.0 (normal) dpdk-16.11.4 (fw: 12.22.1002): Strange packet comes up and my app crashes.

In my case I feel that fw 12.22.1002 in ConnectX-4 causes some trouble,

while putting the fw back to 12.21.1000 fixes them. (I’m still in the phase to search for a

better combination.)

Best regards,

Yasu