DPDK usage discussions
 help / color / mirror / Atom feed
* dpdk-devbind.py fail on AWS c5n.metal instance running 'Amazon Linux 2 Kernel 5.10'
@ 2021-12-17 18:48 fwefew 4t4tg
  0 siblings, 0 replies; only message in thread
From: fwefew 4t4tg @ 2021-12-17 18:48 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

Using AWS I have,

* c5n.metal instance
* running 64-bit x86 Amazon Linux 2 AMI (HVM) - Kernel 5.10 (
ami-0ed9277fb7eb570c9)
* DPDK 22.03-rc0
* I've installed the ena kernel fix in
https://github.com/amzn/amzn-drivers/tree/master/userspace/dpdk/enav2-vfio-patch

I add a second NIC to the instance in the normal way.

This second NIC starts UP. So I bring the NIC down and bind it:

* lspci | grep Eth
7e:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
7f:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)

* sudo ip link set eth1 down

Then I bind:

*  sudo ./dpdk-devbind.py -b vfio-pci 7f:00.0
Error: bind failed for 0000:7f:00.0 - Cannot bind to driver vfio-pci:
[Errno 19] No such device

The error seems to arise from when attempting to close the file descriptor
on /sys/bus/pci/drivers/vfio-pci/bind

dpdk-devbind.py never shows the device bound to vfio:

* sudo ./dpdk-devbind.py -s

Other Network devices
=====================
0000:7f:00.0 'Elastic Network Adapter (ENA) ec20' unused=ena,vfio-pci

[-- Attachment #2: Type: text/html, Size: 1557 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-17 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 18:48 dpdk-devbind.py fail on AWS c5n.metal instance running 'Amazon Linux 2 Kernel 5.10' fwefew 4t4tg

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://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/ http://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