vhost: add APIs for datapath configuration
authorZhihong Wang <zhihong.wang@intel.com>
Mon, 2 Apr 2018 11:46:54 +0000 (19:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:40:21 +0000 (00:40 +0200)
commitb4953225cea42bb4da370e012a6be41c54c80967
tree5a23ad6386ae74ea7df48360d6ba55adb7a03690
parentd7280c9fffcb54cc7fdde9a001c650ed01eeb0fa
vhost: add APIs for datapath configuration

This patch adds APIs for datapath configuration.

The did of the vhost-user socket can be set to identify the backend device,
in this case each vhost-user socket can have only 1 connection. The did is
set to -1 by default when the software datapath is used.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/socket.c
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h