[dpdk-users] Building mlx4 drivers

Michael Sowka msowka at gmail.com
Wed Nov 8 15:27:41 CET 2017


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 at 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
>


More information about the users mailing list