DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD
       [not found] <1685797689.496737.1533140869394.ref@mail.yahoo.com>
@ 2018-08-01 16:27 ` amit sehas
  2018-08-03 21:24   ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: amit sehas @ 2018-08-01 16:27 UTC (permalink / raw)
  To: users

I am trying to run a dpdk application in docker and i get the above error ... the docker instance was run as below:

docker run -dit --name <name> -v /hostlibpath:/contlibpath:ro fedora:26 bash

i am new to dpdk, as a result i am quite lost as to where to look ...

thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD
  2018-08-01 16:27 ` [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD amit sehas
@ 2018-08-03 21:24   ` Stephen Hemminger
  2018-08-03 22:20     ` amit sehas
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2018-08-03 21:24 UTC (permalink / raw)
  To: amit sehas, maxime.coquelin; +Cc: users

On Wed, 1 Aug 2018 16:27:49 +0000 (UTC)
amit sehas <cun23@yahoo.com> wrote:

> I am trying to run a dpdk application in docker and i get the above error ... the docker instance was run as below:
> 
> docker run -dit --name <name> -v /hostlibpath:/contlibpath:ro fedora:26 bash
> 
> i am new to dpdk, as a result i am quite lost as to where to look ...
> 
> thanks

Short answer virtio requires DPDK process to be run as root.

In order for the virtio device to signal the underlying host it may need the in/out instructions.
These CPU instructions are normally privileged (only allowed in kernel) but on Linux there is
is a system call to allow a process with root (really CAP_SYS_RAWIO) to do these from userspace.
See iopl manual page.

The actual answer is more complex. Older versions of virtio (legacy) use in/out but the
current version (modern) can use memory read/write.  Ideally, the DPDK virtio would only
ask for IOPL privilege if it needed it. The problem is that may need it during the negotiation
process. Someone should look into fixing this.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD
  2018-08-03 21:24   ` Stephen Hemminger
@ 2018-08-03 22:20     ` amit sehas
  2018-08-05 14:35       ` amit sehas
  0 siblings, 1 reply; 4+ messages in thread
From: amit sehas @ 2018-08-03 22:20 UTC (permalink / raw)
  To: maxime.coquelin, Stephen Hemminger; +Cc: users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 7102 bytes --]

I tried my best to make iopl work but couldnt, i wrote a small 'c' program that does only iopl()  and even that does not work, neither on the host machine nor on the VM in docker ... i am wondering if this has anything to do with bios settings ...i tried it on different machines too ... root permissions, explicity setting capset ... etc .. i tried them all but still does not work ... quite frustrating how many hours i had to spent trying different things...

thanks
 

    On Friday, August 3, 2018, 2:24:28 PM PDT, Stephen Hemminger <stephen@networkplumber.org> wrote:  
 
 On Wed, 1 Aug 2018 16:27:49 +0000 (UTC)
amit sehas <cun23@yahoo.com> wrote:

> I am trying to run a dpdk application in docker and i get the above error ... the docker instance was run as below:
> 
> docker run -dit --name <name> -v /hostlibpath:/contlibpath:ro fedora:26 bash
> 
> i am new to dpdk, as a result i am quite lost as to where to look ...
> 
> thanks

Short answer virtio requires DPDK process to be run as root.

In order for the virtio device to signal the underlying host it may need the in/out instructions.
These CPU instructions are normally privileged (only allowed in kernel) but on Linux there is
is a system call to allow a process with root (really CAP_SYS_RAWIO) to do these from userspace.
See iopl manual page.

The actual answer is more complex. Older versions of virtio (legacy) use in/out but the
current version (modern) can use memory read/write.  Ideally, the DPDK virtio would only
ask for IOPL privilege if it needed it. The problem is that may need it during the negotiation
process. Someone should look into fixing this.
  
From stephen@networkplumber.org  Sat Aug  4 00:22:00 2018
Return-Path: <stephen@networkplumber.org>
Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com
 [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 90A581B5C4
 for <users@dpdk.org>; Sat,  4 Aug 2018 00:22:00 +0200 (CEST)
Received: by mail-pg1-f195.google.com with SMTP id r5-v6so3466911pgv.0
 for <users@dpdk.org>; Fri, 03 Aug 2018 15:22:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s 150623;
 hÚte:from:to:cc:subject:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=IzosJVJk8sWwKlKVQsTAYzj2g5D1wSpaDcg1w8wi2tQ=;
 b=LjmzFkAk4GqRMXcWb/smm3MdsKAaLu0Q9hWj16wTAezFqMYd6UbcuGyqlG4btYMQ48
 8saFkqr7M3p2l/H4/kliKuccJuo2a/m8Kfc86qkZPtUfC9LD6XGtNEyy+hzjaWwHCMtJ
 QWqWPkDAGIsFzsOve7RBilaVPqetu2d6BgHTJrJCOt0n4azdpujKR4Dc/b4rWvYKz6kS
 XZXOLzm0eOjmCwQrZVcQo5lz6oSqUreTSnZ6GEFfXfhcjr6MsAs6tQlTUm1IHPY+c+TV
 ld0iUtGpx86qhiloDIZjxCWb5PLX99bSB5sffoyTVBYfg9iSvUihgiMaE11zJW/uu9St
 xgyQ=X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d\x1e100.net; s 161025;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=IzosJVJk8sWwKlKVQsTAYzj2g5D1wSpaDcg1w8wi2tQ=;
 b=gRuTD9mG1cuF0rY4C8DMYbVRSteXn7TjuY+AQoUXA18OXRLI3zHuR7wtt0PPXEqXhy
 GC9ty/E282rv3CozwdlZ9XH8bW8at64MfTEN0o6PVHy7LTt4dHj0gzwZ6I+ycFjmXEJW
 /8ZSq+ERE5FiuimPor3r+9MqeR6rFAiqYJTUH7ESYyLOwYrblW0a+sgOafxLCbI2pr+Q
 HLkwID3g5oQx3rvRcKFwyb/CekZTxgjlyDCc28fZVISDkmhvDRd7Yq0of6Lyd+DlpPE5
 mvBE3tNEpHSkSMOBRxepArRsjoeAI9VJBxeoeXXCONNxxxsuUOkexFtw0s2mw37Dr5E3
 jyTQ=X-Gm-Message-State: AOUpUlEJf7+kNwzSi+aJ3F36hkswEGm3si5mS2MqItZq8gEB7XPSbgFH
 9bMA8zgQLWlRM664gmiF4gQbv4IPQf0X-Google-Smtp-Source: AAOMgpeAbw26mzUqm7z7rPtSQqFB0iFsfhcbgKqpshQ9zvWv+6ezbz4GUDt1AeR3ciKOfIiIOUeOqQ=X-Received: by 2002:a63:375b:: with SMTP id
 g27-v6mr5493715pgn.59.1533334919681;
 Fri, 03 Aug 2018 15:21:59 -0700 (PDT)
Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127])
 by smtp.gmail.com with ESMTPSA id h10-v6sm11118033pfj.78.2018.08.03.15.21.59
 (version=TLS1_2 cipherìDHE-RSA-CHACHA20-POLY1305 bits%6/256);
 Fri, 03 Aug 2018 15:21:59 -0700 (PDT)
Date: Fri, 3 Aug 2018 15:21:50 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: amit sehas <cun23@yahoo.com>
Cc: maxime.coquelin@redhat.com, users@dpdk.org
Message-ID: <20180803152150.10c1ecc4@xeon-e3>
In-Reply-To: <607910178.1827758.1533334812223@mail.yahoo.com>
References: <1685797689.496737.1533140869394.ref@mail.yahoo.com>
 <1685797689.496737.1533140869394@mail.yahoo.com>
 <20180803142420.1198b64b@xeon-e3>
 <607910178.1827758.1533334812223@mail.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Subject: Re: [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot
 use virtio PMD
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Aug 2018 22:22:01 -0000

On Fri, 3 Aug 2018 22:20:12 +0000 (UTC)
amit sehas <cun23@yahoo.com> wrote:
What was the error?

Are you running on KVM, what version? Or some other hypervisor like virtualbox?

> I tried my best to make iopl work but couldnt, i wrote a small 'c' program that does only iopl()  and even that does not work, neither on the host machine nor on the VM in docker ... i am wondering if this has anything to do with bios settings ...i tried it on different machines too ... root permissions, explicity setting capset ... etc .. i tried them all but still does not work ... quite frustrating how many hours i had to spent trying different things...
> 
> thanks
>  
> 
>     On Friday, August 3, 2018, 2:24:28 PM PDT, Stephen Hemminger <stephen@networkplumber.org> wrote:  
>  
>  On Wed, 1 Aug 2018 16:27:49 +0000 (UTC)
> amit sehas <cun23@yahoo.com> wrote:
> 
> > I am trying to run a dpdk application in docker and i get the above error ... the docker instance was run as below:
> > 
> > docker run -dit --name <name> -v /hostlibpath:/contlibpath:ro fedora:26 bash
> > 
> > i am new to dpdk, as a result i am quite lost as to where to look ...
> > 
> > thanks  
> 
> Short answer virtio requires DPDK process to be run as root.
> 
> In order for the virtio device to signal the underlying host it may need the in/out instructions.
> These CPU instructions are normally privileged (only allowed in kernel) but on Linux there is
> is a system call to allow a process with root (really CAP_SYS_RAWIO) to do these from userspace.
> See iopl manual page.
> 
> The actual answer is more complex. Older versions of virtio (legacy) use in/out but the
> current version (modern) can use memory read/write.  Ideally, the DPDK virtio would only
> ask for IOPL privilege if it needed it. The problem is that may need it during the negotiation
> process. Someone should look into fixing this.
>   

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD
  2018-08-03 22:20     ` amit sehas
@ 2018-08-05 14:35       ` amit sehas
  0 siblings, 0 replies; 4+ messages in thread
From: amit sehas @ 2018-08-05 14:35 UTC (permalink / raw)
  To: maxime.coquelin, Stephen Hemminger; +Cc: users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 139541 bytes --]

 It didnt even work on fedora 26, without any VMs ...

    On Friday, August 3, 2018, 3:20:12 PM PDT, amit sehas <cun23@yahoo.com> wrote:  
 
 I tried my best to make iopl work but couldnt, i wrote a small 'c' program that does only iopl()  and even that does not work, neither on the host machine nor on the VM in docker ... i am wondering if this has anything to do with bios settings ...i tried it on different machines too ... root permissions, explicity setting capset ... etc .. i tried them all but still does not work ... quite frustrating how many hours i had to spent trying different things...

thanks
 

    On Friday, August 3, 2018, 2:24:28 PM PDT, Stephen Hemminger <stephen@networkplumber.org> wrote:  
 
 On Wed, 1 Aug 2018 16:27:49 +0000 (UTC)
amit sehas <cun23@yahoo.com> wrote:

> I am trying to run a dpdk application in docker and i get the above error ... the docker instance was run as below:
> 
> docker run -dit --name <name> -v /hostlibpath:/contlibpath:ro fedora:26 bash
> 
> i am new to dpdk, as a result i am quite lost as to where to look ...
> 
> thanks

Short answer virtio requires DPDK process to be run as root.

In order for the virtio device to signal the underlying host it may need the in/out instructions.
These CPU instructions are normally privileged (only allowed in kernel) but on Linux there is
is a system call to allow a process with root (really CAP_SYS_RAWIO) to do these from userspace.
See iopl manual page.

The actual answer is more complex. Older versions of virtio (legacy) use in/out but the
current version (modern) can use memory read/write.  Ideally, the DPDK virtio would only
ask for IOPL privilege if it needed it. The problem is that may need it during the negotiation
process. Someone should look into fixing this.
    
From Xiaoban_Wu@student.uml.edu  Sun Aug  5 20:00:28 2018
Return-Path: <Xiaoban_Wu@student.uml.edu>
Received: from NAM01-BN3-obe.outbound.protection.outlook.com
 (mail-bn3nam01on0052.outbound.protection.outlook.com [104.47.33.52])
 by dpdk.org (Postfix) with ESMTP id B09FD1B1EF
 for <users@dpdk.org>; Sun,  5 Aug 2018 20:00:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=studentuml.onmicrosoft.com; s=selector1-student-uml-edu;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=l7vv+vPlDa0MCp4Hjg9iOZOjvkWr3bhUa6lSj33ev88=;
 b=dQhokFjPkbQOoTc2U9fHznaFugcbjWxdp3YHXERK7hiR/DbWEhkDZ2EBpNt2fwLaJS4apJaSssOqI4Btm9fL3nlaF0/7SG4mwpPhSPL7I0zpXMzIonihm3ClhJTg9tXG8Tu/+T0cg2bAhZ7MvGWd/K9GPLZtuXgpbTCD8fS18FMReceived: from DM5PR02MB2523.namprd02.prod.outlook.com (10.168.195.17) by
 DM5PR02MB2556.namprd02.prod.outlook.com (10.168.195.138) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1017.15; Sun, 5 Aug 2018 18:00:23 +0000
Received: from DM5PR02MB2523.namprd02.prod.outlook.com
 ([fe80::ca4:1559:4fe:9453]) by DM5PR02MB2523.namprd02.prod.outlook.com
 ([fe80::ca4:1559:4fe:9453%10]) with mapi id 15.20.1017.019; Sun, 5 Aug 2018
 18:00:23 +0000
From: "Wu, Xiaoban" <Xiaoban_Wu@student.uml.edu>
To: Morgan Yang <morgan.yang1982@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Thread-Topic: [dpdk-users] MLX5 build errors with DPDK 17.11.3
Thread-Index: AQHULKCzPnZfMOkm0k2B0uZ8O33YMaSxctj3
Date: Sun, 5 Aug 2018 18:00:23 +0000
Message-ID: <DM5PR02MB25231829D4FFF310B2F7DC37BC210@DM5PR02MB2523.namprd02.prod.outlook.com>
References: <CAHV_Cwa0yukpNVaKbYVg=jp6pEq-y-pbQ9TxQPPgFBGoiw+teg@mail.gmail.com>
In-Reply-To: <CAHV_Cwa0yukpNVaKbYVg=jp6pEq-y-pbQ9TxQPPgFBGoiw+teg@mail.gmail.com>
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=Xiaoban_Wu@student.uml.edu;
x-originating-ip: [129.63.253.73]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR02MB2556;
 6:u6D+4FO4guf+cVcy8nPUwj7XZtfOS3nEzy9J8kV4UycreYBPZXyjFGVnoyfhGU4YKHkCou1SdED2lIxN9Y00c2TzIniGSCRNgl8XezXit2n77Gdb09qzrqtx/xa0C1grd6dFuTWVqWiIfSdj4WiXWrJGrYaf/ijVUEHzsCDkxYpaAL41z5l8Y5aD7G9XbdzHsFHnibnNIJH/nMeG/utwyB+e4VcHmSj8qxm0Q4Uf1U7nnXz+yeA/Aj2v1dM5GUJt4xL8qhwvgGNMVFGtfB1Z9KItJC/ODQVR05Vt5Lkq6w5FCChYPE2PQ7VaCwNb9l9uzs/Of5IsKPplXxAB0KK3ACpYoqFtqPA/SPyyN8JFZTMm31mZuf2PPkL53WBzoGdZT5L3RxELTAwg2igwYOPAvbo9kfJ5Lu5DQVfwBsA9Wr6/YN+1GRVxFjzUg0hVcPP6WE3f6LdB39+Y9J7uUavmkg==;
 5:fIOKg0WI521+qfInxxqmwjFf077h0acCoiPk7/+Prlk67GPDA1+afcCw6MAxL3fSHvbE++k50yS63hLjcgNeWU8AyDQLWBqJps+Yk5K8aKHVLxtCweEqJx+78gqxkaoNwJoQxWX9qnYBJyYPz63mh1iQ0UCyv4GQF6bywTINggQ=;
 7:brjVCQqSnNMbJwH4b5PjvlAcvgyv6DpKlNvulzxX7cHoaWj2NBem33kAVpK4XBs86OLBps495e9Dn2MKv+3ES3K/y9zRecqigamjvF0wrWzqSmKd9WKzszifyDvF7jzYh5g2yVI+snmnPUbCe6EwCA8kvRUbNr6A830qjOMabih031n7205bd8HbZJyqPcILq/MKZt5MieaAJorZenoMYkqY33G2jQpEQKy3eIfUISKiZI25O7inze432ZfE8gn5
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 360ab339-5c26-402b-7e11-08d5fafd50f9
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);
 SRVR:DM5PR02MB2556;
x-ms-traffictypediagnostic: DM5PR02MB2556:
x-microsoft-antispam-prvs: <DM5PR02MB25560FBD3A8BB31615547EE5BC210@DM5PR02MB2556.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(131327999870524)(85827821059158);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);
 SRVR:DM5PR02MB2556; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB2556;
x-forefront-prvs: 0755F54DD9
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(366004)(39850400004)(396003)(136003)(376002)(346002)(53754006)(189003)(199004)(966005)(72206003)(6306002)(9686003)(6246003)(39060400002)(236005)(55016002)(6116002)(606006)(14454004)(88552002)(86362001)(66066001)(478600001)(53936002)(54896002)(3846002)(33656002)(2906002)(25786009)(6436002)(229853002)(2900100001)(26005)(7736002)(81166006)(316002)(5250100002)(19627405001)(16200700003)(186003)(5024004)(14444005)(256004)(110136005)(53946003)(2501003)(97736004)(75432002)(7696005)(76176011)(8676002)(81156014)(68736007)(53546011)(102836004)(6506007)(6606003)(5660300001)(786003)(99286004)(476003)(74316002)(105586002)(11346002)(486006)(106356001)(8936002)(446003)(559001)(569006);
 DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2556;
 H:DM5PR02MB2523.namprd02.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: student.uml.edu does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: 2CqoTlatDG9xwMHQn20m//z08x/NGREvEhYerxMuO8YibztseUBLoqyO8y58Pgisro8or4DzNCKrTNasvTRulsjuxzoPGBqFBV3zWrACxYcoTNCaeHeT6UbEDrqCyTOmRlp6W5oUakG5VD8hgOq2e0yQV41Pb7sWm+Y2Pmq+wqbSBiXnPOFtY7Nl/a1Uj/S3B2THDextS6JmD0tUz+hPfzzca6CVvIOoZlvvGMvTRGMezD+V7zcpc1puly4KlSefMipY5AGZ5q5vdyUqDBWSZ9tuqda+1hbDPil/2xtARIbqsRfhl4Q0UWBnYIT6FPCE63qTNkQP0PANX/jESa14zxXKdyDvnWnDrx6wO16h4fQspamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-OriginatorOrg: student.uml.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 360ab339-5c26-402b-7e11-08d5fafd50f9
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2018 18:00:23.1638 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4c25b8a6-17f7-46f9-83f0-54734ab81fb1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2556
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: Re: [dpdk-users] MLX5 build errors with DPDK 17.11.3
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/users>,
 <mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/users>,
 <mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Sun, 05 Aug 2018 18:00:28 -0000

Hi Morgan,


Have you tried reinstallation of the latest "mlnxofed" by "./mlnxofedinstall --upstream-libs --dpdk"?


Best wishes,

Xiaoban

________________________________
From: users <users-bounces@dpdk.org> on behalf of Morgan Yang <morgan.yang1982@gmail.com>
Sent: Friday, August 3, 2018 8:42:30 PM
To: users@dpdk.org
Subject: [dpdk-users] MLX5 build errors with DPDK 17.11.3

Hi All:

I'm trying to build DPDK 17.11.3 with MLX5 (MCX456A-ECA). I have been using
Mellanox packaged DPDK packages (most recent MLNX DPDK 16.11
https://community.mellanox.com/docs/DOC-1502) with no issues. My
understanding is Mellanox is no longer packaging their own DPDK and
mainline DPDK should work.

I did enable " CONFIG_RTE_LIBRTE_MLX5_PMD=y" and
"CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=y".

However, I get tons of errors when I run "make install -j
T=x86_64-native-linuxapp-gcc"

I'm doing this from ubuntu 16.04, has anyone run into this issue before and
was able to build MLX5 drivers on Ubuntu 16.04?

Attached are the build errors

Much Thanks
Morgan Yang
-------------- next part --------------
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_rxq_ibv_new’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:567:21: error: storage size of ‘mod’ isn’t known
  struct ibv_wq_attr mod;
                     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:570:31: error: field ‘ibv’ has incomplete type
    struct ibv_cq_init_attr_ex ibv;
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:571:31: error: field ‘mlx5’ has incomplete type
    struct mlx5dv_cq_init_attr mlx5;
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:573:27: error: field ‘wq’ has incomplete type
   struct ibv_wq_init_attr wq;
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:574:20: error: field ‘cq_attr’ has incomplete type
   struct ibv_cq_ex cq_attr;
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:618:3: error: unknown field ‘cqe’ specified in initializer
   .cqe = cqe_n,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:618:10: warning: excess elements in struct initializer
   .cqe = cqe_n,
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:618:10: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:619:3: error: unknown field ‘channel’ specified in initializer
   .channel = tmpl->channel,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:619:14: warning: excess elements in struct initializer
   .channel = tmpl->channel,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:619:14: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:620:3: error: unknown field ‘comp_mask’ specified in initializer
   .comp_mask = 0,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:620:16: warning: excess elements in struct initializer
   .comp_mask = 0,
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:620:16: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:621:2: error: invalid use of undefined type ‘struct ibv_cq_init_attr_ex’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:623:3: error: unknown field ‘comp_mask’ specified in initializer
   .comp_mask = 0,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:623:16: warning: excess elements in struct initializer
   .comp_mask = 0,
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:623:16: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:624:2: error: invalid use of undefined type ‘struct mlx5dv_cq_init_attr’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:627:4: error: ‘MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE’ undeclared (first use in this function)
    MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE;
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:627:4: note: each undeclared identifier is reported only once for each function it appears in
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:628:38: error: ‘MLX5DV_CQE_RES_FORMAT_HASH’ undeclared (first use in this function)
   attr.cq.mlx5.cqe_comp_res_format = MLX5DV_CQE_RES_FORMAT_HASH;
                                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:641:13: warning: implicit declaration of function ‘ibv_cq_ex_to_cq’ [-Wimplicit-function-declaration]
  tmpl->cq = ibv_cq_ex_to_cq(mlx5dv_create_cq(priv->ctx, &attr.cq.ibv,
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:641:2: warning: nested extern declaration of ‘ibv_cq_ex_to_cq’ [-Wnested-externs]
  tmpl->cq = ibv_cq_ex_to_cq(mlx5dv_create_cq(priv->ctx, &attr.cq.ibv,
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:641:29: warning: implicit declaration of function ‘mlx5dv_create_cq’ [-Wimplicit-function-declaration]
  tmpl->cq = ibv_cq_ex_to_cq(mlx5dv_create_cq(priv->ctx, &attr.cq.ibv,
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:641:2: warning: nested extern declaration of ‘mlx5dv_create_cq’ [-Wnested-externs]
  tmpl->cq = ibv_cq_ex_to_cq(mlx5dv_create_cq(priv->ctx, &attr.cq.ibv,
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:654:3: error: unknown field ‘wq_context’ specified in initializer
   .wq_context = NULL, /* Could be useful in the future. */
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:655:3: error: unknown field ‘wq_type’ specified in initializer
   .wq_type = IBV_WQT_RQ,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:655:14: error: ‘IBV_WQT_RQ’ undeclared (first use in this function)
   .wq_type = IBV_WQT_RQ,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:655:14: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:655:14: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:657:3: error: unknown field ‘max_wr’ specified in initializer
   .max_wr = (1 << rxq_data->elts_n) >> rxq_data->sges_n,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:657:13: warning: excess elements in struct initializer
   .max_wr = (1 << rxq_data->elts_n) >> rxq_data->sges_n,
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:657:13: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:659:3: error: unknown field ‘max_sge’ specified in initializer
   .max_sge = 1 << rxq_data->sges_n,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:659:14: warning: excess elements in struct initializer
   .max_sge = 1 << rxq_data->sges_n,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:659:14: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:660:3: error: unknown field ‘pd’ specified in initializer
   .pd = priv->pd,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:660:9: warning: excess elements in struct initializer
   .pd = priv->pd,
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:660:9: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:661:3: error: unknown field ‘cq’ specified in initializer
   .cq = tmpl->cq,
   ^
  PMDINFO rte_eth_kni.o.pmd.c
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:661:9: warning: excess elements in struct initializer
   .cq = tmpl->cq,
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:661:9: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:662:3: error: unknown field ‘comp_mask’ specified in initializer
   .comp_mask =
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:663:4: error: ‘IBV_WQ_FLAGS_CVLAN_STRIPPING’ undeclared (first use in this function)
    IBV_WQ_FLAGS_CVLAN_STRIPPING |
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:663:4: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:663:4: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:665:3: error: unknown field ‘create_flags’ specified in initializer
   .create_flags = (rxq_data->vlan_strip ?
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:665:19: warning: excess elements in struct initializer
   .create_flags = (rxq_data->vlan_strip ?
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:665:19: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:668:2: error: invalid use of undefined type ‘struct ibv_wq_init_attr’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:671:27: error: ‘IBV_WQ_FLAGS_SCATTER_FCS’ undeclared (first use in this function)
   attr.wq.create_flags |= IBV_WQ_FLAGS_SCATTER_FCS;
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:672:24: error: ‘IBV_WQ_INIT_ATTR_FLAGS’ undeclared (first use in this function)
   attr.wq.comp_mask |= IBV_WQ_INIT_ATTR_FLAGS;
                        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:680:13: warning: implicit declaration of function ‘ibv_create_wq’ [-Wimplicit-function-declaration]
  tmpl->wq = ibv_create_wq(priv->ctx, &attr.wq);
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:680:2: warning: nested extern declaration of ‘ibv_create_wq’ [-Wnested-externs]
  tmpl->wq = ibv_create_wq(priv->ctx, &attr.wq);
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:706:3: error: unknown field ‘attr_mask’ specified in initializer
   .attr_mask = IBV_WQ_ATTR_STATE,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:706:16: error: ‘IBV_WQ_ATTR_STATE’ undeclared (first use in this function)
   .attr_mask = IBV_WQ_ATTR_STATE,
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:706:16: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:706:16: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:707:3: error: unknown field ‘wq_state’ specified in initializer
   .wq_state = IBV_WQS_RDY,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:707:15: error: ‘IBV_WQS_RDY’ undeclared (first use in this function)
   .wq_state = IBV_WQS_RDY,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:707:15: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:707:15: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:708:2: error: invalid use of undefined type ‘struct ibv_wq_attr’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:709:8: warning: implicit declaration of function ‘ibv_modify_wq’ [-Wimplicit-function-declaration]
  ret = ibv_modify_wq(tmpl->wq, &mod);
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:709:2: warning: nested extern declaration of ‘ibv_modify_wq’ [-Wnested-externs]
  ret = ibv_modify_wq(tmpl->wq, &mod);
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:719:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  obj.rwq.in = tmpl->wq;
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:760:28: error: ‘struct mlx5dv_cq’ has no member named ‘cq_uar’
  rxq_data->cq_uar = cq_info.cq_uar;
                            ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.h:62:0,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:61:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:778:14: warning: implicit declaration of function ‘ibv_destroy_wq’ [-Wimplicit-function-declaration]
   claim_zero(ibv_destroy_wq(tmpl->wq));
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_utils.h:141:26: note: in definition of macro ‘claim_zero’
 #define claim_zero(...) (__VA_ARGS__)
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:778:3: warning: nested extern declaration of ‘ibv_destroy_wq’ [-Wnested-externs]
   claim_zero(ibv_destroy_wq(tmpl->wq));
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:575:4: warning: variable ‘attr’ set but not used [-Wunused-but-set-variable]
  } attr;
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:567:21: warning: unused variable ‘mod’ [-Wunused-variable]
  struct ibv_wq_attr mod;
                     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_ind_table_ibv_new’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1193:23: warning: implicit declaration of function ‘ibv_create_rwq_ind_table’ [-Wimplicit-function-declaration]
  ind_tbl->ind_table = ibv_create_rwq_ind_table(
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1193:2: warning: nested extern declaration of ‘ibv_create_rwq_ind_table’ [-Wnested-externs]
  ind_tbl->ind_table = ibv_create_rwq_ind_table(
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1196:4: error: unknown field ‘log_ind_tbl_size’ specified in initializer
    .log_ind_tbl_size = wq_n,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1196:24: warning: excess elements in struct initializer
    .log_ind_tbl_size = wq_n,
                        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1196:24: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1197:4: error: unknown field ‘ind_tbl’ specified in initializer
    .ind_tbl = wq,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1197:15: warning: excess elements in struct initializer
    .ind_tbl = wq,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1197:15: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1198:4: error: unknown field ‘comp_mask’ specified in initializer
    .comp_mask = 0,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1198:17: warning: excess elements in struct initializer
    .comp_mask = 0,
                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1198:17: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1199:3: error: invalid use of undefined type ‘struct ibv_rwq_ind_table_init_attr’
   });
   ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.h:62:0,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:61:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_ind_table_ibv_release’:
  CC rte_eth_kni.o.pmd.o
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1278:14: warning: implicit declaration of function ‘ibv_destroy_rwq_ind_table’ [-Wimplicit-function-declaration]
   claim_zero(ibv_destroy_rwq_ind_table(ind_tbl->ind_table));
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_utils.h:141:26: note: in definition of macro ‘claim_zero’
 #define claim_zero(...) (__VA_ARGS__)
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1278:3: warning: nested extern declaration of ‘ibv_destroy_rwq_ind_table’ [-Wnested-externs]
   claim_zero(ibv_destroy_rwq_ind_table(ind_tbl->ind_table));
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c: In function ‘mlx5_hrxq_new’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1358:5: error: ‘IBV_QP_INIT_ATTR_IND_TABLE’ undeclared (first use in this function)
     IBV_QP_INIT_ATTR_IND_TABLE |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1359:5: error: ‘IBV_QP_INIT_ATTR_RX_HASH’ undeclared (first use in this function)
     IBV_QP_INIT_ATTR_RX_HASH,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1360:4: error: unknown field ‘rx_hash_conf’ specified in initializer
    .rx_hash_conf = (struct ibv_rx_hash_conf){
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1361:5: error: unknown field ‘rx_hash_function’ specified in initializer
     .rx_hash_function = IBV_RX_HASH_FUNC_TOEPLITZ,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1361:25: error: ‘IBV_RX_HASH_FUNC_TOEPLITZ’ undeclared (first use in this function)
     .rx_hash_function = IBV_RX_HASH_FUNC_TOEPLITZ,
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1361:25: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1361:25: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1362:5: error: unknown field ‘rx_hash_key_len’ specified in initializer
     .rx_hash_key_len = rss_key_len,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1362:24: warning: excess elements in struct initializer
     .rx_hash_key_len = rss_key_len,
                        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1362:24: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1363:5: error: unknown field ‘rx_hash_key’ specified in initializer
     .rx_hash_key = rss_key,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1363:20: warning: excess elements in struct initializer
     .rx_hash_key = rss_key,
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1363:20: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1364:5: error: unknown field ‘rx_hash_fields_mask’ specified in initializer
     .rx_hash_fields_mask = hash_fields,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1364:28: warning: excess elements in struct initializer
     .rx_hash_fields_mask = hash_fields,
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1364:28: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1366:4: error: unknown field ‘rwq_ind_tbl’ specified in initializer
    .rwq_ind_tbl = ind_tbl->ind_table,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1366:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    .rwq_ind_tbl = ind_tbl->ind_table,
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_rxq.c:1366:19: note: (near initialization for ‘(anonymous).xrcd’)
  PMDINFO em_ethdev.o.pmd.c
  CC em_ethdev.o.pmd.o
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5_rxq.o' failed
make[6]: *** [mlx5_rxq.o] Error 1
make[6]: *** Waiting for unfinished jobs....
  LD rte_eth_kni.o
  LD em_ethdev.o
  PMDINFO vmxnet3_ethdev.o.pmd.c
  CC vmxnet3_ethdev.o.pmd.o
  AR librte_pmd_crypto_scheduler.a
  AR librte_pmd_kni.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c: In function ‘mlx5_vlan_strip_queue_set’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:120:21: error: storage size of ‘mod’ isn’t known
  struct ibv_wq_attr mod;
                     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:122:9: error: ‘IBV_WQ_FLAGS_CVLAN_STRIPPING’ undeclared (first use in this function)
   (on ? IBV_WQ_FLAGS_CVLAN_STRIPPING : 0) |
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:122:9: note: each undeclared identifier is reported only once for each function it appears in
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:146:3: error: unknown field ‘attr_mask’ specified in initializer
   .attr_mask = IBV_WQ_ATTR_FLAGS,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:146:16: error: ‘IBV_WQ_ATTR_FLAGS’ undeclared (first use in this function)
   .attr_mask = IBV_WQ_ATTR_FLAGS,
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:146:16: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:146:16: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:147:3: error: unknown field ‘flags_mask’ specified in initializer
   .flags_mask = IBV_WQ_FLAGS_CVLAN_STRIPPING,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:147:17: warning: excess elements in struct initializer
   .flags_mask = IBV_WQ_FLAGS_CVLAN_STRIPPING,
                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:147:17: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:148:3: error: unknown field ‘flags’ specified in initializer
   .flags = vlan_offloads,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:148:12: warning: excess elements in struct initializer
   .flags = vlan_offloads,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:148:12: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:149:2: error: invalid use of undefined type ‘struct ibv_wq_attr’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:150:8: warning: implicit declaration of function ‘ibv_modify_wq’ [-Wimplicit-function-declaration]
  ret = ibv_modify_wq(rxq_ctrl->ibv->wq, &mod);
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:150:2: warning: nested extern declaration of ‘ibv_modify_wq’ [-Wnested-externs]
  ret = ibv_modify_wq(rxq_ctrl->ibv->wq, &mod);
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_vlan.c:120:21: warning: unused variable ‘mod’ [-Wunused-variable]
  struct ibv_wq_attr mod;
                     ^
  INSTALL-LIB librte_pmd_crypto_scheduler.a
  INSTALL-LIB librte_pmd_kni.a
  LD vmxnet3_ethdev.o
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5_vlan.o' failed
make[6]: *** [mlx5_vlan.o] Error 1
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c: In function ‘mlx5_txq_ibv_new’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:320:30: error: field ‘cq’ has incomplete type
   struct ibv_cq_init_attr_ex cq;
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:322:20: error: field ‘cq_attr’ has incomplete type
   struct ibv_cq_ex cq_attr;
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:325:39: error: ‘MLX5DV_QP_MASK_UAR_MMAP_OFFSET’ undeclared (first use in this function)
  struct mlx5dv_qp qp = { .comp_mask = MLX5DV_QP_MASK_UAR_MMAP_OFFSET };
                                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:325:39: note: each undeclared identifier is reported only once for each function it appears in
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:163:19: error: ‘IBV_RX_HASH_SRC_IPV4’ undeclared here (not in a function)
   .hash_fields = (IBV_RX_HASH_SRC_IPV4 |
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:164:5: error: ‘IBV_RX_HASH_DST_IPV4’ undeclared here (not in a function)
     IBV_RX_HASH_DST_IPV4 |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:165:5: error: ‘IBV_RX_HASH_SRC_PORT_TCP’ undeclared here (not in a function)
     IBV_RX_HASH_SRC_PORT_TCP |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:166:5: error: ‘IBV_RX_HASH_DST_PORT_TCP’ undeclared here (not in a function)
     IBV_RX_HASH_DST_PORT_TCP),
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:344:3: error: unknown field ‘comp_mask’ specified in initializer
   .comp_mask = 0,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:344:16: warning: excess elements in struct initializer
   .comp_mask = 0,
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:344:16: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:174:5: error: ‘IBV_RX_HASH_SRC_PORT_UDP’ undeclared here (not in a function)
     IBV_RX_HASH_SRC_PORT_UDP |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:345:2: error: invalid use of undefined type ‘struct ibv_cq_init_attr_ex’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:175:5: error: ‘IBV_RX_HASH_DST_PORT_UDP’ undeclared here (not in a function)
     IBV_RX_HASH_DST_PORT_UDP),
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:189:19: error: ‘IBV_RX_HASH_SRC_IPV6’ undeclared here (not in a function)
   .hash_fields = (IBV_RX_HASH_SRC_IPV6 |
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:190:5: error: ‘IBV_RX_HASH_DST_IPV6’ undeclared here (not in a function)
     IBV_RX_HASH_DST_IPV6 |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:390:12: error: ‘struct ibv_qp_init_attr_ex’ has no member named ‘max_tso_header’
   attr.init.max_tso_header = txq_ctrl->max_tso_header;
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:391:26: error: ‘IBV_QP_INIT_ATTR_MAX_TSO_HEADER’ undeclared (first use in this function)
   attr.init.comp_mask |= IBV_QP_INIT_ATTR_MAX_TSO_HEADER;
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:369:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv4_ext’
   .dst_sz = sizeof(struct ibv_flow_spec_ipv4_ext),
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:369:13: error: initializer element is not constant
   .dst_sz = sizeof(struct ibv_flow_spec_ipv4_ext),
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:369:13: note: (near initialization for ‘mlx5_flow_items[10].dst_sz’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: error: initializer element is not constant
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:372:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_UDP,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: note: (near initialization for ‘mlx5_flow_items[11].items’)
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:372:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_UDP,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:375:11: error: initializer element is not constant
   .mask = &(const struct rte_flow_item_ipv6){
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:375:11: note: (near initialization for ‘mlx5_flow_items[11].mask’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:397:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv6’
   .dst_sz = sizeof(struct ibv_flow_spec_ipv6),
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:397:13: error: initializer element is not constant
   .dst_sz = sizeof(struct ibv_flow_spec_ipv6),
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:397:13: note: (near initialization for ‘mlx5_flow_items[11].dst_sz’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_txq.c:477:33: error: ‘struct mlx5dv_qp’ has no member named ‘uar_mmap_offset’
   txq_ctrl->uar_mmap_offset = qp.uar_mmap_offset;
                                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: error: initializer element is not constant
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:400:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_VXLAN),
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: note: (near initialization for ‘mlx5_flow_items[13].items’)
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:400:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_VXLAN),
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:402:11: error: initializer element is not constant
   .mask = &(const struct rte_flow_item_udp){
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:402:11: note: (near initialization for ‘mlx5_flow_items[13].mask’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:415:11: error: initializer element is not constant
   .mask = &(const struct rte_flow_item_tcp){
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:415:11: note: (near initialization for ‘mlx5_flow_items[14].mask’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: error: initializer element is not constant
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:427:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_ETH),
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:268:2: note: (near initialization for ‘mlx5_flow_items[16].items’)
  (const enum rte_flow_item_type []){ \
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:427:12: note: in expansion of macro ‘ITEMS’
   .items = ITEMS(RTE_FLOW_ITEM_TYPE_ETH),
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:429:11: error: initializer element is not constant
   .mask = &(const struct rte_flow_item_vxlan){
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:429:11: note: (near initialization for ‘mlx5_flow_items[16].mask’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:435:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_tunnel’
   .dst_sz = sizeof(struct ibv_flow_spec_tunnel),
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:435:13: error: initializer element is not constant
   .dst_sz = sizeof(struct ibv_flow_spec_tunnel),
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:435:13: note: (near initialization for ‘mlx5_flow_items[16].dst_sz’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_convert_items_validate’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:869:20: error: ‘IBV_FLOW_SPEC_INNER’ undeclared (first use in this function)
    parser->inner = IBV_FLOW_SPEC_INNER;
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:869:20: note: each undeclared identifier is reported only once for each function it appears in
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:869:18: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
    parser->inner = IBV_FLOW_SPEC_INNER;
                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:880:11: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_action_drop’
    sizeof(struct ibv_flow_spec_action_drop);
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:879:38: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
   parser->queue[HASH_RXQ_ETH].offset +=
                                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:885:12: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_action_tag’
     sizeof(struct ibv_flow_spec_action_tag);
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:884:28: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
    parser->queue[i].offset +=
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_convert_finalise’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1026:34: error: field ‘ipv4’ has incomplete type
    struct ibv_flow_spec_ipv4_ext ipv4;
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1027:30: error: field ‘ipv6’ has incomplete type
    struct ibv_flow_spec_ipv6 ipv6;
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1037:19: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv4_ext’
     size = sizeof(struct ibv_flow_spec_ipv4_ext);
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1037:10: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     size = sizeof(struct ibv_flow_spec_ipv4_ext);
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1039:6: error: unknown field ‘type’ specified in initializer
      .type = IBV_FLOW_SPEC_IPV4_EXT,
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1039:14: error: ‘IBV_FLOW_SPEC_IPV4_EXT’ undeclared (first use in this function)
      .type = IBV_FLOW_SPEC_IPV4_EXT,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1039:14: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1039:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1040:6: error: unknown field ‘size’ specified in initializer
      .size = size,
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1040:14: warning: excess elements in struct initializer
      .size = size,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1040:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1041:5: error: invalid use of undefined type ‘struct ibv_flow_spec_ipv4_ext’
     };
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1038:5: warning: statement with no effect [-Wunused-value]
     specs.ipv4 = (struct ibv_flow_spec_ipv4_ext){
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1043:19: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv6’
     size = sizeof(struct ibv_flow_spec_ipv6);
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1043:10: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     size = sizeof(struct ibv_flow_spec_ipv6);
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1045:6: error: unknown field ‘type’ specified in initializer
      .type = IBV_FLOW_SPEC_IPV6,
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1045:14: error: ‘IBV_FLOW_SPEC_IPV6’ undeclared (first use in this function)
      .type = IBV_FLOW_SPEC_IPV6,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1045:14: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1045:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1046:6: error: unknown field ‘size’ specified in initializer
      .size = size,
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1046:14: warning: excess elements in struct initializer
      .size = size,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1046:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1047:5: error: invalid use of undefined type ‘struct ibv_flow_spec_ipv6’
     };
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1044:5: warning: statement with no effect [-Wunused-value]
     specs.ipv6 = (struct ibv_flow_spec_ipv6){
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_ipv4’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1375:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv4_ext’
  unsigned int ipv4_size = sizeof(struct ibv_flow_spec_ipv4_ext);
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1375:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  unsigned int ipv4_size = sizeof(struct ibv_flow_spec_ipv4_ext);
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1376:9: error: variable ‘ipv4’ has initializer but incomplete type
  struct ibv_flow_spec_ipv4_ext ipv4 = {
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1377:3: error: unknown field ‘type’ specified in initializer
   .type = parser->inner | IBV_FLOW_SPEC_IPV4_EXT,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1377:27: error: ‘IBV_FLOW_SPEC_IPV4_EXT’ undeclared (first use in this function)
   .type = parser->inner | IBV_FLOW_SPEC_IPV4_EXT,
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1377:25: error: invalid operands to binary | (have  uint32_t {aka unsigned int}’ and ‘const struct mlx5_flow_items *’)
   .type = parser->inner | IBV_FLOW_SPEC_IPV4_EXT,
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1377:11: warning: excess elements in struct initializer
   .type = parser->inner | IBV_FLOW_SPEC_IPV4_EXT,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1377:11: note: (near initialization for ‘ipv4’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1378:3: error: unknown field ‘size’ specified in initializer
   .size = ipv4_size,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1378:11: warning: excess elements in struct initializer
   .size = ipv4_size,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1378:11: note: (near initialization for ‘ipv4’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1376:32: error: storage size of ‘ipv4’ isn’t known
  struct ibv_flow_spec_ipv4_ext ipv4 = {
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1387:7: error: request for member ‘val’ in something not a structure or union
   ipv4.val = (struct ibv_flow_ipv4_ext_filter){
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1388:4: error: unknown field ‘src_ip’ specified in initializer
    .src_ip = spec->hdr.src_addr,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1388:14: warning: excess elements in struct initializer
    .src_ip = spec->hdr.src_addr,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1388:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1389:4: error: unknown field ‘dst_ip’ specified in initializer
    .dst_ip = spec->hdr.dst_addr,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1389:14: warning: excess elements in struct initializer
    .dst_ip = spec->hdr.dst_addr,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1389:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1390:4: error: unknown field ‘proto’ specified in initializer
    .proto = spec->hdr.next_proto_id,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1390:13: warning: excess elements in struct initializer
    .proto = spec->hdr.next_proto_id,
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1390:13: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1391:4: error: unknown field ‘tos’ specified in initializer
    .tos = spec->hdr.type_of_service,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1391:11: warning: excess elements in struct initializer
    .tos = spec->hdr.type_of_service,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1391:11: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1392:3: error: invalid use of undefined type ‘struct ibv_flow_ipv4_ext_filter’
   };
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1387:3: warning: statement with no effect [-Wunused-value]
   ipv4.val = (struct ibv_flow_ipv4_ext_filter){
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1393:7: error: request for member ‘mask’ in something not a structure or union
   ipv4.mask = (struct ibv_flow_ipv4_ext_filter){
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1394:4: error: unknown field ‘src_ip’ specified in initializer
    .src_ip = mask->hdr.src_addr,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1394:14: warning: excess elements in struct initializer
    .src_ip = mask->hdr.src_addr,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1394:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1395:4: error: unknown field ‘dst_ip’ specified in initializer
    .dst_ip = mask->hdr.dst_addr,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1395:14: warning: excess elements in struct initializer
    .dst_ip = mask->hdr.dst_addr,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1395:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1396:4: error: unknown field ‘proto’ specified in initializer
    .proto = mask->hdr.next_proto_id,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1396:13: warning: excess elements in struct initializer
    .proto = mask->hdr.next_proto_id,
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1396:13: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1397:4: error: unknown field ‘tos’ specified in initializer
    .tos = mask->hdr.type_of_service,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1397:11: warning: excess elements in struct initializer
    .tos = mask->hdr.type_of_service,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1397:11: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1398:3: error: invalid use of undefined type ‘struct ibv_flow_ipv4_ext_filter’
   };
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1393:3: warning: statement with no effect [-Wunused-value]
   ipv4.mask = (struct ibv_flow_ipv4_ext_filter){
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1400:7: error: request for member ‘val’ in something not a structure or union
   ipv4.val.src_ip &= ipv4.mask.src_ip;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1400:11: error: request for member ‘src_ip’ in something not a structure or union
   ipv4.val.src_ip &= ipv4.mask.src_ip;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1400:26: error: request for member ‘mask’ in something not a structure or union
   ipv4.val.src_ip &= ipv4.mask.src_ip;
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1400:31: error: request for member ‘src_ip’ in something not a structure or union
   ipv4.val.src_ip &= ipv4.mask.src_ip;
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1400:3: warning: statement with no effect [-Wunused-value]
   ipv4.val.src_ip &= ipv4.mask.src_ip;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1401:7: error: request for member ‘val’ in something not a structure or union
   ipv4.val.dst_ip &= ipv4.mask.dst_ip;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1401:11: error: request for member ‘dst_ip’ in something not a structure or union
   ipv4.val.dst_ip &= ipv4.mask.dst_ip;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1401:26: error: request for member ‘mask’ in something not a structure or union
   ipv4.val.dst_ip &= ipv4.mask.dst_ip;
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1401:31: error: request for member ‘dst_ip’ in something not a structure or union
   ipv4.val.dst_ip &= ipv4.mask.dst_ip;
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1401:3: warning: statement with no effect [-Wunused-value]
   ipv4.val.dst_ip &= ipv4.mask.dst_ip;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1402:7: error: request for member ‘val’ in something not a structure or union
   ipv4.val.proto &= ipv4.mask.proto;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1402:11: error: request for member ‘proto’ in something not a structure or union
   ipv4.val.proto &= ipv4.mask.proto;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1402:25: error: request for member ‘mask’ in something not a structure or union
   ipv4.val.proto &= ipv4.mask.proto;
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1402:30: error: request for member ‘proto’ in something not a structure or union
   ipv4.val.proto &= ipv4.mask.proto;
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1402:3: warning: statement with no effect [-Wunused-value]
   ipv4.val.proto &= ipv4.mask.proto;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1403:7: error: request for member ‘val’ in something not a structure or union
   ipv4.val.tos &= ipv4.mask.tos;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1403:11: error: request for member ‘tos’ in something not a structure or union
   ipv4.val.tos &= ipv4.mask.tos;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1403:23: error: request for member ‘mask’ in something not a structure or union
   ipv4.val.tos &= ipv4.mask.tos;
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1403:28: error: request for member ‘tos’ in something not a structure or union
   ipv4.val.tos &= ipv4.mask.tos;
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1403:3: warning: statement with no effect [-Wunused-value]
   ipv4.val.tos &= ipv4.mask.tos;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1405:32: warning: passing argument 2 of ‘mlx5_flow_create_copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  mlx5_flow_create_copy(parser, &ipv4, ipv4_size);
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1227:1: note: expected ‘void *’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 mlx5_flow_create_copy(struct mlx5_flow_parse *parser, void *src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1376:32: warning: unused variable ‘ipv4’ [-Wunused-variable]
  struct ibv_flow_spec_ipv4_ext ipv4 = {
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_ipv6’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1430:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_ipv6’
  unsigned int ipv6_size = sizeof(struct ibv_flow_spec_ipv6);
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1430:27: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  unsigned int ipv6_size = sizeof(struct ibv_flow_spec_ipv6);
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1431:9: error: variable ‘ipv6’ has initializer but incomplete type
  struct ibv_flow_spec_ipv6 ipv6 = {
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1432:3: error: unknown field ‘type’ specified in initializer
   .type = parser->inner | IBV_FLOW_SPEC_IPV6,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1432:27: error: ‘IBV_FLOW_SPEC_IPV6’ undeclared (first use in this function)
   .type = parser->inner | IBV_FLOW_SPEC_IPV6,
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1432:25: error: invalid operands to binary | (have  uint32_t {aka unsigned int}’ and ‘const struct mlx5_flow_items *’)
   .type = parser->inner | IBV_FLOW_SPEC_IPV6,
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1432:11: warning: excess elements in struct initializer
   .type = parser->inner | IBV_FLOW_SPEC_IPV6,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1432:11: note: (near initialization for ‘ipv6’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1433:3: error: unknown field ‘size’ specified in initializer
   .size = ipv6_size,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1433:11: warning: excess elements in struct initializer
   .size = ipv6_size,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1433:11: note: (near initialization for ‘ipv6’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1431:28: error: storage size of ‘ipv6’ isn’t known
  struct ibv_flow_spec_ipv6 ipv6 = {
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1446:15: error: request for member ‘val’ in something not a structure or union
   memcpy(&ipv6.val.src_ip, spec->hdr.src_addr,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1446:19: error: request for member ‘src_ip’ in something not a structure or union
   memcpy(&ipv6.val.src_ip, spec->hdr.src_addr,
                   ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:22: error: request for member ‘val’ in something not a structure or union
          RTE_DIM(ipv6.val.src_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:26: error: request for member ‘src_ip’ in something not a structure or union
          RTE_DIM(ipv6.val.src_ip));
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:22: error: request for member ‘val’ in something not a structure or union
          RTE_DIM(ipv6.val.src_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:26: error: request for member ‘src_ip’ in something not a structure or union
          RTE_DIM(ipv6.val.src_ip));
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:32: error: invalid operands to binary / (have ‘const struct mlx5_flow_items *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.val.src_ip));
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1446:10: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
   memcpy(&ipv6.val.src_ip, spec->hdr.src_addr,
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘void * restrict’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:20: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast [-Wint-conversion]
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1447:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.val.src_ip));
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘const struct mlx5_flow_items *’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1448:15: error: request for member ‘val’ in something not a structure or union
   memcpy(&ipv6.val.dst_ip, spec->hdr.dst_addr,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1448:19: error: request for member ‘dst_ip’ in something not a structure or union
   memcpy(&ipv6.val.dst_ip, spec->hdr.dst_addr,
                   ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:22: error: request for member ‘val’ in something not a structure or union
          RTE_DIM(ipv6.val.dst_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:26: error: request for member ‘dst_ip’ in something not a structure or union
          RTE_DIM(ipv6.val.dst_ip));
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:22: error: request for member ‘val’ in something not a structure or union
          RTE_DIM(ipv6.val.dst_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:26: error: request for member ‘dst_ip’ in something not a structure or union
          RTE_DIM(ipv6.val.dst_ip));
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:32: error: invalid operands to binary / (have ‘const struct mlx5_flow_items *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.val.dst_ip));
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1448:10: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
   memcpy(&ipv6.val.dst_ip, spec->hdr.dst_addr,
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘void * restrict’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:20: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast [-Wint-conversion]
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1449:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.val.dst_ip));
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘const struct mlx5_flow_items *’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1450:15: error: request for member ‘mask’ in something not a structure or union
   memcpy(&ipv6.mask.src_ip, mask->hdr.src_addr,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1450:20: error: request for member ‘src_ip’ in something not a structure or union
   memcpy(&ipv6.mask.src_ip, mask->hdr.src_addr,
                    ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:22: error: request for member ‘mask’ in something not a structure or union
          RTE_DIM(ipv6.mask.src_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:27: error: request for member ‘src_ip’ in something not a structure or union
          RTE_DIM(ipv6.mask.src_ip));
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:22: error: request for member ‘mask’ in something not a structure or union
          RTE_DIM(ipv6.mask.src_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:27: error: request for member ‘src_ip’ in something not a structure or union
          RTE_DIM(ipv6.mask.src_ip));
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c: In function ‘mlx5_pci_probe’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:921:21: error: ‘struct ibv_device_attr_ex’ has no member named ‘device_cap_flags_ex’
    !!(device_attr_ex.device_cap_flags_ex &
                     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:922:7: error: ‘IBV_DEVICE_RAW_IP_CSUM’ undeclared (first use in this function)
       IBV_DEVICE_RAW_IP_CSUM);
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:922:7: note: each undeclared identifier is reported only once for each function it appears in
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:942:18: error: ‘struct ibv_device_attr_ex’ has no member named ‘rss_caps’
    device_attr_ex.rss_caps.max_rwq_indirection_table_size;
                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:950:42: error: ‘struct ibv_device_attr_ex’ has no member named ‘raw_packet_caps’
   priv->hw_vlan_strip = !!(device_attr_ex.raw_packet_caps &
                                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:951:7: error: ‘IBV_RAW_PACKET_CAP_CVLAN_STRIPPING’ undeclared (first use in this function)
       IBV_RAW_PACKET_CAP_CVLAN_STRIPPING);
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:955:41: error: ‘struct ibv_device_attr_ex’ has no member named ‘raw_packet_caps’
   priv->hw_fcs_strip = !!(device_attr_ex.raw_packet_caps &
                                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:956:6: error: ‘IBV_RAW_PACKET_CAP_SCATTER_FCS’ undeclared (first use in this function)
      IBV_RAW_PACKET_CAP_SCATTER_FCS);
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:967:23: error: ‘struct ibv_device_attr_ex’ has no member named ‘tso_caps’
        (device_attr_ex.tso_caps.max_tso > 0) &&
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:968:23: error: ‘struct ibv_device_attr_ex’ has no member named ‘tso_caps’
        (device_attr_ex.tso_caps.supported_qpts &
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:972:19: error: ‘struct ibv_device_attr_ex’ has no member named ‘tso_caps’
     device_attr_ex.tso_caps.max_tso;
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1067:10: error: variable ‘alctr’ has initializer but incomplete type
   struct mlx5dv_ctx_allocators alctr = {
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1068:4: error: unknown field ‘alloc’ specified in initializer
    .alloc = &mlx5_alloc_verbs_buf,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1068:13: warning: excess elements in struct initializer
    .alloc = &mlx5_alloc_verbs_buf,
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1068:13: note: (near initialization for ‘alctr’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1069:4: error: unknown field ‘free’ specified in initializer
    .free = &mlx5_free_verbs_buf,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1069:12: warning: excess elements in struct initializer
    .free = &mlx5_free_verbs_buf,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1069:12: note: (near initialization for ‘alctr’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1070:4: error: unknown field ‘data’ specified in initializer
    .data = priv,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1070:12: warning: excess elements in struct initializer
    .data = priv,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1070:12: note: (near initialization for ‘alctr’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1067:32: error: storage size of ‘alctr’ isn’t known
   struct mlx5dv_ctx_allocators alctr = {
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1072:3: warning: implicit declaration of function ‘mlx5dv_set_context_attr’ [-Wimplicit-function-declaration]
   mlx5dv_set_context_attr(ctx, MLX5DV_CTX_ATTR_BUF_ALLOCATORS,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1072:3: warning: nested extern declaration of ‘mlx5dv_set_context_attr’ [-Wnested-externs]
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1072:32: error: ‘MLX5DV_CTX_ATTR_BUF_ALLOCATORS’ undeclared (first use in this function)
   mlx5dv_set_context_attr(ctx, MLX5DV_CTX_ATTR_BUF_ALLOCATORS,
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c:1067:32: warning: unused variable ‘alctr’ [-Wunused-variable]
   struct mlx5dv_ctx_allocators alctr = {
                                ^
  AR librte_pmd_ark.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:32: error: invalid operands to binary / (have ‘const struct mlx5_flow_items *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.mask.src_ip));
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1450:10: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
   memcpy(&ipv6.mask.src_ip, mask->hdr.src_addr,
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘void * restrict’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:20: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast [-Wint-conversion]
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1451:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.mask.src_ip));
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘const struct mlx5_flow_items *’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1452:15: error: request for member ‘mask’ in something not a structure or union
   memcpy(&ipv6.mask.dst_ip, mask->hdr.dst_addr,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1452:20: error: request for member ‘dst_ip’ in something not a structure or union
   memcpy(&ipv6.mask.dst_ip, mask->hdr.dst_addr,
                    ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:22: error: request for member ‘mask’ in something not a structure or union
          RTE_DIM(ipv6.mask.dst_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:27: error: request for member ‘dst_ip’ in something not a structure or union
          RTE_DIM(ipv6.mask.dst_ip));
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:22: error: request for member ‘mask’ in something not a structure or union
          RTE_DIM(ipv6.mask.dst_ip));
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:27: error: request for member ‘dst_ip’ in something not a structure or union
          RTE_DIM(ipv6.mask.dst_ip));
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:32: error: invalid operands to binary / (have ‘const struct mlx5_flow_items *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.mask.dst_ip));
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1452:10: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
   memcpy(&ipv6.mask.dst_ip, mask->hdr.dst_addr,
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘void * restrict’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:20: warning: passing argument 3 of ‘memcpy’ makes integer from pointer without a cast [-Wint-conversion]
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1453:10: note: in expansion of macro ‘RTE_DIM’
          RTE_DIM(ipv6.mask.dst_ip));
          ^
In file included from /usr/include/features.h:367:0,
                 from /usr/include/string.h:25,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:35:
/usr/include/x86_64-linux-gnu/bits/string3.h:50:1: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘const struct mlx5_flow_items *’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1456:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.flow_label =
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1456:11: error: request for member ‘flow_label’ in something not a structure or union
   ipv6.val.flow_label =
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1456:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.flow_label =
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1459:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.traffic_class = (vtc_flow_val & IPV6_HDR_TC_MASK) >>
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1459:11: error: request for member ‘traffic_class’ in something not a structure or union
   ipv6.val.traffic_class = (vtc_flow_val & IPV6_HDR_TC_MASK) >>
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1459:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.traffic_class = (vtc_flow_val & IPV6_HDR_TC_MASK) >>
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1461:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.next_hdr = spec->hdr.proto;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1461:11: error: request for member ‘next_hdr’ in something not a structure or union
   ipv6.val.next_hdr = spec->hdr.proto;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1461:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.next_hdr = spec->hdr.proto;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1462:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.hop_limit = spec->hdr.hop_limits;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1462:11: error: request for member ‘hop_limit’ in something not a structure or union
   ipv6.val.hop_limit = spec->hdr.hop_limits;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1462:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.hop_limit = spec->hdr.hop_limits;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1463:7: error: request for member ‘mask’ in something not a structure or union
   ipv6.mask.flow_label =
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1463:12: error: request for member ‘flow_label’ in something not a structure or union
   ipv6.mask.flow_label =
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1463:3: warning: statement with no effect [-Wunused-value]
   ipv6.mask.flow_label =
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1466:7: error: request for member ‘mask’ in something not a structure or union
   ipv6.mask.traffic_class = (vtc_flow_mask & IPV6_HDR_TC_MASK) >>
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1466:12: error: request for member ‘traffic_class’ in something not a structure or union
   ipv6.mask.traffic_class = (vtc_flow_mask & IPV6_HDR_TC_MASK) >>
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1466:3: warning: statement with no effect [-Wunused-value]
   ipv6.mask.traffic_class = (vtc_flow_mask & IPV6_HDR_TC_MASK) >>
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1468:7: error: request for member ‘mask’ in something not a structure or union
   ipv6.mask.next_hdr = mask->hdr.proto;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1468:12: error: request for member ‘next_hdr’ in something not a structure or union
   ipv6.mask.next_hdr = mask->hdr.proto;
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1468:3: warning: statement with no effect [-Wunused-value]
   ipv6.mask.next_hdr = mask->hdr.proto;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1469:7: error: request for member ‘mask’ in something not a structure or union
   ipv6.mask.hop_limit = mask->hdr.hop_limits;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1469:12: error: request for member ‘hop_limit’ in something not a structure or union
   ipv6.mask.hop_limit = mask->hdr.hop_limits;
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1469:3: warning: statement with no effect [-Wunused-value]
   ipv6.mask.hop_limit = mask->hdr.hop_limits;
   ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:47:0:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:31: error: request for member ‘val’ in something not a structure or union
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:35: error: request for member ‘src_ip’ in something not a structure or union
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:31: error: request for member ‘val’ in something not a structure or union
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5_txq.o' failed
make[6]: *** [mlx5_txq.o] Error 1
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:35: error: request for member ‘src_ip’ in something not a structure or union
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/include/rte_common.h:418:32: error: invalid operands to binary / (have ‘const struct mlx5_flow_items *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:19: note: in expansion of macro ‘RTE_DIM’
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1471:17: warning: comparison between pointer and integer
   for (i = 0; i < RTE_DIM(ipv6.val.src_ip); ++i) {
                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:8: error: request for member ‘val’ in something not a structure or union
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:12: error: request for member ‘src_ip’ in something not a structure or union
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:30: error: request for member ‘mask’ in something not a structure or union
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:35: error: request for member ‘src_ip’ in something not a structure or union
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
                                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:23: error: invalid operands to binary & (have  const struct mlx5_flow_items’ and ‘const struct mlx5_flow_items’)
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:23: error: assignment of read-only location ‘<erroneous-expression>[i]’
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1472:4: warning: statement with no effect [-Wunused-value]
    ipv6.val.src_ip[i] &= ipv6.mask.src_ip[i];
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:8: error: request for member ‘val’ in something not a structure or union
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:12: error: request for member ‘dst_ip’ in something not a structure or union
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:30: error: request for member ‘mask’ in something not a structure or union
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:35: error: request for member ‘dst_ip’ in something not a structure or union
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
                                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:23: error: invalid operands to binary & (have  const struct mlx5_flow_items’ and ‘const struct mlx5_flow_items’)
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
                       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:23: error: assignment of read-only location ‘<erroneous-expression>[i]’
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1473:4: warning: statement with no effect [-Wunused-value]
    ipv6.val.dst_ip[i] &= ipv6.mask.dst_ip[i];
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1475:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.flow_label &= ipv6.mask.flow_label;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1475:11: error: request for member ‘flow_label’ in something not a structure or union
   ipv6.val.flow_label &= ipv6.mask.flow_label;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1475:30: error: request for member ‘mask’ in something not a structure or union
   ipv6.val.flow_label &= ipv6.mask.flow_label;
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1475:35: error: request for member ‘flow_label’ in something not a structure or union
   ipv6.val.flow_label &= ipv6.mask.flow_label;
                                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1475:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.flow_label &= ipv6.mask.flow_label;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1476:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.traffic_class &= ipv6.mask.traffic_class;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1476:11: error: request for member ‘traffic_class’ in something not a structure or union
   ipv6.val.traffic_class &= ipv6.mask.traffic_class;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1476:33: error: request for member ‘mask’ in something not a structure or union
   ipv6.val.traffic_class &= ipv6.mask.traffic_class;
                                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1476:38: error: request for member ‘traffic_class’ in something not a structure or union
   ipv6.val.traffic_class &= ipv6.mask.traffic_class;
                                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1476:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.traffic_class &= ipv6.mask.traffic_class;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1477:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.next_hdr &= ipv6.mask.next_hdr;
       ^
  INSTALL-LIB librte_pmd_ark.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1477:11: error: request for member ‘next_hdr’ in something not a structure or union
   ipv6.val.next_hdr &= ipv6.mask.next_hdr;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1477:28: error: request for member ‘mask’ in something not a structure or union
   ipv6.val.next_hdr &= ipv6.mask.next_hdr;
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1477:33: error: request for member ‘next_hdr’ in something not a structure or union
   ipv6.val.next_hdr &= ipv6.mask.next_hdr;
                                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1477:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.next_hdr &= ipv6.mask.next_hdr;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1478:7: error: request for member ‘val’ in something not a structure or union
   ipv6.val.hop_limit &= ipv6.mask.hop_limit;
       ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1478:11: error: request for member ‘hop_limit’ in something not a structure or union
   ipv6.val.hop_limit &= ipv6.mask.hop_limit;
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1478:29: error: request for member ‘mask’ in something not a structure or union
   ipv6.val.hop_limit &= ipv6.mask.hop_limit;
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1478:34: error: request for member ‘hop_limit’ in something not a structure or union
   ipv6.val.hop_limit &= ipv6.mask.hop_limit;
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1478:3: warning: statement with no effect [-Wunused-value]
   ipv6.val.hop_limit &= ipv6.mask.hop_limit;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1480:32: warning: passing argument 2 of ‘mlx5_flow_create_copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  mlx5_flow_create_copy(parser, &ipv6, ipv6_size);
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1227:1: note: expected ‘void *’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 mlx5_flow_create_copy(struct mlx5_flow_parse *parser, void *src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1431:28: warning: unused variable ‘ipv6’ [-Wunused-variable]
  struct ibv_flow_spec_ipv6 ipv6 = {
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_vxlan’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1603:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_tunnel’
  unsigned int size = sizeof(struct ibv_flow_spec_tunnel);
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1603:22: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  unsigned int size = sizeof(struct ibv_flow_spec_tunnel);
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1604:9: error: variable ‘vxlan’ has initializer but incomplete type
  struct ibv_flow_spec_tunnel vxlan = {
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1605:3: error: unknown field ‘type’ specified in initializer
   .type = parser->inner | IBV_FLOW_SPEC_VXLAN_TUNNEL,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1605:27: error: ‘IBV_FLOW_SPEC_VXLAN_TUNNEL’ undeclared (first use in this function)
   .type = parser->inner | IBV_FLOW_SPEC_VXLAN_TUNNEL,
                           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1605:25: error: invalid operands to binary | (have  uint32_t {aka unsigned int}’ and ‘const struct mlx5_flow_items *’)
   .type = parser->inner | IBV_FLOW_SPEC_VXLAN_TUNNEL,
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1605:11: warning: excess elements in struct initializer
   .type = parser->inner | IBV_FLOW_SPEC_VXLAN_TUNNEL,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5.o' failed
make[6]: *** [mlx5.o] Error 1
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1605:11: note: (near initialization for ‘vxlan’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1606:3: error: unknown field ‘size’ specified in initializer
   .size = size,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1606:11: warning: excess elements in struct initializer
   .size = size,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1606:11: note: (near initialization for ‘vxlan’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1604:30: error: storage size of ‘vxlan’ isn’t known
  struct ibv_flow_spec_tunnel vxlan = {
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1614:18: error: ‘IBV_FLOW_SPEC_INNER’ undeclared (first use in this function)
  parser->inner = IBV_FLOW_SPEC_INNER;
                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1614:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  parser->inner = IBV_FLOW_SPEC_INNER;
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1619:8: error: request for member ‘val’ in something not a structure or union
   vxlan.val.tunnel_id = id.vlan_id;
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1619:12: error: request for member ‘tunnel_id’ in something not a structure or union
   vxlan.val.tunnel_id = id.vlan_id;
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1619:3: warning: statement with no effect [-Wunused-value]
   vxlan.val.tunnel_id = id.vlan_id;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1621:8: error: request for member ‘mask’ in something not a structure or union
   vxlan.mask.tunnel_id = id.vlan_id;
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1621:13: error: request for member ‘tunnel_id’ in something not a structure or union
   vxlan.mask.tunnel_id = id.vlan_id;
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1621:3: warning: statement with no effect [-Wunused-value]
   vxlan.mask.tunnel_id = id.vlan_id;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1623:8: error: request for member ‘val’ in something not a structure or union
   vxlan.val.tunnel_id &= vxlan.mask.tunnel_id;
        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1623:12: error: request for member ‘tunnel_id’ in something not a structure or union
   vxlan.val.tunnel_id &= vxlan.mask.tunnel_id;
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1623:31: error: request for member ‘mask’ in something not a structure or union
   vxlan.val.tunnel_id &= vxlan.mask.tunnel_id;
                               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1623:36: error: request for member ‘tunnel_id’ in something not a structure or union
   vxlan.val.tunnel_id &= vxlan.mask.tunnel_id;
                                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1623:3: warning: statement with no effect [-Wunused-value]
   vxlan.val.tunnel_id &= vxlan.mask.tunnel_id;
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1633:12: error: request for member ‘val’ in something not a structure or union
  if (!vxlan.val.tunnel_id)
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1633:16: error: request for member ‘tunnel_id’ in something not a structure or union
  if (!vxlan.val.tunnel_id)
                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1638:32: warning: passing argument 2 of ‘mlx5_flow_create_copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  mlx5_flow_create_copy(parser, &vxlan, size);
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1227:1: note: expected ‘void *’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 mlx5_flow_create_copy(struct mlx5_flow_parse *parser, void *src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1604:30: warning: unused variable ‘vxlan’ [-Wunused-variable]
  struct ibv_flow_spec_tunnel vxlan = {
                              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_flag_mark’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1656:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_action_tag’
  unsigned int size = sizeof(struct ibv_flow_spec_action_tag);
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1656:22: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  unsigned int size = sizeof(struct ibv_flow_spec_action_tag);
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1657:9: error: variable ‘tag’ has initializer but incomplete type
  struct ibv_flow_spec_action_tag tag = {
         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1658:3: error: unknown field ‘type’ specified in initializer
   .type = IBV_FLOW_SPEC_ACTION_TAG,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1658:11: error: ‘IBV_FLOW_SPEC_ACTION_TAG’ undeclared (first use in this function)
   .type = IBV_FLOW_SPEC_ACTION_TAG,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1658:11: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1658:11: note: (near initialization for ‘tag’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1659:3: error: unknown field ‘size’ specified in initializer
   .size = size,
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1659:11: warning: excess elements in struct initializer
   .size = size,
           ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1659:11: note: (near initialization for ‘tag’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1660:3: error: unknown field ‘tag_id’ specified in initializer
   .tag_id = mlx5_flow_mark_set(mark_id),
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1660:13: warning: excess elements in struct initializer
   .tag_id = mlx5_flow_mark_set(mark_id),
             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1660:13: note: (near initialization for ‘tag’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1657:34: error: storage size of ‘tag’ isn’t known
  struct ibv_flow_spec_action_tag tag = {
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1664:32: warning: passing argument 2 of ‘mlx5_flow_create_copy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  mlx5_flow_create_copy(parser, &tag, size);
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1227:1: note: expected ‘void *’ but argument is of type ‘const struct mlx5_flow_items (*)[1]’
 mlx5_flow_create_copy(struct mlx5_flow_parse *parser, void *src,
 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1657:34: warning: unused variable ‘tag’ [-Wunused-variable]
  struct ibv_flow_spec_action_tag tag = {
                                  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_action_queue_drop’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1728:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_action_drop’
  unsigned int size = sizeof(struct ibv_flow_spec_action_drop);
                             ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1728:22: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
  unsigned int size = sizeof(struct ibv_flow_spec_action_drop);
                      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1735:2: error: dereferencing pointer to incomplete type ‘struct ibv_flow_spec_action_drop’
  *drop = (struct ibv_flow_spec_action_drop){
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1736:4: error: unknown field ‘type’ specified in initializer
    .type = IBV_FLOW_SPEC_ACTION_DROP,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1736:12: error: ‘IBV_FLOW_SPEC_ACTION_DROP’ undeclared (first use in this function)
    .type = IBV_FLOW_SPEC_ACTION_DROP,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1736:12: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1736:12: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1737:4: error: unknown field ‘size’ specified in initializer
    .size = size,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1737:12: warning: excess elements in struct initializer
    .size = size,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1737:12: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1738:2: error: invalid use of undefined type ‘struct ibv_flow_spec_action_drop’
  };
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:1735:2: warning: statement with no effect [-Wunused-value]
  *drop = (struct ibv_flow_spec_action_drop){
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_flow_create_drop_queue’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2163:12: warning: implicit declaration of function  ibv_create_wq’ [-Wimplicit-function-declaration]
  fdq->wq = ibv_create_wq(priv->ctx,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2163:2: warning: nested extern declaration of ‘ibv_create_wq’ [-Wnested-externs]
  fdq->wq = ibv_create_wq(priv->ctx,
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2165:4: error: unknown field ‘wq_type’ specified in initializer
    .wq_type = IBV_WQT_RQ,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2165:15: error: ‘IBV_WQT_RQ’ undeclared (first use in this function)
    .wq_type = IBV_WQT_RQ,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2165:15: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2165:15: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2166:4: error: unknown field ‘max_wr’ specified in initializer
    .max_wr = 1,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2166:14: warning: excess elements in struct initializer
    .max_wr = 1,
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2166:14: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2167:4: error: unknown field ‘max_sge’ specified in initializer
    .max_sge = 1,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2167:15: warning: excess elements in struct initializer
    .max_sge = 1,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2167:15: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2168:4: error: unknown field ‘pd’ specified in initializer
    .pd = priv->pd,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2168:10: warning: excess elements in struct initializer
    .pd = priv->pd,
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2168:10: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2169:4: error: unknown field ‘cq’ specified in initializer
    .cq = fdq->cq,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2169:10: warning: excess elements in struct initializer
    .cq = fdq->cq,
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2169:10: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2170:4: error: invalid use of undefined type ‘struct ibv_wq_init_attr’
    });
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2163:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  fdq->wq = ibv_create_wq(priv->ctx,
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2177:19: warning: implicit declaration of function  ibv_create_rwq_ind_table’ [-Wimplicit-function-declaration]
  fdq->ind_table = ibv_create_rwq_ind_table(priv->ctx,
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2177:2: warning: nested extern declaration of ‘ibv_create_rwq_ind_table’ [-Wnested-externs]
  fdq->ind_table = ibv_create_rwq_ind_table(priv->ctx,
  ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2179:4: error: unknown field ‘log_ind_tbl_size’ specified in initializer
    .log_ind_tbl_size = 0,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2179:24: warning: excess elements in struct initializer
    .log_ind_tbl_size = 0,
                        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2179:24: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2180:4: error: unknown field ‘ind_tbl’ specified in initializer
    .ind_tbl = &fdq->wq,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2180:15: warning: excess elements in struct initializer
    .ind_tbl = &fdq->wq,
               ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2180:15: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2181:4: error: unknown field ‘comp_mask’ specified in initializer
    .comp_mask = 0,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2181:17: warning: excess elements in struct initializer
    .comp_mask = 0,
                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2181:17: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2182:4: error: invalid use of undefined type ‘struct ibv_rwq_ind_table_init_attr’
    });
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2177:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  fdq->ind_table = ibv_create_rwq_ind_table(priv->ctx,
                 ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2196:5: error: ‘IBV_QP_INIT_ATTR_IND_TABLE’ undeclared (first use in this function)
     IBV_QP_INIT_ATTR_IND_TABLE |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2195:25: error: invalid operands to binary | (have  int’ and ‘const struct mlx5_flow_items *’)
     IBV_QP_INIT_ATTR_PD |
                         ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2197:5: error: ‘IBV_QP_INIT_ATTR_RX_HASH’ undeclared (first use in this function)
     IBV_QP_INIT_ATTR_RX_HASH,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2196:32: error: invalid operands to binary | (have  const struct mlx5_flow_items *’ and ‘const struct mlx5_flow_items *’)
     IBV_QP_INIT_ATTR_IND_TABLE |
                                ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2195:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
     IBV_QP_INIT_ATTR_PD |
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2195:5: note: (near initialization for ‘(anonymous).comp_mask’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2198:4: error: unknown field ‘rx_hash_conf’ specified in initializer
    .rx_hash_conf = (struct ibv_rx_hash_conf){
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2199:5: error: unknown field ‘rx_hash_function’ specified in initializer
     .rx_hash_function =
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2200:6: error: ‘IBV_RX_HASH_FUNC_TOEPLITZ’ undeclared (first use in this function)
      IBV_RX_HASH_FUNC_TOEPLITZ,
      ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2200:6: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2200:6: note: (near initialization for ‘(anonymous)’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2201:5: error: unknown field ‘rx_hash_key_len’ specified in initializer
     .rx_hash_key_len = rss_hash_default_key_len,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2201:24: warning: excess elements in struct initializer
     .rx_hash_key_len = rss_hash_default_key_len,
                        ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2201:24: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2202:5: error: unknown field ‘rx_hash_key’ specified in initializer
     .rx_hash_key = rss_hash_default_key,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2202:20: warning: excess elements in struct initializer
     .rx_hash_key = rss_hash_default_key,
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2202:20: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2203:5: error: unknown field ‘rx_hash_fields_mask’ specified in initializer
     .rx_hash_fields_mask = 0,
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2203:28: warning: excess elements in struct initializer
     .rx_hash_fields_mask = 0,
                            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2203:28: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2204:5: error: invalid use of undefined type ‘struct ibv_rx_hash_conf’
     },
     ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2198:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    .rx_hash_conf = (struct ibv_rx_hash_conf){
                    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2198:20: note: (near initialization for ‘(anonymous).pd’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2205:4: error: unknown field ‘rwq_ind_tbl’ specified in initializer
    .rwq_ind_tbl = fdq->ind_table,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2205:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    .rwq_ind_tbl = fdq->ind_table,
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2205:19: note: (near initialization for ‘(anonymous).xrcd’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2206:10: warning: initialized field overwritten [-Woverride-init]
    .pd = priv->pd
          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2206:10: note: (near initialization for ‘(anonymous).pd’)
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.h:62:0,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:54:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2220:14: warning: implicit declaration of function  ibv_destroy_rwq_ind_table’ [-Wimplicit-function-declaration]
   claim_zero(ibv_destroy_rwq_ind_table(fdq->ind_table));
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_utils.h:141:26: note: in definition of macro ‘claim_zero’
 #define claim_zero(...) (__VA_ARGS__)
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2220:3: warning: nested extern declaration of ‘ibv_destroy_rwq_ind_table’ [-Wnested-externs]
   claim_zero(ibv_destroy_rwq_ind_table(fdq->ind_table));
   ^
In file included from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.h:62:0,
                 from /home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:54:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2222:14: warning: implicit declaration of function  ibv_destroy_wq’ [-Wimplicit-function-declaration]
   claim_zero(ibv_destroy_wq(fdq->wq));
              ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_utils.h:141:26: note: in definition of macro ‘claim_zero’
 #define claim_zero(...) (__VA_ARGS__)
                          ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2222:3: warning: nested extern declaration of ‘ibv_destroy_wq’ [-Wnested-externs]
   claim_zero(ibv_destroy_wq(fdq->wq));
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c: In function ‘mlx5_fdir_filter_delete’:
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2948:3: error: dereferencing pointer to incomplete type ‘struct ibv_flow_spec_action_drop’
   *drop = (struct ibv_flow_spec_action_drop){
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2949:4: error: unknown field ‘type’ specified in initializer
    .type = IBV_FLOW_SPEC_ACTION_DROP,
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2949:12: error: ‘IBV_FLOW_SPEC_ACTION_DROP’ undeclared (first use in this function)
    .type = IBV_FLOW_SPEC_ACTION_DROP,
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2949:12: warning: excess elements in struct initializer
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2949:12: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2950:4: error: unknown field ‘size’ specified in initializer
    .size = sizeof(struct ibv_flow_spec_action_drop),
    ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2950:19: error: invalid application of ‘sizeof’ to incomplete type ‘struct ibv_flow_spec_action_drop’
    .size = sizeof(struct ibv_flow_spec_action_drop),
                   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2950:12: warning: excess elements in struct initializer
    .size = sizeof(struct ibv_flow_spec_action_drop),
            ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2950:12: note: (near initialization for ‘(anonymous ’)
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2951:3: error: invalid use of undefined type ‘struct ibv_flow_spec_action_drop’
   };
   ^
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5_flow.c:2948:3: warning: statement with no effect [-Wunused-value]
   *drop = (struct ibv_flow_spec_action_drop){
   ^
  AR librte_pmd_thunderx_nicvf.a
  INSTALL-LIB librte_pmd_thunderx_nicvf.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx5_flow.o' failed
make[6]: *** [mlx5_flow.o] Error 1
  PMDINFO cxgbe_ethdev.o.pmd.c
  CC cxgbe_ethdev.o.pmd.o
  PMDINFO lio_ethdev.o.pmd.c
  CC lio_ethdev.o.pmd.o
  LD cxgbe_ethdev.o
  AR librte_pmd_failsafe.a
  LD lio_ethdev.o
  INSTALL-LIB librte_pmd_failsafe.a
  PMDINFO virtio_ethdev.o.pmd.c
  PMDINFO rte_eth_vhost.o.pmd.c
  CC virtio_ethdev.o.pmd.o
  CC rte_eth_vhost.o.pmd.o
  LD virtio_ethdev.o
  LD rte_eth_vhost.o
  PMDINFO rte_eth_ring.o.pmd.c
  CC rte_eth_ring.o.pmd.o
  PMDINFO rte_eth_null.o.pmd.c
  CC rte_eth_null.o.pmd.o
  LD rte_eth_ring.o
  LD rte_eth_null.o
  AR librte_pmd_vhost.a
  INSTALL-LIB librte_pmd_vhost.a
  AR librte_pmd_ring.a
  AR librte_pmd_null.a
  INSTALL-LIB librte_pmd_ring.a
  INSTALL-LIB librte_pmd_null.a
  AR librte_pmd_softnic.a
  PMDINFO sfc_ethdev.o.pmd.c
  PMDINFO nfp_net.o.pmd.c
  CC sfc_ethdev.o.pmd.o
  CC nfp_net.o.pmd.o
  INSTALL-LIB librte_pmd_softnic.a
  LD sfc_ethdev.o
  LD nfp_net.o
  PMDINFO ena_ethdev.o.pmd.c
  CC ena_ethdev.o.pmd.o
  LD ena_ethdev.o
  PMDINFO rte_eth_af_packet.o.pmd.c
  PMDINFO i40e_ethdev_vf.o.pmd.c
  CC rte_eth_af_packet.o.pmd.o
  AR librte_pmd_ena.a
  CC i40e_ethdev_vf.o.pmd.o
  AR librte_pmd_nfp.a
  PMDINFO bnxt_ethdev.o.pmd.c
  CC bnxt_ethdev.o.pmd.o
  INSTALL-LIB librte_pmd_ena.a
  INSTALL-LIB librte_pmd_nfp.a
  AR librte_pmd_sfc_efx.a
  LD rte_eth_af_packet.o
  INSTALL-LIB librte_pmd_sfc_efx.a
  LD i40e_ethdev_vf.o
  LD bnxt_ethdev.o
  AR librte_pmd_af_packet.a
  INSTALL-LIB librte_pmd_af_packet.a
  AR librte_pmd_enic.a
  PMDINFO qede_ethdev.o.pmd.c
  INSTALL-LIB librte_pmd_enic.a
  CC qede_ethdev.o.pmd.o
  PMDINFO avp_ethdev.o.pmd.c
  AR librte_pmd_lio.a
  CC avp_ethdev.o.pmd.o
  LD qede_ethdev.o
  INSTALL-LIB librte_pmd_lio.a
  LD avp_ethdev.o
  AR librte_pmd_avp.a
  INSTALL-LIB librte_pmd_avp.a
  AR librte_pmd_vmxnet3_uio.a
  INSTALL-LIB librte_pmd_vmxnet3_uio.a
  PMDINFO rte_eth_bond_pmd.o.pmd.c
  CC rte_eth_bond_pmd.o.pmd.o
  LD rte_eth_bond_pmd.o
  PMDINFO rte_eth_tap.o.pmd.c
  CC rte_eth_tap.o.pmd.o
  AR librte_pmd_bond.a
  INSTALL-LIB librte_pmd_bond.a
  LD rte_eth_tap.o
  AR librte_pmd_tap.a
  INSTALL-LIB librte_pmd_tap.a
  AR librte_pmd_bnxt.a
  INSTALL-LIB librte_pmd_bnxt.a
  AR librte_pmd_cxgbe.a
  AR librte_pmd_virtio.a
  INSTALL-LIB librte_pmd_cxgbe.a
  INSTALL-LIB librte_pmd_virtio.a
  PMDINFO igb_ethdev.o.pmd.c
  CC igb_ethdev.o.pmd.o
  LD igb_ethdev.o
  AR librte_pmd_e1000.a
  INSTALL-LIB librte_pmd_e1000.a
  AR librte_pmd_qede.a
  INSTALL-LIB librte_pmd_qede.a
  PMDINFO ixgbe_ethdev.o.pmd.c
  CC ixgbe_ethdev.o.pmd.o
  LD ixgbe_ethdev.o
  AR librte_pmd_ixgbe.a
  INSTALL-LIB librte_pmd_ixgbe.a
  PMDINFO fm10k_ethdev.o.pmd.c
  CC fm10k_ethdev.o.pmd.o
  LD fm10k_ethdev.o
  AR librte_pmd_fm10k.a
  INSTALL-LIB librte_pmd_fm10k.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.subdir.mk:63: recipe for target 'mlx5' failed
make[5]: *** [mlx5] Error 2
make[5]: *** Waiting for unfinished jobs....
  PMDINFO i40e_ethdev.o.pmd.c
  CC i40e_ethdev.o.pmd.o
  LD i40e_ethdev.o
  AR librte_pmd_i40e.a
  INSTALL-LIB librte_pmd_i40e.a
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.subdir.mk:63: recipe for target 'net' failed
make[4]: *** [net] Error 2
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.sdkbuild.mk:76: recipe for target 'drivers' failed
make[3]: *** [drivers] Error 2
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.sdkroot.mk:128: recipe for target 'all' failed
make[2]: *** [all] Error 2
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
make[1]: *** [pre_install] Error 2
/home/apcon/working/mellanox/DPDK/dpdk-stable-17.11.3/mk/rte.sdkroot.mk:107: recipe for target 'install' failed
make: *** [install] Error 2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-05 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1685797689.496737.1533140869394.ref@mail.yahoo.com>
2018-08-01 16:27 ` [dpdk-users] rte_virtio_pmd_init(): IOPL call failed - cannot use virtio PMD amit sehas
2018-08-03 21:24   ` Stephen Hemminger
2018-08-03 22:20     ` amit sehas
2018-08-05 14:35       ` amit sehas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).