On 04/02/2018 01:46 PM, Zhihong Wang wrote:
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.w...@intel.com> --- Changes in v5: 1. Rename APIs for better description. 2. Improve sanity check. --- Changes in v4: 1. Remove the "engine" concept in the lib. lib/librte_vhost/rte_vhost.h | 46 +++++++++++++++++++++++++++++ lib/librte_vhost/rte_vhost_version.map | 4 +++ lib/librte_vhost/socket.c | 53 ++++++++++++++++++++++++++++++++++ lib/librte_vhost/vhost.c | 36 +++++++++++++++++++++++ lib/librte_vhost/vhost.h | 10 +++++++ 5 files changed, 149 insertions(+)
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com> Thanks, Maxime