DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Building mlx4 drivers
@ 2017-11-07 20:49 Michael Sowka
  2017-11-07 21:39 ` Thomas Monjalon
  2017-11-08  6:47 ` Shahaf Shuler
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Sowka @ 2017-11-07 20:49 UTC (permalink / raw)
  To: users

Hello, I am experiencing some early difficulties in building the mlx4
driver for a ConnectX-3 device.

Following the documentation at http://dpdk.org/doc/guides/nics/mlx4.html, I
have installed the MLNX_OFED bundle, enabled
the CONFIG_RTE_LIBRTE_MLX4_PMD=y build option, but fail to build the driver
with:
drivers/net/mlx4/mlx4_rxtx.h:44:31: fatal error: infiniband/mlx4dv.h: No
such file or directory

I'm on an Ubuntu 16.04 system.

Sure enough, neither the MLNX_OFED versions 4.1 or 4.2 include the mlx4dv.h
header. I first tried 4.1 as that's what's recommended in the above mlx4
guide, but its other section (CONFIG_RTE_LIBRTE_MLX4_DEBUG_BROKEN_VERBS
option) alludes to possiblity of using 4.2.

Again, i'm sticking with docs to not install anything outside of what
MLNX_OFED provides in its packages, but where is that pesky mlx4dv.h header?

Thanks,
Mike

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

* Re: [dpdk-users] Building mlx4 drivers
  2017-11-07 20:49 [dpdk-users] Building mlx4 drivers Michael Sowka
@ 2017-11-07 21:39 ` Thomas Monjalon
  2017-11-08  6:47 ` Shahaf Shuler
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2017-11-07 21:39 UTC (permalink / raw)
  To: Michael Sowka; +Cc: users

Hi,

07/11/2017 21:49, Michael Sowka:
> Hello, I am experiencing some early difficulties in building the mlx4
> driver for a ConnectX-3 device.

Which version of DPDK?

[...]
> Again, i'm sticking with docs to not install anything outside of what
> MLNX_OFED provides in its packages, but where is that pesky mlx4dv.h header?

If you are compiling DPDK 17.11, the doc is not updated yet unfortunately.
You should try rdma-core and upstream kernel instead of MLNX_OFED.

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

* Re: [dpdk-users] Building mlx4 drivers
  2017-11-07 20:49 [dpdk-users] Building mlx4 drivers Michael Sowka
  2017-11-07 21:39 ` Thomas Monjalon
@ 2017-11-08  6:47 ` Shahaf Shuler
  2017-11-08 14:27   ` Michael Sowka
  1 sibling, 1 reply; 5+ messages in thread
From: Shahaf Shuler @ 2017-11-08  6:47 UTC (permalink / raw)
  To: Michael Sowka, users, Thomas Monjalon

Hi Mike 

November 7, 2017 10:50 PM, Michael Sowka:
> 
> Hello, I am experiencing some early difficulties in building the mlx4 driver for
> a ConnectX-3 device.
> 
> Following the documentation at
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdpd
> k.org%2Fdoc%2Fguides%2Fnics%2Fmlx4.html&data=02%7C01%7Cshahafs%4
> 0mellanox.com%7Ccdee63ffb7524200bd2608d526211428%7Ca652971c7d2e4
> d9ba6a4d149256f461b%7C0%7C0%7C636456845870494743&sdata=qkTlfolUR
> O583sGeycJbrbOHDNETVRlmPNNc2MPihh4%3D&reserved=0, I have
> installed the MLNX_OFED bundle, enabled the
> CONFIG_RTE_LIBRTE_MLX4_PMD=y build option, but fail to build the driver
> with:
> drivers/net/mlx4/mlx4_rxtx.h:44:31: fatal error: infiniband/mlx4dv.h: No
> such file or directory
> 
> I'm on an Ubuntu 16.04 system.
> 
> Sure enough, neither the MLNX_OFED versions 4.1 or 4.2 include the
> mlx4dv.h header. I first tried 4.1 as that's what's recommended in the above
> mlx4 guide, but its other section
> (CONFIG_RTE_LIBRTE_MLX4_DEBUG_BROKEN_VERBS
> option) alludes to possiblity of using 4.2.
> 
> Again, i'm sticking with docs to not install anything outside of what
> MLNX_OFED provides in its packages, but where is that pesky mlx4dv.h
> header?

How did you install the OFED?
In order to install the rdma-core libs of OFED (which includes the mlx4dv.h) you should use the following command:
./mlnxofedinstall --dpdk --upstream-libs

I guess mlx4 guide is not yet updated for this release. The update for this release should include the new OFED and the command line to install it.

> 
> Thanks,
> Mike

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

* Re: [dpdk-users] Building mlx4 drivers
  2017-11-08  6:47 ` Shahaf Shuler
