From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH v3 2/4] ethdev: move error checking macros to header Date: Fri, 6 Nov 2015 15:54:44 +0100 Message-ID: <20151106145444.GE4013@6wind.com> References: <20151106115244.GB13920@bricha3-MOBL3> <20151106122539.GC4013@6wind.com> <59AF69C657FD0841A61C55336867B5B03597518E@IRSMSX151.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: "Richardson, Bruce" Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id B5F0B5A57 for ; Fri, 6 Nov 2015 15:55:03 +0100 (CET) Received: by wmll128 with SMTP id l128so36864783wml.0 for ; Fri, 06 Nov 2015 06:55:03 -0800 (PST) Content-Disposition: inline In-Reply-To: <59AF69C657FD0841A61C55336867B5B03597518E@IRSMSX151.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Nov 06, 2015 at 02:39:31PM +0000, Richardson, Bruce wrote: [...] > > > Hi Adrien, > > > > > > I'm trying to dig into this a bit more now, and try out using a sta= tic > > > inline function, but I'm having trouble getting DPDK to compile wit= h > > > the mlx drivers turned on in the config. I'm trying to follow the > > instructions here: > > > http://dpdk.org/doc/guides/nics/mlx4.html, but it's not clearly cal= led > > > out what requirements are for compilation vs requirements for runni= ng > > the PMD. > > > > > > I'm running Fedora 23, and installed the libibverbs-devel package, = but > > > when I compile I get the following error: > > > > > > =3D=3D Build drivers/net/mlx4 > > > CC mlx4.o > > > /home/bruce/ethdev-cleanup/drivers/net/mlx4/mlx4.c: In function > > =E2=80=98txq_cleanup=E2=80=99: > > > /home/bruce/ethdev-cleanup/drivers/net/mlx4/mlx4.c:886:37: error: > > storage size of =E2=80=98params=E2=80=99 isn=E2=80=99t known > > > struct ibv_exp_release_intf_params params; > > > ^ compilation terminated due= to > > > -Wfatal-errors. > > > > > > Any suggestions on the fix for this? > >=20 > > This is a known issue, libibverbs-devel package from Fedora 23 most l= ikely > > does not support extended types and functions required by mlx4. You s= hould > > remove the packages that come with your distribution and install libr= aries > > versions from Mellanox OFED as described in the next section: > >=20 > > http://dpdk.org/doc/guides/nics/mlx4.html#getting-mellanox-ofed > >=20 > > Note: no need to fully install OFED for compilation checks, you can > > extract an updated libibverbs package from the archive. > >=20 > > -- > > Adrien Mazarguil > > 6WIND >=20 > Hi again, >=20 > I've installed the libibverbs and libibverbs-devel packages from the me= llanox site,=20 > but I'm still getting the same error. Anything else I might be missing? >=20 > $ rpm -qa | grep mlnx > libibverbs-devel-1.1.8mlnx1-OFED.3.1.1.0.0.x86_64 > libmlx5-1.0.2mlnx1-OFED.3.1.1.0.3.x86_64 > libmlx4-1.0.6mlnx1-OFED.3.1.1.0.0.x86_64 > libibverbs-1.1.8mlnx1-OFED.3.1.1.0.0.x86_64 > libmlx4-devel-1.0.6mlnx1-OFED.3.1.1.0.0.x86_64 > libmlx5-devel-1.0.2mlnx1-OFED.3.1.1.0.3.x86_64 That's weird, 'struct ibv_exp_release_intf_param' must be defined in /usr/include/infiniband/verbs_exp.h, itself included by infiniband/verbs.= h, both normally part of the libibverbs-devel package above. Make sure you don't have an old version of infiniband/verbs.h somewhere e= lse such as in /usr/local/include after a manual compilation of libibverbs. --=20 Adrien Mazarguil 6WIND