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 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