examples/vhost: print error logs on failure
authorJianfeng Tan <jianfeng.tan@intel.com>
Fri, 1 Jul 2016 08:50:31 +0000 (08:50 +0000)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 11 Jul 2016 02:57:15 +0000 (04:57 +0200)
commitbb7085b46ac502e9b494e30d2961400d4baf7a4f
treeee9b723c19f99ba0079d66517fa8fb5cf9cc2c6d
parent3bd60a27e9f2afacff70f6aafdca0fc18685633f
examples/vhost: print error logs on failure

When the specified cores and memory lie on different NUMA socket with
physical NIC, vhost fails to set up Rx queue, and exits without any
hints. This could leads to confusion of users.

This patch fixes it by adding some error messages when calling ether
APIs returns errors.

Suggested-by: Yulong Pei <yulong.pei@intel.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c