Added Public Key for @jamescun
Align to latest updates in vhost-user implementation in QEMU 2.1

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Add vhost_user_listen

This function will be used to establish a listening server for vhost-user.
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
VhostUser enable server mode

The class will be able to run as a vhost-user server waiting for connection.
The new method will get args with socket_path and is_server.

The vhost_user selftest can be started with SNABB_TEST_VHOST_USER_SERVER to enable server mode.

All VhosUser:new callers are updated to reflect the args change.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
NFV design, run infinite if number of packets is 0

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Merge pull request #225 from virtualopensystems/align-qemu-2.1

Align QEMU 2.1, add VhostUser server and infinite mode in NFV design
Merge pull request #224 from jamescun/master

Added Public Key for @jamescun
buffer.free: call return_virtio_buffer directly
transmit_packets_to_vm: localize more
net_device: % -> band
allow lib.malloc to take ffi.typeof'd argument, use that inside loops
transmit_packets_to_vm: temporary variable was global
memory is a global module now
memory init: call lib.hardware.bus to set appropriate allocator
new memory.malloc (utilizing either C.malloc or dma_alloc). Use it in lib.malloc
packet: kill packets array, use memory.alloc for packets allocation
Merge pull request #229 from llelf/main2

speed-ups
net_virtio: fix dpdk get buffer

The DPDK's virtio PMD is provoding a 1 descriptor buffers.
Detect and support this case.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Merge pull request #230 from virtualopensystems/fix_dpdk

net_virtio: fix dpdk get buffer
Intel10g: set and reset rates and priority