From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40118.outbound.protection.outlook.com [40.107.4.118]) by dpdk.org (Postfix) with ESMTP id 9930F1BE41 for ; Tue, 3 Jul 2018 09:00:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radwareil.onmicrosoft.com; s=selector1-radware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/OO8jUprvPTkQMAJpjl+0c0N1Gjq8re/ZbilsYMISqg=; b=wBW7+lEsGzX+w78Y399Y85+r7r0ZR3BDDb+M2v6uHS0PfDBAZP8oO8JwoIl+0i3t1/QJ5xDtbLSjzfDD8glBLehOROJsoK+vAXt5/teKv/4IrLuc2iPuruhYAutgGGVavVXmv2mZhPMpJ2MoAhiEhNE+0rblot40zKbcoxBbZVo= Received: from AM4PR01MB1411.eurprd01.prod.exchangelabs.com (10.164.76.17) by AM4PR01MB1844.eurprd01.prod.exchangelabs.com (10.167.86.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Tue, 3 Jul 2018 07:00:44 +0000 Received: from AM4PR01MB1411.eurprd01.prod.exchangelabs.com ([fe80::1c1e:6913:556d:23d4]) by AM4PR01MB1411.eurprd01.prod.exchangelabs.com ([fe80::1c1e:6913:556d:23d4%2]) with mapi id 15.20.0906.026; Tue, 3 Jul 2018 07:00:44 +0000 From: Asaf Sinai To: Shahaf Shuler CC: "dev@dpdk.org" , Nitin Katiyar , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= Thread-Topic: [dpdk-dev] Compilation of MLX5 driver Thread-Index: AdP4DG7NqOzxpIqzRGyCR+PXlOp1JwAC084AAAduypAAGmE0sAADdGTAAAJW9wAAAli0QAABaEaAAAPZXQAGSjAsMAABFo7wAAMHxSAAAD0ysAAjHR7A Date: Tue, 3 Jul 2018 07:00:43 +0000 Message-ID: References: <20180530131138.zddukh767vvogwj7@laranjeiro-vm.dev.6wind.com> <20180531080542.pltmeyhuedp3m7mr@laranjeiro-vm.dev.6wind.com> <20180531095311.mlnu77yfh4cbf7cs@laranjeiro-vm.dev.6wind.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=AsafSi@Radware.com; x-originating-ip: [192.115.180.11] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR01MB1844; 7:5YOcfPoD3PaEWdaSQDhe914hb2rmFrpSRJL9D2eWQzCFbYgdLiwmjx8OE4UGOKbhiwiZ8qbP574910Yd+ECNn2NhnoginJkn5Oi8j/HWs5LYomoX4hfQuQV85z5WYapkHtNG+ylrEYzKnKNvH9rmFtSRjJ+h4rLp7s2GI8TPvQYHp7ESddxS48UtDqRmOdBmbM3gsCTQ7jHWwQF7EkeUxvpDCcfgvg6EX5LaQMDd2crEJazra1y++haqpYQhAz1Y x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 1be8d1f0-3eda-4d16-30d6-08d5e0b2b225 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM4PR01MB1844; x-ms-traffictypediagnostic: AM4PR01MB1844: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(37575265505322); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM4PR01MB1844; BCL:0; PCL:0; RULEID:; SRVR:AM4PR01MB1844; x-forefront-prvs: 0722981D2A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(346002)(366004)(396003)(136003)(376002)(189003)(199004)(13464003)(72206003)(55016002)(14454004)(66066001)(478600001)(68736007)(80792005)(2906002)(86362001)(5660300001)(6916009)(256004)(25786009)(97736004)(53936002)(53546011)(6246003)(102836004)(186003)(99286004)(14444005)(6506007)(9686003)(74316002)(8676002)(7736002)(305945005)(7696005)(8936002)(33656002)(4326008)(76176011)(5250100002)(11346002)(476003)(105586002)(486006)(446003)(106356001)(54906003)(93886005)(2900100001)(81156014)(3846002)(81166006)(229853002)(6116002)(6436002)(316002)(26005); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR01MB1844; H:AM4PR01MB1411.eurprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: Radware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: yFTHfAHusQAWd0DGEHQI340JoTWVorkiZrPdTquPWHoFrFlxt4mqxdELvFco2PMqqWMLEne+sSEj4wNeIEw/FPQ6v9I4WKjoLQ3zH0GxC7caqUfNxB4PYJ1eq9lvEWy1To7qs61YxLTgwZ81cJ64q7vdvEMxrzUPqh0mu1gq1AP+uT2c+AfFnJE7gj9EeeT3kd1+z0OH+vLfy6HBrk8TQEeehJNPQb/peyZv0hvtM00OsIpkCZYd/0OKKmjy2eoudXTwIo5oAVFjNEm5rbA879OR5a+NLPzsDkYktZecq2GFraXnO+LnszR6q/jLjvyK/L0N3ZZfG23My5xfzXA+lQbOzCYljRZ7XtoSqJUgmZw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: radware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1be8d1f0-3eda-4d16-30d6-08d5e0b2b225 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2018 07:00:43.8812 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6ae4e000-b5d0-4f48-a766-402d46119b76 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR01MB1844 Subject: Re: [dpdk-dev] Compilation of MLX5 driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 07:00:45 -0000 Additional questions: Is it possible to use MLNX_OFED-4.3 on Ubuntu 12.04? Why is the driver related to OS version? -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Asaf Sinai Sent: Monday, July 2, 2018 05:22 PM To: Shahaf Shuler Cc: dev@dpdk.org; Nitin Katiyar ; N=E9lio Laran= jeiro Subject: Re: [dpdk-dev] Compilation of MLX5 driver Hi Shahaf, 1. Can you please explain what is the meaning of upstream-libs? 2. We use Ubuntu 12.04. so if we would like to stay with it, and use MLNX_O= FED-4.0, which latest DPDK version should be used? Thanks, Asaf =20 -----Original Message----- From: Shahaf Shuler [mailto:shahafs@mellanox.com] Sent: Monday, July 2, 2018 05:11 PM To: Asaf Sinai Cc: dev@dpdk.org; Nitin Katiyar ; N=E9lio Laran= jeiro Subject: RE: [dpdk-dev] Compilation of MLX5 driver Hi Asaf, Monday, July 2, 2018 3:46 PM, Asaf Sinai: > Subject: RE: [dpdk-dev] Compilation of MLX5 driver >=20 > Additional details: >=20 > Ubuntu: 12.04.3 > Linux: 3.2.0-53-virtual > GCC: 4.7.2 (Ubuntu/Linaro 4.7.2-11precise2) >=20 > I tried to build DPDK 18.05 after installing the Mellanox OFED driver DPDK version 18.05 supports only upstream-libs (rdma-core). =20 > (MLNX_OFED_LINUX-4.0-2.0.0.1-ubuntu12.04-x86_64), but it failed with=20 > the mentioned error. > So I removed the OFED driver and installed the EN driver (mlnx-en-4.0-=20 > 2.0.0.1-ubuntu12.04-x86_64), but it also failed with the same error. > Both drivers were compiled with "--dpdk" argument ("--upstream-libs"=20 > is not supported). Yes MLNX_OFED-4.0 is too old for upstream libs. You should use MLNX_OFED-4.= 2 and above.=20 Or alternatively use an older DPDK version (not recommended).=20 >=20 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Asaf Sinai > Sent: Monday, July 2, 2018 03:20 PM > To: Shahaf Shuler > Cc: dev@dpdk.org; Nitin Katiyar ; N=E9lio=20 > Laranjeiro > Subject: Re: [dpdk-dev] Compilation of MLX5 driver >=20 > Hi Shahaf, >=20 > I face similar problem with DPDK 18.05, where missing file is "mlx5dv.h": >=20 > =3D=3D Build drivers/net/mlx5 > CC mlx5.o > In file included from > /net/emcradware/CM_Users/asafsi/work/drivers/dpdk/dpdk- > 18.05/drivers/net/mlx5/mlx5.h:35:0, > from > /net/emcradware/CM_Users/asafsi/work/drivers/dpdk/dpdk- > 18.05/drivers/net/mlx5/mlx5.c:40: > /net/emcradware/CM_Users/asafsi/work/drivers/dpdk/dpdk- > 18.05/drivers/net/mlx5/mlx5_mr.h:19:31: fatal error: infiniband/mlx5dv.h: > No such file or directory > #include > ^ > compilation terminated. >=20 > Can you please advise? >=20 > Thanks, > Asaf >=20 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Nitin Katiyar > Sent: Thursday, May 31, 2018 02:44 PM > To: N=E9lio Laranjeiro > Cc: Shahaf Shuler ; dev@dpdk.org > Subject: Re: [dpdk-dev] Compilation of MLX5 driver >=20 > Thanks Shahaf, it worked after removing the options you specified. >=20 > Regards, > Nitin >=20 > -----Original Message----- > From: N=E9lio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > Sent: Thursday, May 31, 2018 3:23 PM > To: Nitin Katiyar > Cc: Shahaf Shuler ; dev@dpdk.org > Subject: Re: [dpdk-dev] Compilation of MLX5 driver >=20 > On Thu, May 31, 2018 at 09:14:03AM +0000, Nitin Katiyar wrote: > > Yes,I installed it using --dpdk --upstream-libs. What is the way=20 > > forward now? >=20 > In v17.05 MLX5 PMD is still relying on libibverbs and libmlx5, the way=20 > Those options you used are necessary to select in their package the=20 > installation of > libverbs,libmlx5 or rdma-core. > Doing this you have selected rdma-core which is not supported in > v17.05 DPDK version. >=20 > You need to install Mellanox OFED without those two options to select=20 > libibverbs, libmlx5 to make it work. >=20 > Regards, >=20 > > Regards, > > Nitin > > > > -----Original Message----- > > From: N=E9lio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > > Sent: Thursday, May 31, 2018 1:36 PM > > To: Nitin Katiyar > > Cc: Shahaf Shuler ; dev@dpdk.org > > Subject: Re: [dpdk-dev] Compilation of MLX5 driver > > > > On Thu, May 31, 2018 at 07:01:17AM +0000, Nitin Katiyar wrote: > > > Hi, > > > It has following files: > > > > > > arch.h ib.h kern-abi.h mlx4dv.h mlx5dv.h opcode.h sa.h=20 > > > sa-kern-abi.h verbs.h > > > > > > I tried with both MLNX_OFED_LINUX-4.2-1.0.0.0 and > > > MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu14.04-x86_64 > > > > Did you installed Mellanox OFED with the --dpdk --upstream-libs > arguments for the installation script? > > > > If it is the case, you should not add them for this version, those=20 > > options are > for DPDK v17.11 and higher. > > > > Regards, > > > > > Regards, > > > Nitin > > > > > > -----Original Message----- > > > From: Shahaf Shuler [mailto:shahafs@mellanox.com] > > > Sent: Thursday, May 31, 2018 10:51 AM > > > To: Nitin Katiyar ; N=E9lio Laranjeiro=20 > > > > > > Cc: dev@dpdk.org > > > Subject: RE: [dpdk-dev] Compilation of MLX5 driver > > > > > > Wednesday, May 30, 2018 7:45 PM, Nitin Katiyar: > > > > > > > > Hi, > > > > I was compiling 17.05.02. > > > > Regards, > > > > Nitin > > > > > > > > -----Original Message----- > > > > From: N=E9lio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > > > > Sent: Wednesday, May 30, 2018 6:42 PM > > > > To: Nitin Katiyar > > > > Cc: dev@dpdk.org > > > > Subject: Re: [dpdk-dev] Compilation of MLX5 driver > > > > > > > > Hi, > > > > > > > > On Wed, May 30, 2018 at 11:54:31AM +0000, Nitin Katiyar wrote: > > > > > Hi, > > > > > I am trying to compile MLX5 PMD driver by setting > > > > "CONFIG_RTE_LIBRTE_MLX5_PMD=3Dy" and hitting following compilation= =20 > > > > error. > > > > > > > > > > fatal error: infiniband/mlx5_hw.h: No such file or directory > > > > > > Can you list the files you have under /usr/include/infiniband ? > > > > > > > > > > > > > I have installed MLNX_OFED _LINUX-4.2-1.2.0 on my Ubuntu 14.04=20 > > > > > machine > > > > but still hitting the same error. Am I missing some other package? > > > > > > > > Which version of DPDK are you using (it is important to help)? > > > > > > > > Regards, > > > > > > > > -- > > > > N=E9lio Laranjeiro > > > > 6WIND > > > > -- > > N=E9lio Laranjeiro > > 6WIND >=20 > -- > N=E9lio Laranjeiro > 6WIND