virtio-user pmd driver 加载命令

//host server client
./dpdk-testpmd -l 9-10 -n 4 --file-prefix=vhost --vdev ‘net_vhost0,iface=/tmp/sock0,queues=1’ – -i

./dpdk-testpmd -l 5-6 -n 4 --no-pci --single-file-segments --file-prefix=virtio-user --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,queues=1 – -i

//创建virtio port
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-extra=“–no-pci --single-file-segments --file-prefix=virtio-user --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,queues=1,packed_vq=1”

//添加virtio port
ovs-vsctl add-port br-ext net_virtio_user0 – set Interface net_virtio_user0 type=dpdk options:dpdk-devargs=net_virtio_user,mac=00:11:22:33:44:10,path=/tmp/sock0,queues=1

你可能感兴趣的:(dpdk,linux)