From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 38E985323 for ; Thu, 18 Aug 2016 19:35:02 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id i5so6672231wmg.0 for ; Thu, 18 Aug 2016 10:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=D2X4sW87HnG1KVafTma7lpUGyZ37mej7544G9sJ/Bt0=; b=k5Fkosy/V1ENaOWImWft1927/V4PolNiMmgSgVDAjmYs+/k77Q7U+Z/mNLycW3pLm1 74E4kS6wK+n/dohHV506/IHtQzWh72OKHxS5Lg54PcHC3yIw6bTU4/CBn2M02cUceRuV o8YV56OUkewvIF5NyWdzNS+v92pm0899CGCCmIEOb60FPoKENEtNSbCRCUs5LpQ7vKYi +u1u/3a6trqg40A2qPmf4vYIsZgE0EEgVX46n66nLpjJMwCD8EtOOuLlfSpiQlxIknhq SjQUKsJj6A5ECSFJliOljP0X6VdvMjC/g79R1nR+EuVi+TmugrU1jOpR9r7NkkyqXzLv RpjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=D2X4sW87HnG1KVafTma7lpUGyZ37mej7544G9sJ/Bt0=; b=VpM3dDkVc0PBzbpFB5ZOPaYxTTjY2OlIt481rqg39StAwP+RXdUNJDSt5HU6/MZg9d OEebKPsz+x2cskRvHmTmD2xiUGvXgZxGft3vtyLbw9hyr2Jq4a2UeVWrSp6kKLgMi/5G WR7eFJFa8xVmnx7vN8I0yKQ0dPnfXfK31t25x5SREg53WXgikVWe2aKmh4d9U6bXPQNO K2xvblRN/JJbjbN9b5UkBW2ty/WW5FUKOUjf7f9kMDITm9qxDxbkerrJSi3OfdbQZoZW /CZpeJ5io/mx3KD5JiOR0S3WmPIrgNEpPKFslg6q2nKB3sTvLDC81O8hkXLPfi0qog1k gxqQ== X-Gm-Message-State: AEkooutE7IM6kSuCjyanqGB6yAQicT1cUs0EAX4QF0SoKvsHvr1PD3ySki3rrNI+x/gNZ2mHvblAp8SNRTHCHQ== X-Received: by 10.28.17.138 with SMTP id 132mr509476wmr.81.1471541701884; Thu, 18 Aug 2016 10:35:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.54.163 with HTTP; Thu, 18 Aug 2016 10:35:01 -0700 (PDT) In-Reply-To: <20160818160546.GS31423@6wind.com> References: <20160818160546.GS31423@6wind.com> From: george.dit@gmail.com Date: Thu, 18 Aug 2016 19:35:01 +0200 Message-ID: To: Georgios Katsikas , dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] ConnectX4 100GbE - Compilation problem 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: Thu, 18 Aug 2016 17:35:02 -0000 Hi Adrien, Thanks for the prompt reply! You are right, I didn't go via the DPDK route, in the hope that Mellanox will provide the exact source and configuration. DPDK 16.07 from dpdk.org works like a charm and my NIC is in PMD mode, thanks a lot for your guidance! Best regards, Georgios On Thu, Aug 18, 2016 at 6:05 PM, Adrien Mazarguil < adrien.mazarguil@6wind.com> wrote: > Hi George, > > On Thu, Aug 18, 2016 at 05:41:38PM +0200, george.dit@gmail.com wrote: > > Hi, > > > > I have a single port Mellanox ConnectX 4 100GbE NIC and I want to test > its > > Rx/Tx capabilites using DPDK. > > My system runs a Linux kernel 4.4 compiled from sources. > > > > I found the PMD driver for this NIC as provided by Mellanox here > > 209&mtag=3Dpmd_for_dpdk> > > . > > Following this > > MLNX_DPDK_Quick_Start_Guide_v2.2_2.7.pdf> > > guideline, I put my NIC in Ethernet mode, configured the 3 options > > regarding mlx5 in the config/common_linuxapp file and applied 'make > install > > T=3Dx86_64-native-linuxapp-gcc'. > > Please note this is a third party package maintained by Mellanox, therefo= re > this mailing list is not the right place to discuss related errors, unles= s > they can be reproduced with a version downloaded from dpdk.org. > > > Then, I stumbled upon a compilation problem in the mlx4 module. > > The compiler's output is as follows: > > > > =3D=3D Build drivers/net/mlx4 > > CC mlx4.o > > In file included from /usr/include/linux/if.h:31:0, > > from /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:57= : > > /usr/include/linux/hdlc/ioctl.h:73:14: error: =E2=80=98IFNAMSIZ=E2=80= =99 undeclared here > > (not in a function) > > char master[IFNAMSIZ]; /* Name of master FRAD device */ > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:612:53: error: =E2=80=98= struct > > ifreq=E2=80=99 declared inside parameter list [-Werror] > > priv_ifreq(const struct priv *priv, int req, struct ifreq *ifr) > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:612:53: error: its scope > is > > only this definition or declaration, which is probably not what you wan= t > > [-Werror] > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > =E2=80=98priv_ifreq=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:619:32: error: > dereferencing > > pointer to incomplete type =E2=80=98struct ifreq=E2=80=99 > > if (priv_get_ifname(priv, &ifr->ifr_name) =3D=3D 0) > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function =E2=80=98rx= q_setup=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:3735:29: error: unused > > parameter =E2=80=98inactive=E2=80=99 [-Werror=3Dunused-parameter] > > unsigned int socket, int inactive, const struct rte_eth_rxconf *con= f, > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > > =E2=80=98mlx4_link_update_unlocked=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4712:15: error: storage > size > > of =E2=80=98ifr=E2=80=99 isn=E2=80=99t known > > struct ifreq ifr; > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4724:43: error: =E2=80= =98IFF_UP=E2=80=99 > > undeclared (first use in this function) > > dev_link.link_status =3D ((ifr.ifr_flags & IFF_UP) && > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4724:43: note: each > > undeclared identifier is reported only once for each function it appear= s > in > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4725:22: error: > > =E2=80=98IFF_RUNNING=E2=80=99 undeclared (first use in this function) > > (ifr.ifr_flags & IFF_RUNNING)); > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4712:15: error: unused > > variable =E2=80=98ifr=E2=80=99 [-Werror=3Dunused-variable] > > struct ifreq ifr; > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > > =E2=80=98mlx4_dev_get_flow_ctrl=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4880:15: error: storage > size > > of =E2=80=98ifr=E2=80=99 isn=E2=80=99t known > > struct ifreq ifr; > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4880:15: error: unused > > variable =E2=80=98ifr=E2=80=99 [-Werror=3Dunused-variable] > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > > =E2=80=98mlx4_dev_set_flow_ctrl=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4930:15: error: storage > size > > of =E2=80=98ifr=E2=80=99 isn=E2=80=99t known > > struct ifreq ifr; > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:4930:15: error: unused > > variable =E2=80=98ifr=E2=80=99 [-Werror=3Dunused-variable] > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > =E2=80=98priv_get_mac=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:5184:15: error: storage > size > > of =E2=80=98request=E2=80=99 isn=E2=80=99t known > > struct ifreq request; > > ^ > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:5184:15: error: unused > > variable =E2=80=98request=E2=80=99 [-Werror=3Dunused-variable] > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function > > =E2=80=98mlx4_pci_devinit=E2=80=99: > > /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c:5725:25: error: =E2=80= =98IFF_UP=E2=80=99 > > undeclared (first use in this function) > > priv_set_flags(priv, ~IFF_UP, IFF_UP); > > ^ > > cc1: all warnings being treated as errors > > /opt/MLNX_DPDK_2.2_2.7/mk/internal/rte.compile-pre.mk:126: recipe for > > target 'mlx4.o' failed > > > > Iwould appreciate any suggestions and guidance. > > Well fortunately these errors are also present in v2.2.0 and should have > been addressed since v16.07 by the following commit: > > http://dpdk.org/browse/dpdk/commit/?id=3Dd06c608c013c36711e7a693b3fece6 > 8a93ae4369 > > You can either upgrade to v16.07, back-port this commit yourself or wait > for > an update from Mellanox. > > -- > Adrien Mazarguil > 6WIND > --=20 Georgios Katsikas Ph.D. Student and Research Assistant Network Systems Lab (NSL) *E-Mail:* george .dit@gmail.com *Web Site:* http://www.di.uoa.gr/~katsikas/