Preparing the Host

Getting Started with Napatech Link-Storage™ Software

Platform
Napatech IPU
Content Type
Getting Started
Capture Software Version
Link-Storage™ Software 1.0

Unbind virtio_net drivers on the host.

Before you begin

Make sure that you have:

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.sh
Copy 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;
done
On the host, execute the script.
host# chmod +x disable_virtio_net.sh
host# ./disable_virtio_net.sh
An 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