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: Fri, 3 Jan 2020 15:08:19 +0000	[thread overview]
Message-ID: <1578064099257.15400@1und1.de> (raw)
In-Reply-To: <1578048053580.44338@1und1.de>

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-03 15:08 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 [this message]
2020-01-05  7:09   ` Ori Kam
2020-01-07 15:20     ` Sebastian Bernauer
  -- 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=1578064099257.15400@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).