DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Problems compiling DPDK for MLX4
@ 2018-10-11 15:57 Anthony Hart
  2018-10-11 19:11 ` Cliff Burdick
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Hart @ 2018-10-11 15:57 UTC (permalink / raw)
  To: users


Having problems compiling DPDK for the Mellanox PMD.

For dpdk-18-08 I get...

  CC efx_phy.o
In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_txq.c:35:0:
/root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error: infiniband/mlx4dv.h: No such file or directory
 #include <infiniband/mlx4dv.h>
                               ^
compilation terminated.
In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_intr.c:32:0:
/root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error: infiniband/mlx4dv.h: No such file or directory
 #include <infiniband/mlx4dv.h>


For dpdk-1711.3

  CC mlx5.o
/root/th/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c: In function ‘mlx5_pci_probe’:
/root/th/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 &
                     ^
/root/th/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);
       ^
/root/th/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
/root/th/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;
                  ^


This is on Lentos 7.5 (3.10.0-862.14.4.el7.x86_64)

With mlnx-en-4.4-1.0.1.0-rhel7.5-x86_64.iso installed


Any thoughts?

thanks
—
tony

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

* Re: [dpdk-users] Problems compiling DPDK for MLX4
  2018-10-11 15:57 [dpdk-users] Problems compiling DPDK for MLX4 Anthony Hart
@ 2018-10-11 19:11 ` Cliff Burdick
  2018-10-11 20:12   ` Stephen Hemminger
  2018-10-11 20:21   ` Anthony Hart
  0 siblings, 2 replies; 4+ messages in thread
From: Cliff Burdick @ 2018-10-11 19:11 UTC (permalink / raw)
  To: ahart; +Cc: users

The easy workaround is to install the mellanox OFED package with the flags
--dpdk --upstream-libs.

On Thu, Oct 11, 2018 at 8:57 AM Anthony Hart <ahart@domainhart.com> wrote:

>
> Having problems compiling DPDK for the Mellanox PMD.
>
> For dpdk-18-08 I get...
>
>   CC efx_phy.o
> In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_txq.c:35:0:
> /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error:
> infiniband/mlx4dv.h: No such file or directory
>  #include <infiniband/mlx4dv.h>
>                                ^
> compilation terminated.
> In file included from
> /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_intr.c:32:0:
> /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error:
> infiniband/mlx4dv.h: No such file or directory
>  #include <infiniband/mlx4dv.h>
>
>
> For dpdk-1711.3
>
>   CC mlx5.o
> /root/th/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c: In function
> ‘mlx5_pci_probe’:
> /root/th/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 &
>                      ^
> /root/th/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);
>        ^
> /root/th/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
> /root/th/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;
>                   ^
>
>
> This is on Lentos 7.5 (3.10.0-862.14.4.el7.x86_64)
>
> With mlnx-en-4.4-1.0.1.0-rhel7.5-x86_64.iso installed
>
>
> Any thoughts?
>
> thanks
> —
> tony
>
>
>

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

* Re: [dpdk-users] Problems compiling DPDK for MLX4
  2018-10-11 19:11 ` Cliff Burdick
@ 2018-10-11 20:12   ` Stephen Hemminger
  2018-10-11 20:21   ` Anthony Hart
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2018-10-11 20:12 UTC (permalink / raw)
  To: Cliff Burdick; +Cc: ahart, users

On Thu, 11 Oct 2018 12:11:01 -0700
Cliff Burdick <shaklee3@gmail.com> wrote:

> The easy workaround is to install the mellanox OFED package with the flags
> --dpdk --upstream-libs.
> 
> On Thu, Oct 11, 2018 at 8:57 AM Anthony Hart <ahart@domainhart.com> wrote:
> 
> >
> > Having problems compiling DPDK for the Mellanox PMD.
> >
> > For dpdk-18-08 I get...
> >
> >   CC efx_phy.o
> > In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_txq.c:35:0:
> > /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error:
> > infiniband/mlx4dv.h: No such file or directory
> >  #include <infiniband/mlx4dv.h>
> >                                ^
> > compilation terminated.
> > In file included from
> > /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_intr.c:32:0:
> > /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error:
> > infiniband/mlx4dv.h: No such file or directory
> >  #include <infiniband/mlx4dv.h>
> >
> >
> > For dpdk-1711.3
> >
> >   CC mlx5.o
> > /root/th/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c: In function
> > ‘mlx5_pci_probe’:
> > /root/th/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 &
> >                      ^
> > /root/th/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);
> >        ^
> > /root/th/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
> > /root/th/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;
> >                   ^
> >
> >
> > This is on Lentos 7.5 (3.10.0-862.14.4.el7.x86_64)

Current Mellanox drivers want to use rdma-core 18.0 and kernel 4.14.41 or above.
or OFED 4.3 or 4.4.   

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

* Re: [dpdk-users] Problems compiling DPDK for MLX4
  2018-10-11 19:11 ` Cliff Burdick
  2018-10-11 20:12   ` Stephen Hemminger
@ 2018-10-11 20:21   ` Anthony Hart
  1 sibling, 0 replies; 4+ messages in thread
From: Anthony Hart @ 2018-10-11 20:21 UTC (permalink / raw)
  To: Cliff Burdick; +Cc: users

Thanks I will try that

> On Oct 11, 2018, at 3:11 PM, Cliff Burdick <shaklee3@gmail.com> wrote:
> 
> The easy workaround is to install the mellanox OFED package with the flags --dpdk --upstream-libs.
> 
> On Thu, Oct 11, 2018 at 8:57 AM Anthony Hart <ahart@domainhart.com <mailto:ahart@domainhart.com>> wrote:
> 
> Having problems compiling DPDK for the Mellanox PMD.
> 
> For dpdk-18-08 I get...
> 
>   CC efx_phy.o
> In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_txq.c:35:0:
> /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error: infiniband/mlx4dv.h: No such file or directory
>  #include <infiniband/mlx4dv.h>
>                                ^
> compilation terminated.
> In file included from /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_intr.c:32:0:
> /root/th/dpdk-18.08/drivers/net/mlx4/mlx4_glue.h:16:31: fatal error: infiniband/mlx4dv.h: No such file or directory
>  #include <infiniband/mlx4dv.h>
> 
> 
> For dpdk-1711.3
> 
>   CC mlx5.o
> /root/th/dpdk-stable-17.11.3/drivers/net/mlx5/mlx5.c: In function ‘mlx5_pci_probe’:
> /root/th/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 &
>                      ^
> /root/th/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);
>        ^
> /root/th/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
> /root/th/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;
>                   ^
> 
> 
> This is on Lentos 7.5 (3.10.0-862.14.4.el7.x86_64)
> 
> With mlnx-en-4.4-1.0.1.0-rhel7.5-x86_64.iso installed
> 
> 
> Any thoughts?
> 
> thanks
> —
> tony
> 
> 

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

end of thread, other threads:[~2018-10-11 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-11 15:57 [dpdk-users] Problems compiling DPDK for MLX4 Anthony Hart
2018-10-11 19:11 ` Cliff Burdick
2018-10-11 20:12   ` Stephen Hemminger
2018-10-11 20:21   ` Anthony Hart

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