About this task
Procedure
-
In OVSDB, setup the dpdk-extra parameter as 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 \ -a 0000:3b:00.5 -a 0000:3b:00.6”
This configures 3 ports, the mandatory VF#0 and then additionally VF#5 and VF#6. These are now configured with 1 queue each.
-
For a multiqueue setup, add the portqueues[] parameter to VF#0 as 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,portqueues=[5:2,6:2] -a 0000:3b:00.5 -a 0000:3b:00.6”
VF#5 with 2 queues and VF#6 with 2 queues is created.
-
In OVSDB, define OVS representor virtual ports as in this OVS bridge example:
# ovs_vsctl add-port br0 dpdkvp0 – set interface dpdkvp0 \ type=dpdk options:dpdk-devargs=”0000:3b:00.5” 0dd0725f-53fe-45e4-8b96-95d4a2e7a674 Bridge "br0" datapath_type: netdev Port "dpdkvp0" Interface "dpdkvp0" type: dpdk options: {dpdk-devargs="0000:3b:00.5"} Port "dpdkvp1" Interface "dpdkvp1" type: dpdk options: {dpdk-devargs="0000:3b:00.6"} Port "br0" Interface "br0" type: internal Port "dpdk1" Interface "dpdk1" type: dpdk options: {dpdk-devargs="eth_ntnic1"}