Setup Representor Ports VF auto PCI Probe, Method 2

Getting Started with Napatech Link-Virtualization™ Software

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

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 \
    –vdev=eth_ntnic0,port=0 –vdev=eth_ntnic1,port=1 \
    -a 0000:3b:00.4,representor=[5-6],portqueues=[5:2,6:2] \
    -a 0000:3b:00.5 -a 0000:3b:00.6”
  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.4,representor=5”
  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.4,representor=5"}
            Port "dpdkvp1"
                Interface "dpdkvp1"
                    type: dpdk
                    options: {dpdk-devargs="0000:3b:00.4,representor=6"}
            Port "br0"
                Interface "br0"
                    type: internal
            Port "dpdk1"
                Interface "dpdk1"
                    type: dpdk
                    options: {dpdk-devargs="eth_ntnic1"}