DPDK usage discussions
 help / color / mirror / Atom feed
From: Staffan Wiklund <staffan491@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] How to access SR-IOV devices from a DPDK application executing in a Docker container?
Date: Thu, 27 Feb 2020 21:49:52 +0100	[thread overview]
Message-ID: <CAAV4wTh4ua0G1M7-S8mWQJBFJMWJ-b0XRnKUy2bR_HHzcWbfYA@mail.gmail.com> (raw)

Hello

I wonder if you please can help me with a question related to execution of
a DPDK application in a Docker container?

In the DPDK documentation, Programmer's Guide, HowTo Guide, chapter 7, it
says
among other things "There are two use models of running DPDK inside
containers, as shown in Fig. 7.1"
Figure 7.1 shows two use models of running DPDK in a container. The first
use model is
called "slicing" where a DPDK application in a container access an SR-IOV
device directly
without using vSwitch or vRouter.

I wonder if you please can describe how this can be accomplished?
I wonder:

   1. Are there any specific requirements on the container so that it
   contains for example certain device drivers or fulfills any other specific
   requirement?
   2. If the PCI address of the SR-IOV VF device as seen in the host is
   provided to the DPDK application in the container, can this application
   access the SR-IOV VF device?
   3. Is there anything else that is needed to make it possible for a DPDK
   application in a Docker container to communicate via an SR-IOV VF device in
   the host?

Thanks in advance for your help
Staffan




<https://doc.dpdk.org/guides/howto/virtio_user_for_container_networking.html#figure-use-models-for-running-dpdk-in-containers>

                 reply	other threads:[~2020-02-27 20:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAAV4wTh4ua0G1M7-S8mWQJBFJMWJ-b0XRnKUy2bR_HHzcWbfYA@mail.gmail.com \
    --to=staffan491@gmail.com \
    --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).