src/core/lib: remove code that used undeclared functions
src/lib/hardware/vfio: function to check vfio availability
src/apps/vhost/vhost_user: check vfio before test execution
src/apps/intel/intel_app: get pci ids for test from environment variables
src/apps/vhost/vhost_user: get pci id and socket file for test from environment variables
src/core/memory: calculate size in bytes only if varialble is not null
src/Makefile: check exitcode of test
src/Makefile: ci test mode added, fails on error instead of returng 0
.travis.yml: version with make, make test and debug output
src/core/memory: use 'huge allocator' only if available
src/core/memory: use base page size as default value
src/apps/vhost/[vhost|vhost_apps]: run test only if /dev/net/tun exists
Merge pull request #147 from logiceditor-com/nm/4088/travis_tests_v5

Run tests in Travis CI. Update test code to skip cases where required hardware is not available.
Make 'Source' use external rx_buffer_freelist

Packet size can be passed as :new argument - defaults to 60.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
packet deref and free - add freelist argument

Not all packets are allocated from the global `buffer`.
We need a freelist argument to deref and free in order to properly
'free' the iovec attached buffers.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
packet - add packet_size

This saves some processing at runtime.

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Added designs.nfv.nfv.

This is currently a simple application that connects one vhost_user
interface with one intel10g interface.

Fixes in the original version - pci, rx/tx naming, update to latest
intel args passing.

Signed-off-by: Luke Gorrie <luke@snabb.co>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Align to latest vhost-user-v9

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Decouple form intel10g

For the selftest we'll use a non-HW dependent setup:

vhost -> tee -> sink

Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Fix process_qemu_requests when QEMU goes down

vhost_user_receive will return 0 when the other end closed
the socket. In such case shut vhost_user operation.

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