X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=INSTALL.DPDK.md;h=dca79bd35dc6a1110edf4b1e793da94d7898522b;hb=12878bc422712ec2bc602819641d4da2555c37c3;hp=a19a68576d9b3ef771d496514277bd24e38c8799;hpb=de658847fd5703ac7ac6413ec29ecf7f4db91421;p=cascardo%2Fovs.git diff --git a/INSTALL.DPDK.md b/INSTALL.DPDK.md index a19a68576..dca79bd35 100644 --- a/INSTALL.DPDK.md +++ b/INSTALL.DPDK.md @@ -272,9 +272,12 @@ Performance Tuning: NIC port0 <-> OVS <-> VM <-> OVS <-> NIC port 1 - The OVS log can be checked to confirm that the port/rxq assignment to - pmd threads is as required. This can also be checked with the following - commands: + The following command can be used to confirm that the port/rxq assignment + to pmd threads is as required: + + `ovs-appctl dpif-netdev/pmd-rxq-show` + + This can also be checked with: ``` top -H @@ -508,7 +511,8 @@ Adding DPDK vhost-user ports to the Switch: Following the steps above to create a bridge, you can now add DPDK vhost-user as a port to the vswitch. Unlike DPDK ring ports, DPDK vhost-user ports can -have arbitrary names. +have arbitrary names, except that forward and backward slashes are prohibited +in the names. - For vhost-user, the name of the port type is `dpdkvhostuser` @@ -586,6 +590,22 @@ Follow the steps below to attach vhost-user port(s) to a VM. -device virtio-net-pci,mac=00:00:00:00:00:02,netdev=mynet2,mq=on,vectors=$v ``` + If one wishes to use multiple queues for an interface in the guest, the + driver in the guest operating system must be configured to do so. It is + recommended that the number of queues configured be equal to '$q'. + + For example, this can be done for the Linux kernel virtio-net driver with: + + ``` + ethtool -L combined <$q> + ``` + + A note on the command above: + + `-L`: Changes the numbers of channels of the specified network device + + `combined`: Changes the number of multi-purpose channels. + DPDK vhost-cuse: ----------------