DPDK usage discussions
 help / color / mirror / Atom feed
From: Sebastian Bernauer <sebastian.bernauer@1und1.de>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card
Date: Tue, 7 Jan 2020 15:20:28 +0000	[thread overview]
Message-ID: <1578410429018.705@1und1.de> (raw)
In-Reply-To: <AM4PR05MB34250E714A55025949B8E90CDB3D0@AM4PR05MB3425.eurprd05.prod.outlook.com>

Hi Ori,


thanks for your helpful response!

The command "sudo ./l2fwd -w 04:00.0,dv_flow_en=0 -- -p 0x1" worked perfectly for me. Thanks!

Strangely on another server, exact the same server model and card, the card works with the flow option enabled (,dv_flow_en=1).

ibv_devinfo shows exact the same fw_version vendor_id, board_id etc.


Thanks,

Sebastian

On 05.01.20 08:09, Ori Kam wrote:

Hi Sebastian,

My Name is Ori and I'm part of Mellanox DPDK team.

I'm sorry to hear you encountered some issues.

I will try to help you.
2 questions:
1. Can you tell me if the HAVE_MLX5DV_DR is defined?
2. can you please try adding device parameter ,dv_flow_en=0 and let me know if it works?

Thanks,
Ori Kam




-----Original Message-----
From: users <users-bounces@dpdk.org><mailto:users-bounces@dpdk.org> On Behalf Of Sebastian Bernauer
Sent: Friday, January 3, 2020 5:08 PM
To: users@dpdk.org<mailto:users@dpdk.org>
Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4
card

Sorry for the duplicate post.

I found the line that returns the error.

In drivers/net/mlx5/mlx5_flow_dv.c, starting at line 6358:
-------------------------------
cache_matcher->matcher_object =
         mlx5_glue->dv_create_flow_matcher(sh->ctx, &dv_attr, tbl->obj);
     if (!cache_matcher->matcher_object) {
         rte_free(cache_matcher);
#ifdef HAVE_MLX5DV_DR
         flow_dv_tbl_resource_release(dev, tbl);
#endif
         return rte_flow_error_set(error, ENOMEM,
                       RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
                       NULL, "cannot create matcher");
     }
-------------------------------
mlx5_glue->dv_create_flow_matcher(...) returns (void *) 0x0.
Because of this, the if-statement is fulfilled and returns the error.

Do you have an idea why the matcher can't be created?

Thanks!
Sebastian

On 03.01.20 11:40, Sebastian Bernauer wrote:


Hello DPDK team,

I have 2 Mellanox ConnectX-4 MCX415A-CCAT cards connected with DAC


(firmware 12.26.4012). Im using debian stretch and DPDK 19.11.


If i try to start DPDK-applications i get the following error:

sbernauer@he37:~$ lspci | grep Mellanox
04:00.0 Ethernet controller: Mellanox Technologies MT27700 Family


[ConnectX-4]


42:00.0 Network controller: Mellanox Technologies MT27500 Family


[ConnectX-3]


sbernauer@he37:~$ sudo dpdk-19.11/examples/l2fwd/build/app/l2fwd -w


04:00.0 -- -p 0x1


EAL: Detected 40 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1013 net_mlx5
MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 0: RX port 0
Initializing port 0... EAL: Error - exiting with code: 1
   Cause: rte_eth_dev_start:err=-12, port=0

I can't find a description of the error code -12, can you please give my a hint


whats my problem?


Thanks a lot!
Sebastian


  reply	other threads:[~2020-01-07 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-03 10:40 Sebastian Bernauer
2020-01-03 15:08 ` Sebastian Bernauer
2020-01-05  7:09   ` Ori Kam
2020-01-07 15:20     ` Sebastian Bernauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-03 10:40 Sebastian Bernauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1578410429018.705@1und1.de \
    --to=sebastian.bernauer@1und1.de \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).