[dpdk-users] Wrong OFED version for DPDK 17.11.1 ?

Iain Barker iain.barker at oracle.com
Tue Apr 10 21:11:49 CEST 2018


Hi all,

I'm trying to build 17.11.1 against libibverbs from OFED 4.2-1.0.0.0 but having some API compatibility issues.

According to the DPDK docs, that's the correct version for DPDK 17.11  
Ref: "Mellanox OFED version: 4.2" in https://dpdk.org/doc/guides-17.11/nics/mlx5.html

But I get multiple errors which suggest the API versions are incompatible.  For example:

           priv->hw_csum =
                  !!(device_attr_ex.device_cap_flags_ex &
                     IBV_DEVICE_RAW_IP_CSUM);

drivers/net/mlx5/mlx5.c:794:21: error: 'struct ibv_device_attr_ex' has no member named 'device_cap_flags_ex'

MLNX_OFED_SRC-4.2-1.0.0.0 contains libibverbs-41mlnx1, and that has include/infiniband/verbs.h with the following typedef:
struct ibv_device_attr_ex {
      struct ibv_device_attr  orig_attr;
      uint32_t          comp_mask;
      struct ibv_odp_caps     odp_caps;
};

So the docs appear to be wrong. no way the OFED 4.2 version of mlx5.c is going to compile against that header.

What version of libibverbs should I actually be using for DPDK 17.11.1 ?

thanks,
Iain


More information about the users mailing list