@ 2017-11-08 14:27   ` Michael Sowka
  2017-11-09 18:56     ` Madhan Sivakumar
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Sowka @ 2017-11-08 14:27 UTC (permalink / raw)
  To: Shahaf Shuler; +Cc: users, Thomas Monjalon

Thomas, Shahaf,

I'm working off master, couple commits after 17.11-rc2 tag. As I'm in early
development myself I haven't nailed down to a release yet. I figured the
docs aren't completely updated, and that's why I then ended up installing
OFED 4.2.

I was previously installing with `./mlnxofedinstall --guest`. I assume the
`./mlnxofedinstall --dpdk --upstream-libs` as instructed installs the
rdma-core and upstream libs, ? Should I also include the --guest argument,
as I'm in a HyperV environment, ?

Thank You Both.

Building wihtout a glitch now,
Mike

On Wed, 8 Nov 2017 at 01:47 Shahaf Shuler <shahafs@mellanox.com> wrote:

> Hi Mike
>
> November 7, 2017 10:50 PM, Michael Sowka:
> >
> > Hello, I am experiencing some early difficulties in building the mlx4
> driver for
> > a ConnectX-3 device.
> >
> > Following the documentation at
> > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdpd
> > k.org%2Fdoc%2Fguides%2Fnics%2Fmlx4.html&data=02%7C01%7Cshahafs%4
> > 0mellanox.com%7Ccdee63ffb7524200bd2608d526211428%7Ca652971c7d2e4
> > d9ba6a4d149256f461b%7C0%7C0%7C636456845870494743&sdata=qkTlfolUR
> > O583sGeycJbrbOHDNETVRlmPNNc2MPihh4%3D&reserved=0, I have
> > installed the MLNX_OFED bundle, enabled the
> > CONFIG_RTE_LIBRTE_MLX4_PMD=y build option, but fail to build the driver
> > with:
> > drivers/net/mlx4/mlx4_rxtx.h:44:31: fatal error: infiniband/mlx4dv.h: No
> > such file or directory
> >
> > I'm on an Ubuntu 16.04 system.
> >
> > Sure enough, neither the MLNX_OFED versions 4.1 or 4.2 include the
> > mlx4dv.h header. I first tried 4.1 as that's what's recommended in the
> above
> > mlx4 guide, but its other section
> > (CONFIG_RTE_LIBRTE_MLX4_DEBUG_BROKEN_VERBS
> > option) alludes to possiblity of using 4.2.
> >
> > Again, i'm sticking with docs to not install anything outside of what
> > MLNX_OFED provides in its packages, but where is that pesky mlx4dv.h
> > header?
>
> How did you install the OFED?
> In order to install the rdma-core libs of OFED (which includes the
> mlx4dv.h) you should use the following command:
> ./mlnxofedinstall --dpdk --upstream-libs
>
> I guess mlx4 guide is not yet updated for this release. The update for
> this release should include the new OFED and the command line to install it.
>
> >
> > Thanks,
> > Mike
>

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

