From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 4C44C689B for ; Thu, 18 Aug 2016 17:41:39 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id o80so170212wme.0 for ; Thu, 18 Aug 2016 08:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=3qQBmcOB4zLj9DUdakcIkyH/F6lhegA5tETygnw9cmk=; b=N2CrQpyN5/Um0IH7C9dmRddxaYwYt8vAsKPST2aF+vShyhGiTUvo9M4mrGG9LrFv3n TXxYEnA9HBFZnTG/vircQyis3GHp2ChB8K69N2fR9VKb+r8pDFQ7PrXNL1BW2G1yHY/h /3yHOHWTvXqN5DNWNMfHLAH4ZNSqLRBdHWokNz+vB6Lf+zU7wTtxC19o2xixW+iYezfs NAEruzmdMaJXdRBwYdFTL/2rlPqWrY96syuPjuBl/qINuC42Ckulgz5JrJ0/RlZcvxE+ 9pbh+4yn3CjntDj2m/FLVvOLmJnZ+s3QcwOX8M+4mhde99QVal9RAaIKPc4yhCAipWTq ozsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3qQBmcOB4zLj9DUdakcIkyH/F6lhegA5tETygnw9cmk=; b=T7/GoiFdKFXLyqg8HCt74PN4nuymuvL191tdWyu/6V6SlTEcWwQMV9q+A0iOHL86XB aLH/l5uLsb8QnHteCFzCx84qcoJW/z2hS3cC8BsE7XkN3m1UzzCj17QJtoRXXZdasVim lWnvDKsPZFkIjVo+u7xIhCVZL0YnUym9lX59nhWFQsWmXAoawimJQ4olhmFv0h6iJwlh 2HPq/JstGsz7sXGrERogEiQD29nsel7j6/MRGgMDisDPUt/+IlxQtR1M/tjV9mqFXRS2 D8YgcvkAOJMsYoqL/sZrQ2ybfEX1lVZ3M6nVaCPifUPlMjNa0jgpdbqto5VgqxO+z0+5 knlQ== X-Gm-Message-State: AEkoout1Uqs7+rXb6a/xh+TdW3iRo7HaPxnYSEFweqUfRw9RYCo29Pd9GqVOcG1JGGz99GNJMzQcfx5WMitA9g== X-Received: by 10.194.173.4 with SMTP id bg4mr2701463wjc.28.1471534898676; Thu, 18 Aug 2016 08:41:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.54.163 with HTTP; Thu, 18 Aug 2016 08:41:38 -0700 (PDT) From: george.dit@gmail.com Date: Thu, 18 Aug 2016 17:41:38 +0200 Message-ID: To: 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: [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 15:41:39 -0000 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 . Following this 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'. 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 un= declared 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=98stru= ct 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 want [-Werror] /opt/MLNX_DPDK_2.2_2.7/drivers/net/mlx4/mlx4.c: In function =E2=80=98priv_i= freq=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=98rxq_se= tup=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 *conf, ^ /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 appears 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_g= et_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. Best regards, Georgios Katsikas