DPDK usage discussions
 help / color / mirror / Atom feed
From: "Templin (US), Fred L" <Fred.L.Templin@boeing.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Problems using DPDK within CORE emulations running on Ubuntu 18.04 VMs
Date: Mon, 12 Apr 2021 17:42:10 +0000
Message-ID: <c54cfd68f4414ec98b8a86592dd6c0b6@boeing.com> (raw)

Hi, I am running Ubuntu 18.04 in a VM running on VirtualBox. I have built and
installed DPDK-20.11 from sources and had no troubles building by following
the Getting Started Guide for Linux instructions:

http://doc.dpdk.org/guides/linux_gsg/intro.html

Next, within the Ubuntu VM I run the CORE network emulator:

https://www.nrl.navy.mil/Our-Work/Areas-of-Research/Information-Technology/NCS/CORE/

I have a simple two-node network setup with two CORE vnodes connected
via a network switch, and verified that I can ping between the two nodes.
Now, I want to experiment with the DPDK-20.11 "ip_fragmentation" and
"ip_reassembly" example programs (which I was able to build successfully)
but it appears that these example programs require ports to be mapped.

So, I skipped ahead to Section 5 of the Getting Started Guide for Linux
("Linux Drivers") and tried to follow the instructions in Section 5.5. on
"Binding and Unbinding Network Ports to/from the Kernel Modules" by
typing commands into one of the CORE vnode shell windows. The text
at the end of this message shows the commands I typed and the output
I was shown in response. In particular, the "dpdk-devbind.py --status"
script does not appear to show a usable map of my CORE vnode
network interfaces, and attempts to bind were unsuccessful.

Has anyone ever run DPDK out of a CORE vnode before and/or can
you tell me what steps are needed to be able to bind CORE vnode
interfaces so that they can be used by DPDK? Or, is DPDK simply
incompatible with virtualization environments.

Another question - can DPDK be run over loopback interfaces?

Thanks - Fred

---

Script started on 2021-04-12 09:54:19-0700
root@n1: pwd
/home/fltemplin/src/DPDK/dpdk-20.11/usertools
root@n1: ip link sho
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
5: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 00:00:00:aa:00:00 brd ff:ff:ff:ff:ff:ff link-netnsid 0
root@n1: sudo modprobe vfio-pci
root@n1: ip link sho
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
5: eth0@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 00:00:00:aa:00:00 brd ff:ff:ff:ff:ff:ff link-netnsid 0
root@n1: ./dpdk-devbind.py --status

Network devices using kernel driver
===================================
0000:00:03.0 '82540EM Gigabit Ethernet Controller 100e' if= drv=e1000 unused=vfio-pci 
0000:00:08.0 '82540EM Gigabit Ethernet Controller 100e' if= drv=e1000 unused=vfio-pci 

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================
root@n1: exit

Script done on 2021-04-12 09:55:41-0700



                 reply	other threads:[~2021-04-12 17:42 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=c54cfd68f4414ec98b8a86592dd6c0b6@boeing.com \
    --to=fred.l.templin@boeing.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

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 \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


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