* Re: [dpdk-users] Building mlx4 drivers
  2017-11-08 14:27   ` Michael Sowka
@ 2017-11-09 18:56     ` Madhan Sivakumar
  0 siblings, 0 replies; 5+ messages in thread
From: Madhan Sivakumar @ 2017-11-09 18:56 UTC (permalink / raw)
  To: Michael Sowka, Shahaf Shuler; +Cc: users, Thomas Monjalon

Michael, DPDK is still in developer preview on Azure and you will not be able to bring your DPDK application up on an Azure VM without working with us. I will work with you offline to onboard to our developer preview program.

Thanks,
Madhan

-----Original Message-----
From: users [mailto:users-bounces@dpdk.org] On Behalf Of Michael Sowka
Sent: Wednesday, November 8, 2017 6:28 AM
To: Shahaf Shuler <shahafs@mellanox.com>
Cc: users@dpdk.org; Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [dpdk-users] Building mlx4 drivers

Thomas, Shahaf,

I'm working off master, couple commits after 17.11-rc2 tag. As I'm in early development myself I haven't nailed down to a release yet. I figured the docs aren't completely updated, and that's why I then ended up installing OFED 4.2.

I was previously installing with `./mlnxofedinstall --guest`. I assume the `./mlnxofedinstall --dpdk --upstream-libs` as instructed installs the rdma-core and upstream libs, ? Should I also include the --guest argument, as I'm in a HyperV environment, ?

Thank You Both.

Building wihtout a glitch now,
Mike

On Wed, 8 Nov 2017 at 01:47 Shahaf Shuler <shahafs@mellanox.com> wrote:

> Hi Mike
>
> November 7, 2017 10:50 PM, Michael Sowka:
> >
> > Hello, I am experiencing some early difficulties in building the 
> > mlx4
> driver for
> > a ConnectX-3 device.
> >
> > Following the documentation at
> > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdp
> > d
> > k.org%2Fdoc%2Fguides%2Fnics%2Fmlx4.html&data=02%7C01%7Cshahafs%4
> > 0mellanox.com%7Ccdee63ffb7524200bd2608d526211428%7Ca652971c7d2e4
> > d9ba6a4d149256f461b%7C0%7C0%7C636456845870494743&sdata=qkTlfolUR
> > O583sGeycJbrbOHDNETVRlmPNNc2MPihh4%3D&reserved=0, I have installed 
> > the MLNX_OFED bundle, enabled the CONFIG_RTE_LIBRTE_MLX4_PMD=y build 
> > option, but fail to build the driver
> > with:
> > drivers/net/mlx4/mlx4_rxtx.h:44:31: fatal error: 
> > infiniband/mlx4dv.h: No such file or directory
> >
> > I'm on an Ubuntu 16.04 system.
> >
> > Sure enough, neither the MLNX_OFED versions 4.1 or 4.2 include the 
> > mlx4dv.h header. I first tried 4.1 as that's what's recommended in 
> > the
> above
> > mlx4 guide, but its other section
> > (CONFIG_RTE_LIBRTE_MLX4_DEBUG_BROKEN_VERBS
> > option) alludes to possiblity of using 4.2.
> >
> > Again, i'm sticking with docs to not install anything outside of 
> > what MLNX_OFED provides in its packages, but where is that pesky 
> > mlx4dv.h header?
>
> How did you install the OFED?
> In order to install the rdma-core libs of OFED (which includes the
> mlx4dv.h) you should use the following command:
> ./mlnxofedinstall --dpdk --upstream-libs
>
> I guess mlx4 guide is not yet updated for this release. The update for 
> this release should include the new OFED and the command line to install it.
>
> >
> > Thanks,
> > Mike
>

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

end of thread, other threads:[~2017-11-09 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 20:49 [dpdk-users] Building mlx4 drivers Michael Sowka
2017-11-07 21:39 ` Thomas Monjalon
2017-11-08  6:47 ` Shahaf Shuler
2017-11-08 14:27   ` Michael Sowka
2017-11-09 18:56     ` Madhan Sivakumar

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).