DPDK usage discussions
 help / color / mirror / Atom feed
From: Sudharshan Krishnakumar <sudhar.ckrishna@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] access to different ports on the same NIC by 2 DPDK applications
Date: Thu, 20 May 2021 13:34:35 -0700
Message-ID: <CAEm3rU=P9r4U6ZK+y60CUh9-dVoVPvjgQ5-a1Euq83Ftbh7_Qw@mail.gmail.com> (raw)

Hi All,

Have a Qs related to-> access to different ports on the same NIC by 2 DPDK

Setup: 4-Port 10 Gig NIC card with ports bound for DPDK usage.

With intel’s igb_uio kernel driver (used for binding NIC’s ports) using
dpdk-setup.sh, at the /dev level, I see 4 device paths created,

/dev/uio0, /dev/uio1, /dev/ui02, /dev/uio3

And I was able to run 2 DPDK applications concurrently(by blacklisting the
ports in EAL parameters), and they were able to take ownership of different
ports on the same NIC.

For example DPDK_APP1 can take access of ports->0,1 and DPDK_APP2 can take
access of ports->2,3.

Currently, I am using another DPDK app that relies on binding to VFIO

So I am trying to switch to binding NIC’s 4 ports to VFIO driver.

Enabled VTIO in BIOS and added intel_iommu=on in kernel boot-param in GRUB.

After binding all 4 ports to VFIO driver, using dpdk-setup,sh, at the /dev
level, I only see these 2 device paths created-> /dev/vfio/vfio(control

and /dev/vfio/1(essentially just 1 path).

I am able to run one DPDK application, for example-> PacketGen tool.

But not able to run 2 DPDK applications concurrently accessing different
ports on the same NIC, due to DPDK application not being able to get access
to the ports.

For example, if I launch DPDK_APP1 first, it can get access to the ports,
but DPDK_APP2 is NOT able to get access, and vice-versa.

Note that both apps are trying to access different ports on the same NIC,
and also ports have been black-listed as part of EAL params to the DPDK

I know this is possible with igb_uio driver.

Please let me know, if it is possible to do this when ports are bound to
VFIO driver.



             reply	other threads:[~2021-05-20 20:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 20:34 Sudharshan Krishnakumar [this message]
2021-05-20 20:54 ` Stephen Hemminger
2021-05-20 21:19   ` Sudharshan Krishnakumar
2021-05-20 22:34     ` Stephen Hemminger

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEm3rU=P9r4U6ZK+y60CUh9-dVoVPvjgQ5-a1Euq83Ftbh7_Qw@mail.gmail.com' \
    --to=sudhar.ckrishna@gmail.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git