From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to; bh=F5M60OcNDGcZoDMdqIR0gvBZM6aR7QCOUANm6yA+NbE=; b=HGcBkzPuPHVbKzwVBhToshZEQ2dy3A1ZU7j6H3N7ET47JqFimD3k6kKOEtgT++Blq3 vZA2m934uIwNa9gR0v33XGkglJ2K6/gOXTupaMlPfbGT98O5b3unNkKiifJQevGSTXWA X/tvZSCo4hS6ewP0YXPf2TcLunVgJNgP/kYf7i3N0xXOLakJrClYUDb/Ct4jvFK7qHtB xj0UEhHEx6nGkITi7Ow/1kSHzIrOa/2m2B1WwnIlcKqkCFeErbyl2vdFjqhKA5FKRH1e LBaGnO5FGNWjgYMnqUASIQfOQBAO25KIXpFsxTKkh50BW2OBsNoU4bBYyOlXOZXsARY5 i5Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to; bh=F5M60OcNDGcZoDMdqIR0gvBZM6aR7QCOUANm6yA+NbE=; b=Fh+4utNA0SOsrr58o6H5EvdQQX+l7nXAI2VAjErVdLMWCc2a9foqyH13vEV3oHLFo1 rnik1urW0imjJLBg93YbhXnAFA+GTamvpgvUoTIiaWuWJjEuuGDyeHmVnP1WxbtNGVP0 9B8m4Yn8nIqaA8dgProvYuFwZE73rd9FpXvhUtiGIZAi+Z/mnMqYXqaCuE9zNfzYTMI7 GztCHepLltJpubcuAfO/tNARRU2cedR42KyRKAmSMGQkU0SBT3/PL8mn9QqqGd4yeMLs Jdc39n5ZMHwiMV48IE98zMee+kAM1tRbows8gXpAjhRQjHEHAAlpUq+fthgTlf9CRpo9 qyvQ== X-Gm-Message-State: ALoCoQk5DbE4yeYvS17zmCUQuqSWIAEY2SjpAXjjZFHVLTSQq3DgGBS1rOnCJ0IzNVNxqjhOzB1q X-Received: by 10.28.170.18 with SMTP id t18mr11350301wme.73.1446821703524; Fri, 06 Nov 2015 06:55:03 -0800 (PST) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id lf10sm503720wjb.23.2015.11.06.06.55.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Nov 2015 06:55:02 -0800 (PST) Date: Fri, 6 Nov 2015 15:54:44 +0100 From: Adrien Mazarguil To: "Richardson, Bruce" Message-ID: <20151106145444.GE4013@6wind.com> Mail-Followup-To: "Richardson, Bruce" , "dev@dpdk.org" 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59AF69C657FD0841A61C55336867B5B03597518E@IRSMSX151.ger.corp.intel.com> Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2015 14:55:03 -0000 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 static > > > inline function, but I'm having trouble getting DPDK to compile with > > > 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 called > > > out what requirements are for compilation vs requirements for running > > the PMD. > > > > > > I'm running Fedora 23, and installed the libibverbs-devel package, but > > > when I compile I get the following error: > > > > > > == Build drivers/net/mlx4 > > > CC mlx4.o > > > /home/bruce/ethdev-cleanup/drivers/net/mlx4/mlx4.c: In function > > ‘txq_cleanup’: > > > /home/bruce/ethdev-cleanup/drivers/net/mlx4/mlx4.c:886:37: error: > > storage size of ‘params’ isn’t known > > > struct ibv_exp_release_intf_params params; > > > ^ compilation terminated due to > > > -Wfatal-errors. > > > > > > Any suggestions on the fix for this? > > > > This is a known issue, libibverbs-devel package from Fedora 23 most likely > > does not support extended types and functions required by mlx4. You should > > remove the packages that come with your distribution and install libraries > > versions from Mellanox OFED as described in the next section: > > > > http://dpdk.org/doc/guides/nics/mlx4.html#getting-mellanox-ofed > > > > Note: no need to fully install OFED for compilation checks, you can > > extract an updated libibverbs package from the archive. > > > > -- > > Adrien Mazarguil > > 6WIND > > Hi again, > > I've installed the libibverbs and libibverbs-devel packages from the mellanox site, > but I'm still getting the same error. Anything else I might be missing? > > $ 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 else such as in /usr/local/include after a manual compilation of libibverbs. -- Adrien Mazarguil 6WIND