Unbind virtio_net drivers on the host.
Before you begin
- Installed a Napatech IPU in a server. See Installing a Napatech IPU.
- Programmed the IPU with an appropriate FPGA image. See Napatech Link-Storage™ Software FPGA images.
About this task
Note: The following prompts are used to indicate which part of the system to run the
provided commands on.
- soc#: The SoC on the IPU.
- host#: The server where the IPU is installed.
- target#: The remote server with storage disks.
Procedure
On the host, disable virtio_net drivers.
Create a script with the file name, disable_virtio_net.sh. For
example:
host# vim disable_virtio_net.shCopy and paste the following commands in the file.
#!/bin/bash for n in $(lspci -n | grep 1af4:1000 | cut -d' ' -f1) do echo unbinding $n; echo 0000:$n > /sys/bus/pci/devices/0000:$n/driver/unbind; doneOn the host, execute the script.
host# chmod +x disable_virtio_net.sh host# ./disable_virtio_net.shAn output example:
unbinding 0f:00.0 unbinding 10:00.0 unbinding 11:00.0 unbinding 12:00.0 unbinding 13:00.0 unbinding 14:00.0 unbinding 15:00.0 unbinding 16:00.0 unbinding 17:00.0 unbinding 18:00.0 unbinding 19:00.0 unbinding 1a:00.0 unbinding 1b:00.0 unbinding 1c:00.0 unbinding 1d:00.0 unbinding 1e:00.0