Bug 27
Summary: | Can't build mlx5 from 18.02 on CentOS Linux release 7.4.1708 with kernel 3.10.0-693.11.1.el7.x86_64 | ||
---|---|---|---|
Product: | DPDK | Reporter: | bearrailgun |
Component: | core | Assignee: | Yongseok Koh (yskoh) |
Status: | RESOLVED INVALID | ||
Severity: | major | CC: | ajit.khaparde, brian.nesbitt, mrundle |
Priority: | Normal | ||
Version: | 18.02 | ||
Target Milestone: | --- | ||
Hardware: | x86 | ||
OS: | Linux |
Description
bearrailgun
2018-04-20 15:58:38 CEST
Hi, I had same issue with Red Hat 7.4 and CentOS 7.4. I managed to get around this by uninstalling all the official MLX software and drivers and just using the Red Hat rdma-core-devel (and dependent) packages. This RPM provides the newer verbs.h and MLX headers. It might be useful to raise this with Mellanox as their own software appears to be incompatible with dpdk >= 17.x. Regards Brian. Can you please take a look and take to closure. Thanks Brian is right. When you install MLNX_OFED, you should specify the following options in order to install upstream rdma-core library. # ./mlnxofedinstall --upstream-libs --dpdk It is documented in 24.8. Quick Start Guide on OFED (http://doc.dpdk.org/guides/nics/mlx5.html) Thanks, Yongseok Later versions of DPDK contain references to, amongst others, MLX5DV_CTX_ATTR_BUF_ALLOCATORS. I've scanned through all of the latest OFED versions (4.5-4.7), including 4.5 and 4.6 which is recommended in the DPDK documentation, and none of the provided mlnx5dv.h files contain the definition of this enum. What am I missing here? For more detail, I downloaded MLNX_OFED_LINUX-4.7-1.0.0.1-rhel8.1-x86_64.tgz and then unpacked all of the *.x86_64.rpm files within it via `rpm2cpio $rpm | cpio -idmv`. Grepping for CTX_ATTR_BUF yields a definition for mlx4dv, but not mlx5dv: $ basename `pwd` MLNX_OFED_LINUX-4.7-1.0.0.1-rhel8.1-x86_64 $ grep -r CTX_ATTR_BUF all_rpm_extracts/usr/include/ all_rpm_extracts/usr/include/infiniband/mlx4dv.h: MLX4DV_SET_CTX_ATTR_BUF_ALLOCATORS = 1, But MLX5DV_CTX_ATTR_BUF_ALLOCATORS is used in mlx5.c: https://git.dpdk.org/dpdk/tree/drivers/net/mlx5/mlx5.c?h=v18.02#n963 (v18.02) Setting to unconfirmed as this appears to be a legitimate issue. |