Re: [dpdk-users] MLX5 build errors with DPDK 17.11.3

2018-08-06 Thread Wu, Xiaoban
Hi Morgan,


It only installs the Mellanox OFED drivers. Then, you have to install the DPDK 
separately as usual.


I don't know in detail the purpose of the long options passed to the command.


Best wishes,

Xiaoban


From: Morgan Yang 
Sent: Monday, August 6, 2018 1:56:46 PM
To: Wu, Xiaoban
Cc: users@dpdk.org
Subject: Re: [dpdk-users] MLX5 build errors with DPDK 17.11.3

Hi XiaoBan:

I have not tried it and I have some questions about it.

What does "--updteam-libs --dpdk" actually install? Does it install latest and 
greatest DPDK compatible OFED drivers or it actually installs both ofed drivers 
and Mellanox's modified DPDK?

If i run that command, do I still have to build the drivers from mainline 17.11 
DPDK?

Much Thanks
Morgan Yang

On Sun, Aug 5, 2018 at 11:00 AM Wu, Xiaoban 
mailto:xiaoban...@student.uml.edu>> wrote:

Hi Morgan,


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


Best wishes,

Xiaoban


From: users mailto:users-boun...@dpdk.org>> on behalf 
of Morgan Yang mailto:morgan.yang1...@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 

Re: [dpdk-users] Drop_Packet

2018-08-06 Thread Andrew Bainbridge
That's quite a broad question. A simple way is to not process packets you 
receive with rte_eth_rx_burst()! If you want the hardware to drop without the 
CPU seeing the packet, maybe you can setup a flow rule with a drop action. See 
https://doc.dpdk.org/guides/prog_guide/rte_flow.html.


From: users  on behalf of Konstantinos Schoinas 

Sent: 04 August 2018 12:06
To: users@dpdk.org
Subject: [dpdk-users] Drop_Packet

Hello,

How can i drop packets using dpdk? Is there any function that can help ?

Thanks for your time