Setup Representor Ports VF auto PCI Probe, Method 2

Getting Started with Napatech Link-Virtualization™ Software

Platform
Napatech SmartNIC
Content Type
Getting Started
Getting Started Guide
Capture Software Version
Link-Virtualization™ Software 4.5

About this task

You must use the format representor= as the DPDK parameter in OVS-DPDK configuration.

Procedure

  1. Specify the representor range on the first virtual function in the dpdk-extra OVSDB field as shown in the following example:
    # ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-extra=”-n6 \
    --iova-mode=pa --vfio-vf-token=14d63f20-8445-11ea-8900-1f9ce7d5650d \
    -a 0000:3b:00.0,representor=[4-5],portqueues=[4:2,5:2] \
    -a 0000:3b:00.4 -a 0000:3b:00.5”
    Set --vfio-vf-token to the uuid which is generated using the uuidgen command. For example:
    uuidgen
    14d63f20-8445-11ea-8900-1f9ce7d5650d
  2. In OVSDB, specify OVS representor virtual ports. You can use the PCI bus ID of the first virtual function to add a virtual port as shown in the following example:
    # ovs_vsctl add-port br0 dpdkvp0 – set interface dpdkvp0 type=dpdk \
    options:dpdk-devargs=”0000:3b:00.0,representor=4”
  3. Setup an OVS bridge as shown in the following example:
    0dd0725f-53fe-45e4-8b96-95d4a2e7a674
        Bridge "br0"
            datapath_type: netdev
            Port "dpdkvp0"
                Interface "dpdkvp0"
                    type: dpdk
                    options: {dpdk-devargs="0000:3b:00.0,representor=4"}
            Port "dpdkvp1"
                Interface "dpdkvp1"
                    type: dpdk
                    options: {dpdk-devargs="0000:3b:00.0,representor=5"}
            Port "br0"
                Interface "br0"
                    type: internal