-
Notifications
You must be signed in to change notification settings - Fork 231
Alternatives to kernel module vfio‐pci
Michel Machado edited this page May 10, 2022
·
1 revision
Starting with Gatekeeper v1.1, the Linux kernel module vfio-pci
is the preferred way to bind NICs to DPDK/Gatekeeper as documented in the file README.md. The alternatives to vfio-pci
documented on this page are meant to help users that for any reason (e.g. lacking hardware support) cannot use vfio-pci
.
The following kernel modules should be loaded:
sudo modprobe uio
sudo modprobe uio_pci_generic
The following lines will make the modules above to load during boot.
if ! grep -q "uio" /etc/modules; then
echo "uio" | sudo tee -a /etc/modules
fi
if ! grep -q "uio_pci_generic" /etc/modules; then
echo "uio_pci_generic" | sudo tee -a /etc/modules
fi
Once these kernel modules are loaded, one can bind NIC enp131s0f0
with the command below:
sudo dependencies/dpdk/usertools/dpdk-devbind.py --bind=uio_pci_generic enp131s0f0