From: Christopher Wingert <usenet@wingert.org>
To: users@dpdk.org
Subject: Fwd: DPDK Tip in Docker Container
Date: Wed, 19 Jul 2023 13:05:24 -0700 [thread overview]
Message-ID: <7c277681-c9ff-2494-b820-456d153db36a@wingert.org> (raw)
In-Reply-To: <3594eba5-ba63-a25a-a8af-245303143706@wingert.org>
Answer my own question for future google searches.
Digging through the mlx5 driver source, it looks through the netlink
kernel interface to get details about the hardware. Without access to
the kernel data, DPDK can't init the mlx5 driver.
You need to pass the interface into the container via the ip command
https://stackoverflow.com/questions/60189587/how-to-pass-through-physical-nic-to-docker-container
Thanks!
Chris
On 7/14/2023 12:51 PM, Christopher Wingert wrote:
> Hi,
>
> I am trying to bring up DPDK tip in Ubuntu 22.10/Docker. When I run
> dpdk-testpmd, it doesn't seem to be able to find the Connect X5
> interfaces. I get an error "mlx_net: Unable to recognize
> master/respresentors on the multiple IB devices."
>
> dpdk-testpmd works fine outside docker.
>
> The command line I am using is
> "docker run --privileged --cap-add=ALL -v /sys:/sys -v /dev:/dev"
>
> Thanks!
> Chris
>
parent reply other threads:[~2023-07-19 20:05 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <3594eba5-ba63-a25a-a8af-245303143706@wingert.org>]
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=7c277681-c9ff-2494-b820-456d153db36a@wingert.org \
--to=usenet@wingert.org \
--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).