DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Narcisa Ana Maria Vasile <Narcisa.Vasile@microsoft.com>
Cc: "users@dpdk.org" <users@dpdk.org>,
	"Kevin Daniel (WIPRO LIMITED)" <v-kevdan@microsoft.com>,
	Omar Cardona <ocardona@microsoft.com>
Subject: Re: [dpdk-users] Running Pktgen with Mellanox CX5
Date: Thu, 8 Apr 2021 21:12:11 +0000	[thread overview]
Message-ID: <A0EDFAC1-2322-44AF-87F2-62147B95DA7C@intel.com> (raw)
In-Reply-To: <MW2PR2101MB0921DA7C9AAE21DD01962D458E749@MW2PR2101MB0921.namprd21.prod.outlook.com>



> On Apr 8, 2021, at 1:47 PM, Narcisa Ana Maria Vasile <Narcisa.Vasile@microsoft.com> wrote:
> 
> Hi,
>  
> I’m trying to run pktgen (latest ‘master’ branch) with a Mellanox CX5 NIC on Ubuntu 20.04.
> I’ve installed the latest Mellanox drivers (MLNX_OFED_LINUX-5.3-1.0.0.1-ubuntu20.04-x86_64.iso).
> I’ve compiled and installed DPDK successfully (latest ‘main’ branch).
>  
> As you can see below, I’m getting an error message saying “libmlx4.so.1: cannot open shared object file: No such file or directory”.
> I am able to run other DPDK applications such as ‘testpmd’.
>  
> Is pktgen supported with the latest Mellanox drivers on CX5? Thank you!
>  
> --------------
> pktgen -l 1,3,5 -a 04:00.0 -d librte_net_mlx5.so -- -P -m "[3:5].0" -T
>  
> Copyright(c) <2010-2021>, Intel Corporation. All rights reserved. Powered by DPDK
> EAL: Detected 20 lcore(s)
> EAL: Detected 2 NUMA nodes
> EAL: Detected shared linkage of DPDK
> EAL: libmlx4.so.1: cannot open shared object file: No such file or directory
> EAL: FATAL: Cannot init plugins
> EAL: Cannot init plugins

I have not built anything with mlx in a long time. My guess is the libmix4.so.1 is not located in a place the system can pick up. Maybe you need to set LD_LIBRARY_PATH to the path where this library is located. I see you included the DPDK PMD, but you still need to tell applications where to locate the library. Another option is to add it to the /etc/ld.so.conf.d/ file or use pkg-config to locate the libs may help too. In some cases external packages do not store the libs in a standard place for ldconfig to locate or the package does not provide ldconfig configuration files.
>  
> Thank you,
> Narcisa V.


  reply	other threads:[~2021-04-08 21:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08 18:47 Narcisa Ana Maria Vasile
2021-04-08 21:12 ` Wiles, Keith [this message]
2021-04-09  0:08   ` Narcisa Ana Maria Vasile
2021-04-09 14:15     ` Wiles, Keith
2021-04-10  7:01       ` Narcisa Ana Maria Vasile

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=A0EDFAC1-2322-44AF-87F2-62147B95DA7C@intel.com \
    --to=keith.wiles@intel.com \
    --cc=Narcisa.Vasile@microsoft.com \
    --cc=ocardona@microsoft.com \
    --cc=users@dpdk.org \
    --cc=v-kevdan@microsoft.com \
    /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).