mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
docs: afxdp: Fix wrapping in QEMU CMDs.
Directly copying the CMD from either the .rst file or the docs on the web caused errors in the QEMU command because of how it was wrapped. Signed-off-by: Cian Ferriter <cian.ferriter@intel.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
0eeca50f06
commit
16e5b51f2d
@ -374,11 +374,9 @@ Start a VM with virtio and tap device::
|
|||||||
qemu-system-x86_64 -hda ubuntu1810.qcow \
|
qemu-system-x86_64 -hda ubuntu1810.qcow \
|
||||||
-m 4096 \
|
-m 4096 \
|
||||||
-cpu host,+x2apic -enable-kvm \
|
-cpu host,+x2apic -enable-kvm \
|
||||||
-device virtio-net-pci,mac=00:02:00:00:00:01,netdev=net0,mq=on,\
|
-device virtio-net-pci,mac=00:02:00:00:00:01,netdev=net0,mq=on,vectors=10,mrg_rxbuf=on,rx_queue_size=1024 \
|
||||||
vectors=10,mrg_rxbuf=on,rx_queue_size=1024 \
|
|
||||||
-netdev type=tap,id=net0,vhost=on,queues=8 \
|
-netdev type=tap,id=net0,vhost=on,queues=8 \
|
||||||
-object memory-backend-file,id=mem,size=4096M,\
|
-object memory-backend-file,id=mem,size=4096M,mem-path=/dev/hugepages,share=on \
|
||||||
mem-path=/dev/hugepages,share=on \
|
|
||||||
-numa node,memdev=mem -mem-prealloc -smp 2
|
-numa node,memdev=mem -mem-prealloc -smp 2
|
||||||
|
|
||||||
Create OpenFlow rules::
|
Create OpenFlow rules::
|
||||||
@ -415,10 +413,8 @@ Start VM using vhost-user mode::
|
|||||||
-cpu host,+x2apic -enable-kvm \
|
-cpu host,+x2apic -enable-kvm \
|
||||||
-chardev socket,id=char1,path=/usr/local/var/run/openvswitch/vhost-user-1 \
|
-chardev socket,id=char1,path=/usr/local/var/run/openvswitch/vhost-user-1 \
|
||||||
-netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce,queues=4 \
|
-netdev type=vhost-user,id=mynet1,chardev=char1,vhostforce,queues=4 \
|
||||||
-device virtio-net-pci,mac=00:00:00:00:00:01,\
|
-device virtio-net-pci,mac=00:00:00:00:00:01,netdev=mynet1,mq=on,vectors=10 \
|
||||||
netdev=mynet1,mq=on,vectors=10 \
|
-object memory-backend-file,id=mem,size=4096M,mem-path=/dev/hugepages,share=on \
|
||||||
-object memory-backend-file,id=mem,size=4096M,\
|
|
||||||
mem-path=/dev/hugepages,share=on \
|
|
||||||
-numa node,memdev=mem -mem-prealloc -smp 2
|
-numa node,memdev=mem -mem-prealloc -smp 2
|
||||||
|
|
||||||
Setup the OpenFlow ruls::
|
Setup the OpenFlow ruls::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user