DPDK usage discussions
 help / color / mirror / Atom feed
From: Yongseok Koh <yskoh@mellanox.com>
To: Iain Barker <iain.barker@oracle.com>
Cc: Shahaf Shuler <shahafs@mellanox.com>,
	Thomas Monjalon <thomas@monjalon.net>,
	"users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Wrong OFED version for DPDK 17.11.1 ?
Date: Fri, 13 Apr 2018 01:59:21 +0000	[thread overview]
Message-ID: <1EFC500D-2449-4F6B-811B-6575E99C6942@mellanox.com> (raw)
In-Reply-To: <6401558.JiuHb12zd6@xps>

Hi, Iain

Can you please check whether the OFED has been installed with '--upstream-libs --dpdk' options? I mean,
	./mlnxofedinstall --upstream-libs --dpdk
It is documented in "21.7. Quick Start Guide on OFED".
Since 17.11, we started to support upstream libraries (rdma-core in linux community).

Thanks,
Yongseok

> On Apr 10, 2018, at 1:39 PM, Thomas Monjalon <thomas@monjalon.net> wrote:
> 
> Please someone to answer on the mailing list?
> 
> -----------------------------------------
> 
> Subject: [dpdk-users] Wrong OFED version for DPDK 17.11.1 ?
> Date: mardi 10 avril 2018, 21:11:49 CEST
> From: Iain Barker <iain.barker@oracle.com>
> À : users@dpdk.org
> 
> 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://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdpdk.org%2Fdoc%2Fguides-17.11%2Fnics%2Fmlx5.html&data=02%7C01%7Cyskoh%40mellanox.com%7Cad42663d102c4442522308d59f23392d%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636589895991842393&sdata=Av22fZ218%2BMBAe77rgP0kxsCEet4bbm4dc7Z%2Fs7thSA%3D&reserved=0
> 
> 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
> 
> 


           reply	other threads:[~2018-04-13  1:59 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <6401558.JiuHb12zd6@xps>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1EFC500D-2449-4F6B-811B-6575E99C6942@mellanox.com \
    --to=yskoh@mellanox.com \
    --cc=iain.barker@oracle.com \
    --cc=shahafs@mellanox.com \
    --cc=thomas@monjalon.net \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).