DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Igor Gutorov <igootorov@gmail.com>
Cc: users@dpdk.org
Subject: Re: Bind one port to DPDK, the other to the kernel
Date: Mon, 30 Sep 2024 14:25:56 -0700	[thread overview]
Message-ID: <20240930142556.07a9554e@hermes.local> (raw)
In-Reply-To: <CAL7bPf3XsTFEOcqDrz8pyBOQyNJLis2WOS+2=RyAPgCdq3Nm5w@mail.gmail.com>

On Mon, 30 Sep 2024 23:40:36 +0300
Igor Gutorov <igootorov@gmail.com> wrote:

> Hi,
> 
> I wanted to ask for a bit of clarification/guidance on binding and
> unbinding network ports.
> 
> Consider the following - a server with an Intel XXV710 NIC (i40e PMD).
> This NIC has 2 ports. One port is bound to vfio-pci (no VFs are used,
> if that matters) and is used by a DPDK application, the other port is
> bound to the kernel i40e driver. The kernel bound port is used for
> general networking (such as ssh, and so on).
> 
> Based on the DPDK getting started guide [1], am I understanding
> correctly that this is not the recommended setup?
> Specifically, these parts:
> > Most devices require that the hardware to be used by DPDK be
> > unbound from the kernel driver it uses, and instead be bound
> > to the vfio-pci kernel module before the application is run.  
> 
> > physical devices may require either all ports bound to VFIO, or
> > some of them bound to VFIO while others not being bound to
> > anything at all.  
> 
> If that's the case, what's the correct way to support such a
> configuration? I guess, something like this?
> - Bind one port to vfio-pci, used entirely by DPDK
> - Bind the second port to vfio-pci
> - Create a VF for the second port
> - Bind that VF to the kernel i40e driver
> Am I understanding this correctly?

If you have access to the PF in Linux, then using a VF for the
DPDK device is an option. But still vfio-pci is unlikely to allow
it since maybe in same IOMMU group.

      reply	other threads:[~2024-09-30 21:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30 20:40 Igor Gutorov
2024-09-30 21:25 ` Stephen Hemminger [this message]

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=20240930142556.07a9554e@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=igootorov@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).